Posts Tagged ‘refactoring’

Refactoring

Posted: September 13, 2011 in Craftmanship, Refactoring, Unit Testing
Tags:

In one of my previous posts I blogged about refactoring I did for my hobby project. Robert C Martin has a nice video showing refactoring, using IntelliJ. Watch it here. You can also see why unit testing is so important, as with each change the unit tests are being ran in order to check if [...]

Here is a little example of code I’ve been faced with (not written by me), that struck me. Although the syntax is correct (it is javascript), it took me a little while to actually understand what is going on. Here is the code: And here is how I refactored it. So I mentioned brianpower in [...]