11
otavio
6y

Refactoring a method of a 5 year old system. Probably one of the ugliest code I have ever seen. This is just a little piece of the ugliness

Comments
  • 1
    Is this written on a mirror!?
    #glossyAF
  • 0
    @DeadInside Hahaah 2011 iMac. It’s nice that we can see people getting behind us 😂
  • 0
    And also Spanish... I live in a Spanish speaking country myself but no development agency would have their employees code on Spanish.
  • 2
    Portuguese actually
  • 1
    It's common in portuguese companies.
  • 1
    Definitely yucky code.

    A) Pointless rescue. Nothing in that will ever raise an exception.
    B) Comparing a Boolean expression to return a Boolean.
    C) ?-methods don't typically take args
    D) Poor duplicate of .present?
    E) English please!

    Make it go away!
Add Comment