Write code that is easy to change

It’s risen to #1 on my list of things to remember when writing code. When I write something, I want to be able to change it easily and remove it easily. Every single line I write is outdated as soon as I write it, so rather than it being a new addition to the codebase, I view it as a decaying corpse that absolutely must be replaced at some point.

Far easier to remove a corpse that’s already in a bodybag than one which a hundred other fresh corpses rely on to stick around, right?

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: