Giter VIP home page Giter VIP logo

Comments (5)

smcameron avatar smcameron commented on May 24, 2024 1

localized for other languages

Not happening because locales are fatally broken -- by which I mean I have code that parses ASCII STL files (and wavefront OBJ files) that contain ASCII representations of floats using sscanf, and sscanf's behavior changes depending on locale in a way that breaks parsing of floats (e.g. French locale wants commas, not periods for decimal point), so I "fixed" it with a sledgehammer that forces the locale to "C" as the gods intended.

That being said, the help can possibly be made consistent in the "C" locale.

from space-nerds-in-space.

heaventwig avatar heaventwig commented on May 24, 2024

I read the comment thread you linked, skimmed through your epic back-and-forth troubleshooting it, and finally lolled when I read the comments on that localization code. I concur, and had no idea anyone would implement it so poorly: localization of data files is ludicrous, and not in the good way. Oh well.

So nevermind the localization concept.

I still think it might be useful to have the help screen text either fully separated from the code or, Knuth-like, fully embedded in it such that the documentation presented in the game about how to play the game is generated by the code that runs the game from an alternative parsing it does of itself at runtime (or maybe just when compiling, idk). Because if it's not Knuth-level embedded in the code, there will (nearly) always be a help-docs maintenance step on any codebase changes that update UI/UX.

from space-nerds-in-space.

smcameron avatar smcameron commented on May 24, 2024

alternative parsing it does of itself

Hell no.

always be a help-docs maintenance step

That is unavoidable. Putting the help into its own file doesn't make this much better or worse, it's about the same. Without a significant advantage one way or the other, I see no reason to change the way it currently works (which it's just an array of strings called help_text[] in snis_client.c).

from space-nerds-in-space.

smcameron avatar smcameron commented on May 24, 2024

Alright, looking again... I now remember the comms /help command is a special case, because it's blasting the help text through the comms system when means it gets transformed into commands transmitted from snis_server to snis_client, line by line.

Unifying the comms help text in snis_server with the help text in snis_client.c (without duplicating it, as it is now) will necessarily complicate the code either in the server, or in the client (though not too much).

from space-nerds-in-space.

smcameron avatar smcameron commented on May 24, 2024
  • c9bd8de Factor out help text
  • dc1b7c0 Unify comms client/server help text

from space-nerds-in-space.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.