219

Our programming teacher showed us some parts if his code the other day. When I asked him why he got an empty if-block in there he responded with "cause I only need the else-block"

Comments
  • 19
    πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚
    He's got a pointπŸ˜‚πŸ˜‚
  • 4
    welcome to devRant!
  • 27
    Some people refuse to be negative... You have to allow it
  • 22
    @fox8091 c'mon... Obviously the professor does not like to negate things.... He is a positive guy
  • 0
    @fox8091
    Yes I know
  • 3
    Is that the reason for some languages to have "unless (condition)"?
  • 2
    Best teacher ever..
  • 2
    I can feel the cringe
  • 0
    @Jop-
    High school
  • 1
    I like to do it some times, so I won't negate the conditionals when I want them to be syntactically similar to some formula (and thus quicker to verify to be correct, at a glimpse)
  • 1
    There are always multiple ways of doing stuff.
  • 2
    Don't be so "negative", see your teacher is not being "negative" at all!
  • 1
    Tha f! Lol that's when unless comes in or if not in ruby or !true or !false lol
Add Comment