4 ms·
Morse.rb
- silentbicycle 18y agoThe 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-decoder#refactor_39063 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.
- tlrobinson 18y agoIndeed, 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.
- silentbicycle 18y agoNice!
- deleted 18y ago[deleted]