Archive for category Uncategorized

Debugging vs Writing shit

Great quote I saw today:

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
-- Brian W. Kernighan

Ma homie Kernighan! Nigga wrote the book on C. Incidentally not many people know this about ma homie, he used to be known on the streetz as… ah shit, I promised him I would keep his days back in da hood a secret.
Read the rest of this entry »

Mother F**k the ScheduledExecutorService!

Thats right! Motherfuck this service.

Deep hidden in the javadoc of this magnificent class is this gem “If any execution of the task encounters an exception, subsequent executions are suppressed.”. In other words, if your runnable task has any fuckups, your task will no longer be run. What sucks about this, is there is no clear indication that there was a fuckup in the task. No warning, just silenty the task gets canceled leading you to say: “Dude! where my task!?”
Read the rest of this entry »