6

Spent seven hours reading source code at work yesterday. The little documentation I was able to find alternated between English and Spanish. And some of the things I saw... Straight out of a horror novel.

For example: NUMBER_2 * NUMBER_60 * NUMBER_60 * NUMBER_1000 to get the number of milliseconds in two hours.

Or this super contrived method which capped the registration age at 100, which now caps it at 102 anyways because they use hard coded values for the current year. Took me 15 minutes to find out what "fixYear" (this method) did.

No wonder I got home and crashed in bed till nearly midnight after that... I swear that was harder than a university Calc final...

Comments
  • 1
    Well you never know when they decide to change the number of seconds in a minute, then you'll be glad you didn't hardcode that number!
  • 0
    Because who could bother taking a minute just making a simple math calculation. Or even better just making a frickin' internet search for "hours to milliseconds" and using the converter that appears in the search results...
  • 2
    Doctor @Root prescribes a healthy dose of shred, taken once per day until the cruft disappears.

    Remember, a `shred -zfu -n 1024` a day keeps the insanity at bay.
Add Comment