How to attack a problem.
- write in the problem test first "puts method()" etc.. at the bottom
- scaffold the method
- Figure out line by line. Use IRB as much as possible to test bits of code (big chunks of new code is harder to debug). Log as often as you can as well to test stuff - depending on how complex the problem is.
- break out complexity into separate methods