Friday, July 23, 2010

Boy Scout Rule, Bad Code, and Uncle Bob

I saw a portion of Uncle Bob's presentation here on bad code, and the section on the "Boy Scout rule" (whatever that is) on software development, no matter how funny or crazy it sounds, to me is one of the simplest and better ideas on how we can improve software development. The idea, if I can paraphrase Uncle Bob, is to leave the code better than when we found them. And I realize that the obsessive-compulsive in me have been doing this all along for years without knowing it. Now at least I know how to call it and better yet how to communicate it to my team and those willing (or not) to listen.

See for yourself. I have yet to see the entire video myself.

http://www.infoq.com/presentations/Robert-C.-Martin-Bad-Code

What a line of code

I didn't know this line of code (in any language) will make sense but apparently it does: auto l = [](){}; Look at all those bracke...