My team has recently begun using Bob Martin’s Clean Code book and videos to improve our code’s readability. I’ve been completely blown away by how much easier it is to add unit tests to clean code.
I’ve been working through the Xcode project template code to add unit test to it. Trying to add unit tests to the unmodified, template generated boilerplate code is not easy. Some might say impossible or not worthwhile. However, once I started refactoring the code using Uncle Bob’s recommendations, the code magically became easy to unit test.
I highly recommend Clean Code. It will make your life easier.
Could you give some real world examples of the code you’ve rewritten (before and after)?
Ron, I’ve found also “The Clean Coder: A Code of Conduct for Professional Programmers” (http://www.amazon.com/The-Clean-Coder-Professional-Programmers/dp/0137081073/ref=bxgy_cc_b_img_a) which is more recent (2011 instead of 2008) than mentioned by you. Did you read it too? What do you think should be read first? Thanks.
It’s also a good book by Uncle Bob. It isn’t about writing clean code, though. It talks about how to behave like a professional programmer. I recommend reviewing it on Amazon.com where you can read the intro without buying. Then you can choose to buy it or not. I purchased the Kindle bundle with both Clean Code and Clean Coders.
thanks. I’ve actually started reading “The Clean Coder: A Code of Conduct for Professional Programmers”. Very interesting) Couldn’t decide to switch to the “Clean Code: A Handbook of Agile Software Craftsmanship” now or after finishing the current one)))
Anyway, thank you for pointing to both these books!