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 Weird and The Wonderful
  4. Why do they call it "hard" coding?

Why do they call it "hard" coding?

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
13 Posts 9 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.
  • T Tim Carmichael

    Maybe because if you used mixed case (July) it would fail, or be hard for the original author to determine what the issue was?

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #3

    "because it requires a recompile to update the values"

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

    1 Reply Last reply
    0
    • D Duncan Edwards Jones

      When it is just so very easy?

      Select Case word
      Case "JULY"
      Return 7
      End Select

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #4

      Almost each project has them. It gets better if there's a concatenation going on of constants into a stringbuilder.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      G 1 Reply Last reply
      0
      • T Tim Carmichael

        Maybe because if you used mixed case (July) it would fail, or be hard for the original author to determine what the issue was?

        D Offline
        D Offline
        Duncan Edwards Jones
        wrote on last edited by
        #5

        Nothing is removed from the snippet- it really can only deal with JULY.

        T W 2 Replies Last reply
        0
        • D Duncan Edwards Jones

          Nothing is removed from the snippet- it really can only deal with JULY.

          T Offline
          T Offline
          Tim Carmichael
          wrote on last edited by
          #6

          Where is that sarcasm icon when it's needed most?

          1 Reply Last reply
          0
          • D Duncan Edwards Jones

            Nothing is removed from the snippet- it really can only deal with JULY.

            W Offline
            W Offline
            Worried Brown Eyes
            wrote on last edited by
            #7

            Maybe the TDDers never got round to writing the tests for other strings - therefore they weren't allowed to change it!

            1 Reply Last reply
            0
            • L Lost User

              Almost each project has them. It gets better if there's a concatenation going on of constants into a stringbuilder.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

              G Offline
              G Offline
              Gaston Verelst
              wrote on last edited by
              #8

              Or different languages.

              L 1 Reply Last reply
              0
              • D Duncan Edwards Jones

                When it is just so very easy?

                Select Case word
                Case "JULY"
                Return 7
                End Select

                V Offline
                V Offline
                V 0
                wrote on last edited by
                #9

                oh, now this is fun. July and july for starters, but you can have other languages as well. In dutch it's pretty straightforward "juli", but in French that becomes juillet, spanish=julio and croatian apparently returns "srpanj" :-D

                V.
                (MQOTD rules and previous solutions)

                S L 2 Replies Last reply
                0
                • G Gaston Verelst

                  Or different languages.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #10

                  That's the one to watch for these days.. Your product may only be intended to English speaking nations (although there are differences even between these), but eventually some bright spark of a salesman's going to drop everyone in it selling a version to Beijing or some other exotic location :laugh:

                  How do you know so much about swallows? Well, you have to know these things when you're a king, you know.

                  1 Reply Last reply
                  0
                  • V V 0

                    oh, now this is fun. July and july for starters, but you can have other languages as well. In dutch it's pretty straightforward "juli", but in French that becomes juillet, spanish=julio and croatian apparently returns "srpanj" :-D

                    V.
                    (MQOTD rules and previous solutions)

                    S Offline
                    S Offline
                    Sinisa Hajnal
                    wrote on last edited by
                    #11

                    I challenge you to pronounce you if you're not slavic :) (I am, btw) R in sRpanj is hard as when the russian speaks english in movies and nj is single letter pronounced like New without U :)

                    S 1 Reply Last reply
                    0
                    • V V 0

                      oh, now this is fun. July and july for starters, but you can have other languages as well. In dutch it's pretty straightforward "juli", but in French that becomes juillet, spanish=julio and croatian apparently returns "srpanj" :-D

                      V.
                      (MQOTD rules and previous solutions)

                      L Offline
                      L Offline
                      Lutoslaw
                      wrote on last edited by
                      #12

                      ...and in polish: "lipiec"

                      1 Reply Last reply
                      0
                      • S Sinisa Hajnal

                        I challenge you to pronounce you if you're not slavic :) (I am, btw) R in sRpanj is hard as when the russian speaks english in movies and nj is single letter pronounced like New without U :)

                        S Offline
                        S Offline
                        Sascha Lefevre
                        wrote on last edited by
                        #13

                        I did before I read your explanation, do I win a cookie? :-D

                        If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

                        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