Agile Principles, Patterns, and Practices in C# - Section I. Agile Development

Agile Principles, Patterns, and Practices in C# Another book by Uncle Bob?! Hmmm... Wow this is a real heavy weight one (I'm talking about 768 pages)! I'll break it down in several posts. 

So let's start with Section I. Agile Development. 

The Agile Manifesto was born to help us deliver better working software by changing some wrong assumptions!

What is the most important factor when making software? 
NOW!!!

Yeah, that's right, people! People are more important than processes or tools.


Another issue: why spend months doing requirements in documents with hundreds of pages (that almost no one will read and that become out of date as soon as the requirements change)? Follow Martin's First Law of Documentation: 

Let your code (and running tests) be your pilot documentation.


Also, as the wise man says: “The Only Thing That Is Constant Is Change” - Heraclitus.
If this guy has a statue, he must know something...

So instead of doing all planning before (BDUF), and lock ourselves in, why not build it incrementally and literately?


The book continues with a chapter that describes eXtreme Programming and its agile practices and principles. Pair programming, Planning game, Test-driven development, Continuous integration, Refactoring, just to name a few. The book from Kent Beck is from 1999. Why are most of them still not used?! 

Although in the last decade or so Scrum has been much more visible, it misses a lot of XP essential practices.

The book continues with a chapter for planning (nowadays usually planning poker), testing (both TDD and automated acceptance tests), and refactoring (improving structure of working code for better readability and ease of change - clean code anyone?).

And the final chapter for this section is a real test-driven development, pair programmed coding example. Gold, pure gold!

Poor Seinfeld

So that's it for today, stay tuned for more Agile PPP (and images, lots of images).

 P.S: You should also check this other manifesto (but with this image).

The Clean Coder

Do you wanna learn how a professional programmer works and behaves? Do you wanna mentor with more that 40 years of programming experience? If you answered yes to both questions, this book is for you. The Clean Coder :) 

Learn with the master, the one and only, Uncle Bob!

This is a book that reads more like a novel. Yes, I better tell you now: there is no code. However you'll get great stories and advices. Some of these stories go way, way back (think of dinosaurs like punch cards and magnetic tapes). 

Uncle Bob has seen and done it all: systems, languages, all kinds of roles within IT industry, you name it.

IMHO I believe the book should have been called the professional programmer. Of course a real professional writes clean code but the book goes well beyond that. The initial chapters are pure gold: Professionalism, how to say no and how to say yes!

Taking responsibility, keep learning and practicing are all essential for being a professional! And beware of commitments! If a manager or a key stakeholder is asking for a commitment, never, ever answer: "OK, I'll try". 
 
Another respectful Master

For those who prefer charts
If you know it can be done, go ahead. Otherwise say no, stick your ground and negotiate.

It also goes into all kinds of testing (TDD, acceptance testing, etc), time management, estimation, dealing with pressure, collaboration, mentoring... Wow!

A small critique I think a well thought and provocative conclusion is missing in the book.  

So here you go, one more book to add to your shelf :)
Subliminal message in action eheheh

Clean Code - THE book

Clean Code has got to be one of the best books I have read about code (warning: affiliated link). 

It got me hooked right in the beginning with:
"Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best."



We all have been in projects where the code base was a mess! Damn... we all have written really lousy code. And too many times the main victims are ourselves when we return to a lousy piece of code: "Who wrote this shit? Ups... I did..." This is madness! 



But we are authors. The ratio of reading vs writing code is 10:1! We should be proud of our code.

My favorite lesson from the book is the "Boy scout rule": check-in your code a little cleaner than you found it. That's it. It could not be easier. Rename a variable. Delete some dead code. Extract a function from a large method.



The book goes into a lot of detail by talking about:
  • meaningful names
  • functions
  • comments
  • formatting
  • objects and data structure
  • error handling
  • boundaries
  • unit tests
  • classes
  • etc.

Wow! That's a lot of nuts (for all Kung Pow fans. Not a fan? Go watch the movie. I'll wait. Thank me later)

 
It has 3 chapters where the author goes through open source code and cleans it! These are a more difficult read but are well worth it. The concurrency chapters are topics that IMHO should be saved for another book.

So let's stop the spaghetti, code like professionals and clean our mess! 

Hello World!

Hi guys, 

This starts a new experiment for me. I want to keep getting better as a developer. So I want to learn more and faster. And if I can share it with you, even better :) 

So although spaghetti is delicious, it's time to cook some clean code!