Bad habits
-
Bad programming habits that is. I've just been going through some source-code of mine (trying to look busy ;-) ) It scares me how many hard-coded strings I have for displaying message boxes rather than having an entry in a string table. God help me if this app ever goes multiple languages. Any suggestions on how I can break this habit. Michael Fat bottomed girls You make the rockin' world go round -- Queen
-
Bad programming habits that is. I've just been going through some source-code of mine (trying to look busy ;-) ) It scares me how many hard-coded strings I have for displaying message boxes rather than having an entry in a string table. God help me if this app ever goes multiple languages. Any suggestions on how I can break this habit. Michael Fat bottomed girls You make the rockin' world go round -- Queen
At the same time, you probably made the decsion about hard-coded strings with the thought that there's no way you'd have to internationalize the app. I say let the lazy bastards that use your programs learn english like the rest of the civilized world. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio. ------- signature ends
-
At the same time, you probably made the decsion about hard-coded strings with the thought that there's no way you'd have to internationalize the app. I say let the lazy bastards that use your programs learn english like the rest of the civilized world. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio. ------- signature ends
ROFLMAO. Nice one, must remember that one if I'm ever subjected to a code review :-D Michael Fat bottomed girls You make the rockin' world go round -- Queen
-
Bad programming habits that is. I've just been going through some source-code of mine (trying to look busy ;-) ) It scares me how many hard-coded strings I have for displaying message boxes rather than having an entry in a string table. God help me if this app ever goes multiple languages. Any suggestions on how I can break this habit. Michael Fat bottomed girls You make the rockin' world go round -- Queen
Michael P Butler wrote: Any suggestions on how I can break this habit. Seriously? Internationalise one of those projects. By the end of that you should have a mental block on hard coded strings, a nervous twitch every time you even think of typing in a hard coded string. We had to internationalise an old website we had built. German, French, Italian and Japanese... God that was two weeks of pure murder. The first three were easy. Left to right, hardly any funny characters. But the Japanese was an absolute bee itch. Still, after that we learnt to use localisation strings in ASP and it actually makes all sorts of seemingly unrelated things easier to maintain, like error messages.
Paul Watson
Bluegrass
Cape Town, South AfricaShog9 wrote: Everybody just wants to be naked and famous, Paul.
-
At the same time, you probably made the decsion about hard-coded strings with the thought that there's no way you'd have to internationalize the app. I say let the lazy bastards that use your programs learn english like the rest of the civilized world. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio. ------- signature ends
-
Michael P Butler wrote: Any suggestions on how I can break this habit. Seriously? Internationalise one of those projects. By the end of that you should have a mental block on hard coded strings, a nervous twitch every time you even think of typing in a hard coded string. We had to internationalise an old website we had built. German, French, Italian and Japanese... God that was two weeks of pure murder. The first three were easy. Left to right, hardly any funny characters. But the Japanese was an absolute bee itch. Still, after that we learnt to use localisation strings in ASP and it actually makes all sorts of seemingly unrelated things easier to maintain, like error messages.
Paul Watson
Bluegrass
Cape Town, South AfricaShog9 wrote: Everybody just wants to be naked and famous, Paul.
Paul Watson wrote: But the Japanese was an absolute bee itch. Japanese is a good test for an internationatization process. Once Japanese done, any other language is quiet easy to implement :)
One small village of indomitable geeks still holds out against the invaders. And life is not easy for the managers legionaries who garrison the fortified camps of Microsoftum, Javum, Ceplumplum and Vebasum
-
Which english ? From UK, US, Australia, SA ?
One small village of indomitable geeks still holds out against the invaders. And life is not easy for the managers legionaries who garrison the fortified camps of Microsoftum, Javum, Ceplumplum and Vebasum
He said "the civilized world", that makes it UK english. ;P "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
-
He said "the civilized world", that makes it UK english. ;P "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
:-D [eurovision] jan larsen, one point. jan larsen, un point[^] [/eurovision]
One small village of indomitable geeks still holds out against the invaders. And life is not easy for the managers legionaries who garrison the fortified camps of Microsoftum, Javum, Ceplumplum and Vebasum
-
At the same time, you probably made the decsion about hard-coded strings with the thought that there's no way you'd have to internationalize the app. I say let the lazy bastards that use your programs learn english like the rest of the civilized world. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 Please review the Legal Disclaimer in my bio. ------- signature ends
John Simmons / outlaw programmer wrote: learn english like the rest of the civilized world. I have to agree here. If the whole world must communicate at common wavelength, they gotta speak the same language and in my opinion english fits the bill perfectly :-) Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Which english ? From UK, US, Australia, SA ?
One small village of indomitable geeks still holds out against the invaders. And life is not easy for the managers legionaries who garrison the fortified camps of Microsoftum, Javum, Ceplumplum and Vebasum
It seems obvious, the language is called English, the people who speak it correctly are called the English. The people who love to rape it publically are called 'Americans'. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002