Thursday 28 March 2013

The 10 commandments of Egoless Programming


Thanks to my friend dupdob, I've just read the excellent post on kitchensoap's blog: on being a senior engineer.

This must-read-post includes the excellent 10 commandments of Egoless Programming, apparently found on @wyattdanger's blog post (on receiving advice from his dad). Simply Awesome...

  1. Understand and accept that you will make mistakes. The point is to find them early, before they make it into production. Fortunately, except for the few of us developing rocket guidance software at JPL, mistakes are rarely fatal in our industry. We can, and should, learn, laugh, and move on.
  2. You are not your code. Remember that the entire point of a review is to find problems, and problems will be found. Don’t take it personally when one is uncovered.
  3. No matter how much “karate” you know, someone else will always know more. Such an individual can teach you some new moves if you ask. Seek and accept input from others, especially when you think it’s not needed.
  4. Don’t rewrite code without consultation. There’s a fine line between “fixing code” and “rewriting code.” Know the difference, and pursue stylistic changes within the framework of a code review, not as a lone enforcer.
  5. Treat people who know less than you with respect, deference, and patience. Non-technical people who deal with developers on a regular basis almost universally hold the opinion that we are prima donnas at best and crybabies at worst. Don’t reinforce this stereotype with anger and impatience.
  6. The only constant in the world is change. Be open to it and accept it with a smile. Look at each change to your requirements, platform, or tool as a new challenge, rather than some serious inconvenience to be fought.
  7. The only true authority stems from knowledge, not from position. Knowledge engenders authority, and authority engenders respect – so if you want respect in an egoless environment, cultivate knowledge.
  8. Fight for what you believe, but gracefully accept defeat. Understand that sometimes your ideas will be overruled. Even if you are right, don’t take revenge or say “I told you so.” Never make your dearly departed idea a martyr or rallying cry.
  9. Don’t be “the coder in the corner.” Don’t be the person in the dark office emerging only for soda. The coder in the corner is out of sight, out of touch, and out of control. This person has no voice in an open, collaborative environment. Get involved in conversations, and be a participant in your office community.
  10. Critique code instead of people – be kind to the coder, not to the code. As much as possible, make all of your comments positive and oriented to improving the code. Relate comments to local standards, program specs, increased performance, etc.

Friday 22 March 2013

Domain Driven Design in a mindmap


I have to admit, when I first heard about DDD, I thought it was a simple buzz-word for guys that have read Fowler too much, and that try to sell lots of consultancy around a trendy concept. A kind of consultancy vaporware.

I was wrong. 

And I should have read Eric Evans' amazing blue book instead of reading lame web articles and posts on that topic, that led me to think that DDD was bullshit, another trendy acronym.

Following advices from my mates Cyrille and Alex, I've read the blue book several months from now. And I have to admit, this was a mindset revolution for me (same strength as when I discovered eXtreme Programming and agility).

DDD has dramatically changed the way I work 

(and the way my close mates work too). From now, I even turn myself into a DDD enthousiast, trying to promote the approach to whoever need to build use case driven softwares.

This is why I recently produced this mindmap, which help me to present the DDD approach to every team newcomer, in about an hour or two.



Hope this help.