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. Old time horror

Old time horror

Scheduled Pinned Locked Moved The Weird and The Wonderful
performance
19 Posts 10 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.
  • S Simone Serponi

    In Pisa University (The most important Computer Science faculty in Italy) we still use to name variables of examples and simple code snippets "Pippo" from the Italian name of "Goofy", the Disney's Character... :-D This is a really old habit since my CS teacher at the high school used to do so when she was studying at the university :laugh: But the best part is that when I do code review or debug on old code I usually found that programmers that comes from Pisa's University uses this habit in their professional life :laugh:

    Bye By(t)e ;-)

    modified on Thursday, September 16, 2010 12:15 PM

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

    Then this has long since become a tradition and cannot be a horror :)

    A while ago he asked me what he should have printed on my business cards. I said 'Wizard'. I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

    S 1 Reply Last reply
    0
    • T tom1443

      I'm not sure what's worse - baseball player names or Hungarian Nutation. Now where did I put that decoder ring?

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

      Hmm, hungarian notation is probably as popular as RPN. I should start my old FORTH and code something, using hungarian notation. http://en.wikipedia.org/wiki/Reverse_Polish_notation[^]

      A while ago he asked me what he should have printed on my business cards. I said 'Wizard'. I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

      1 Reply Last reply
      0
      • T tom1443

        I'm not sure what's worse - baseball player names or Hungarian Nutation. Now where did I put that decoder ring?

        S Offline
        S Offline
        Stefan_Lang
        wrote on last edited by
        #9

        tom1443 wrote:

        Hungarian Nutation

        _Nut_ation is indeed a fitting term for that. Did you intentionally misspell this or was it just a Freudian error? :-D

        T 1 Reply Last reply
        0
        • L lemur

          Hi, I'm merely passing this on following a conversation I had with my dad the other night but thought it deserved a mention. I've no reason to doubt him on this one. I think. A bit of background - my dad started work in computers back in the '70s (and did indeed use punch cards and such like). Eventually, they had a simple editor, higher-level languages were being used and programs were getting more complex and at some point, contractors from the States were over writing some applications for them. He claims he still shudders at the memory of looking at their code after they'd gone and discovering that they'd left a small chunk of their homeland behind - the majority of variable and function names were named after baseball players... Kev

          S Offline
          S Offline
          Stefan_Lang
          wrote on last edited by
          #10

          I fondly remember a time at university when I coded some neural network stuff together with two friends. We frequently came up with all kind of silly variable names taken from Asterix comics, out of the midst of some of the more witty parts of our conversations, and the like. On one occasion we were looking at a boolean variable that we realized we forgot to initialize, causing an error. We discussed whether we should initialize it to true or false, so I sat down and wrote:

          bool isgood = true || false;

          :-D

          1 Reply Last reply
          0
          • S Stefan_Lang

            tom1443 wrote:

            Hungarian Nutation

            _Nut_ation is indeed a fitting term for that. Did you intentionally misspell this or was it just a Freudian error? :-D

            T Offline
            T Offline
            tom1443
            wrote on last edited by
            #11

            Totally intentional, I was wondering how many people would pick up on it.

            1 Reply Last reply
            0
            • T tom1443

              I'm not sure what's worse - baseball player names or Hungarian Nutation. Now where did I put that decoder ring?

              J Offline
              J Offline
              JFDR_02
              wrote on last edited by
              #12

              Awww, you're making me question my worth as a human being... I appear to be the only person alive who thinks hungarian notation is great. I find it much more useful than that infernal camelCase. :suss: (Sunglasses because I cannot be seen in public after this).

              1 Reply Last reply
              0
              • L Lost User

                Then this has long since become a tradition and cannot be a horror :)

                A while ago he asked me what he should have printed on my business cards. I said 'Wizard'. I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

                S Offline
                S Offline
                Simone Serponi
                wrote on last edited by
                #13

                Well, try to debug a piece of code where all the variables are named Pippo01, Pippo02, Pippo03... I guess you will change your idea ;P

                Bye By(t)e ;-)

                L 1 Reply Last reply
                0
                • L lemur

                  Hi, I'm merely passing this on following a conversation I had with my dad the other night but thought it deserved a mention. I've no reason to doubt him on this one. I think. A bit of background - my dad started work in computers back in the '70s (and did indeed use punch cards and such like). Eventually, they had a simple editor, higher-level languages were being used and programs were getting more complex and at some point, contractors from the States were over writing some applications for them. He claims he still shudders at the memory of looking at their code after they'd gone and discovering that they'd left a small chunk of their homeland behind - the majority of variable and function names were named after baseball players... Kev

                  B Offline
                  B Offline
                  BrainiacV
                  wrote on last edited by
                  #14

                  At one place I worked, there was this idiot who named all his subroutines after Disney characters

                  BALR 8, GOOFY

                  Another place had code from consultants that was complete alphabet soup with no comments.

                  function doIT (a, b, c, d, e)

                  But one guy I worked with insisted all routines and variables had to be 8 characters long. His method was to come up with a description like "Print Spooler" and then divide 8 by the number of words and then use those characters to make the label "PRINT SPOOLER" becomes "PRINSPOO". All well and good until you come up with a name like "SHIPPING STATION CONTROL LOOP" which became "SHSTCOLO" (pronounced "sheh steh coe low").

                  Psychosis at 10 Film at 11

                  B 1 Reply Last reply
                  0
                  • S Simone Serponi

                    Well, try to debug a piece of code where all the variables are named Pippo01, Pippo02, Pippo03... I guess you will change your idea ;P

                    Bye By(t)e ;-)

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

                    Actually, that would not hold me up very long. But you are right, it's not good style as the restrictions to naming variables have become history. Long ago, when the Atari 800 still used to be a good machine, I 'unprotected' a game which turned out to be written in BASIC. They used a simple encryption to disguise it and also 'obfuscated' the BASIC code by renaming all variables to something like X1, X2 ... X3456. I even still remember which game it was :) Before that I used to write machine language programs on my first little computer where even an assembler was a luxury. At this level your program is just a heap of hexadecimal values, but I'm still used to it. Recently I restored one of my earliest programs from the old cassette tapes and posted it to be used with emulators or the few surviving real machines.

                    A while ago he asked me what he should have printed on my business cards. I said 'Wizard'. I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

                    1 Reply Last reply
                    0
                    • B BrainiacV

                      At one place I worked, there was this idiot who named all his subroutines after Disney characters

                      BALR 8, GOOFY

                      Another place had code from consultants that was complete alphabet soup with no comments.

                      function doIT (a, b, c, d, e)

                      But one guy I worked with insisted all routines and variables had to be 8 characters long. His method was to come up with a description like "Print Spooler" and then divide 8 by the number of words and then use those characters to make the label "PRINT SPOOLER" becomes "PRINSPOO". All well and good until you come up with a name like "SHIPPING STATION CONTROL LOOP" which became "SHSTCOLO" (pronounced "sheh steh coe low").

                      Psychosis at 10 Film at 11

                      B Offline
                      B Offline
                      BillW33
                      wrote on last edited by
                      #16

                      BrainiacV wrote: "Another place had code from consultants that was complete alphabet soup with no comments."

                      function doIT (a, b, c, d, e)

                      Hey, I think they stole that method from the place where I used to work! :) ;) Also the desire to limit names to 8 characters should have died when programing languages started supporting longer names.

                      Just because the code works, it doesn't mean that it is good code.

                      B 1 Reply Last reply
                      0
                      • B BillW33

                        BrainiacV wrote: "Another place had code from consultants that was complete alphabet soup with no comments."

                        function doIT (a, b, c, d, e)

                        Hey, I think they stole that method from the place where I used to work! :) ;) Also the desire to limit names to 8 characters should have died when programing languages started supporting longer names.

                        Just because the code works, it doesn't mean that it is good code.

                        B Offline
                        B Offline
                        BrainiacV
                        wrote on last edited by
                        #17

                        I could handle the 8 character limitation better than I could the output from another coder working in a language that supported 32 character names. He liked creating long names that ran up to the limit. That wasn't the bad part (aside from making statements cover multiple lines to get anything done), the bad part was that he couldn't spell! So now you had to type all these long names with his mis-spellings. Sometimes his names didn't make sense "FireHunterSeekerBlowBackTo" :wtf:

                        Psychosis at 10 Film at 11

                        B 1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          For a Pascal class many years ago I used nonsense words and the type was indicated by the number of syllables. :cool:

                          Y Offline
                          Y Offline
                          YSLGuru
                          wrote on last edited by
                          #18

                          I want say where but at a past place of programmig (coudl be school or work) we came up with the below as a joke to see who could cathc on. It was for osmething that was not production so we didn;t have to worry about actually hurting any user, just havings ome fun... The below I just pseudo code to demonstrate the variable names and functions we came up with: DIM iWTFIT01 DIM sWTFIT02 DECLARE FUNCTION iWTFDID(sWTFAMI02 AS STRING) AS BOOLEAN Can you guess the pattern?

                          1 Reply Last reply
                          0
                          • B BrainiacV

                            I could handle the 8 character limitation better than I could the output from another coder working in a language that supported 32 character names. He liked creating long names that ran up to the limit. That wasn't the bad part (aside from making statements cover multiple lines to get anything done), the bad part was that he couldn't spell! So now you had to type all these long names with his mis-spellings. Sometimes his names didn't make sense "FireHunterSeekerBlowBackTo" :wtf:

                            Psychosis at 10 Film at 11

                            B Offline
                            B Offline
                            BillW33
                            wrote on last edited by
                            #19

                            I don't mind longish names if they are actually descriptive and useful. I really don't like names (short or long) that serve to obfuscate the code.

                            Just because the code works, it doesn't mean that it is good code.

                            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