Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. Bad habits

Bad habits

Scheduled Pinned Locked Moved The Back Room
help
10 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael P Butler
    wrote on last edited by
    #1

    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

    realJSOPR P 2 Replies Last reply
    0
    • M Michael P Butler

      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

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      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

      M K N 3 Replies Last reply
      0
      • realJSOPR realJSOP

        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

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • M Michael P Butler

          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

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          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 Africa

          Shog9 wrote: Everybody just wants to be naked and famous, Paul.

          K 1 Reply Last reply
          0
          • realJSOPR realJSOP

            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

            K Offline
            K Offline
            KaRl
            wrote on last edited by
            #5

            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

            J C 2 Replies Last reply
            0
            • P Paul Watson

              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 Africa

              Shog9 wrote: Everybody just wants to be naked and famous, Paul.

              K Offline
              K Offline
              KaRl
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • K KaRl

                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

                J Offline
                J Offline
                jan larsen
                wrote on last edited by
                #7

                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

                K 1 Reply Last reply
                0
                • J jan larsen

                  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

                  K Offline
                  K Offline
                  KaRl
                  wrote on last edited by
                  #8

                  :-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

                  1 Reply Last reply
                  0
                  • realJSOPR realJSOP

                    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

                    N Offline
                    N Offline
                    Nish Nishant
                    wrote on last edited by
                    #9

                    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]

                    1 Reply Last reply
                    0
                    • K KaRl

                      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

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups