Hacker News new | past | comments | ask | show | jobs | submit login
Morse.rb (judofyr.net)
4 points by qhoxie on Oct 19, 2008 | hide | past | favorite | 3 comments



The really fun part is when you have to maintain code like this that somebody else thought was a good idea.

Adam's refactoring is actually quite clean: http://refactormycode.com/codes/513-morse-code-encoder-decod...

Refactoring code is about making it clearer, cleaner, and easy to adapt in the future. Not this.


Indeed, this code reminded me of a Brian Kernighan quote:

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.


Nice!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: