Author Archive

Explicitly Redundant

October 12th, 2007
Posted in Refactoring | No Comments

Today, I caught myself doing this: bool f() { bool r; if( x == y ) { r = true; } else { r = false; } return r; } When I really should have written: bool f() { return x == y; } In the actual code I that I was writing, x and […]

Code Refinement

October 11th, 2007
Posted in Refactoring | No Comments

Everyday is an opportunity to learn something new. Today, I learned how to set the tab width for vi (set tabstop=2) while trying to format the picture for this blog entry, for example. Daily learning is a form of personal refinement. Accumulated knowledge allows people to do things better. If the lesson relates to development, […]

Reinforcing Knowledge while Learning

October 3rd, 2007

I just finished rereading Design Patterns: Elements of Reusable Object-Oriented Software. As a little experiment, I will explore how far I can get with the book’s fundamental design patterns with Python, an object-oriented scripting language that I am trying to pick up. One of the first design patterns I came across even before reading DP […]

Goal-based Learning

September 18th, 2007

“You dropped a hundred and fifty grand on a fucking education you could’ve got for a dollar fifty in late charges at the public library.” –Will, Good Will Hunting My experience in college can be summed up as an ongoing lesson on learning. College was an opportunity to learn how to learn. I am employing […]

Shall, Should, and May

September 16th, 2007

The text of RFC2119, which describes the use of these phrases in system documentation, is presented here: Network Working Group Request for Comments: 2119 BCP: 14 Category: Best Current Practice S. Bradner Harvard University March 1997 — Status of this Memo — This document specifies an Internet Best Current Practices for the Internet Community, and […]