Alan Coopersmith writes: > Hardcoding long strings in your source code is just a bad idea anyway, > and makes it harder to internationalize.
Hardcoding shouldn't be an issue; that's just what gettext is for. > Hide the strings off in a > non-source file and be done with it. I certainly wouldn't go that far. I've seen source (recently *ahem*) that has every single flippin' string squirreled away in an obscure .h file somewhere. It's awful. It makes the code almost completely impenetrable for maintainers. If you have an abundance of long strings, then there may well be other problems, such as an excessively chatty application (that annoys users), a poor user interface design (that leads to errors requiring too much explanation), or inadequate documentation (that just leaves users in the dark). It's a symptom. > (Spoken with the freedom of someone who has never had to run cstyle.) :-/ -- James Carlson, KISS Network <[EMAIL PROTECTED]> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 _______________________________________________ opensolaris-discuss mailing list [email protected]
