21

So I was coding a project that was left for me because the initial developer was fired (I didn't know why). When I was reading his code:

var saturday_sunday = week.day - 1;

Now I understand why he was fired.

Comments
  • 0
    Naming variables is tough. But yea, that liner doesn't make much sense
  • 3
    Maybe he was working late on a Friday night/Saturday morning when he was developing that piece of genius 😶
  • 2
    Am I the only one thinking it should be named "saturdaySunday"?
  • 1
    @Zwitty so you're a c# guy?
  • 0
    It happens that saturday_sunday is an integer that then is compared to determine if the day of the week is, well... Saturday or Sunday, kinda funny sometimes but it took me more time to find out what does it mean
Add Comment