67
wasp
8y

Variable naming at its best...
Took only 2 hours to notice the difference between leftToRight and lefttoRight

Comments
  • 13
    "if lefttoright" then in the comment "from right to left" Who the hell wrote that code?
  • 1
    @DeepSpace someone of the nob head variety
  • 4
    Looks like something that a compiler should easily be able to identify. :p
  • 5
    Not sure if you noticed but we're talking 4 variables here:

    xOrY, xORY, leftToRight, lefttoRight ... Training my Sherlock Skills
  • 2
    My eyes, they burn!
  • 6
    The road to hell is paved with similarly named variables
  • 1
    I had issues capitalizing what I should in camel case after a semester of using Ruby
  • 1
    @DeepSpace Satan himself, of course.
  • 0
    I have 2 questions:
    1.) What programming language is this?
    2.) Couldn't you have put...
    xOry = True;
    ...in the last line, since xORy has to be true, because of the first if statement?
  • 4
    This is like Vogon poetry in code, where your stomach starts to creep upwards to strangle your brain as you try to grasp the abysmal logic.
  • 0
    @sebh0602 that's the point... it's not the same variable ;)
Add Comment