Tag Archives: development

Good Error Messages Can Be Easy

Here is an error message I encountered one day.  It is frustrating, because obviously the code was checking something, but it is frustrating because you get no real clues what the problem really was, and a simple change would make … Continue reading

Posted in Coding, Example Code, Poor Error Msg | Tagged , , , , , | Leave a comment

Excessive Branch Use Causes Technical Debt and Increases Risk of Bugs

Agile practitioners already know that technical debt is that accumulation of unfinished work can cause projects to be late late late.  Building up a lot of technical debt is a problem because the debt needs to be payed before you … Continue reading

Posted in Coding, Design, practice | Tagged , , , , , | 1 Comment

The Urge to Merge

Concurrent development of software in a team relies on being able to merge the changes from each person successfully.  Experienced developers will already know this, but there are theoretical limits on how effective merging can be.

Posted in Coding, practice | Tagged , , , , | 1 Comment

When are "best practices" less than best?

A “best practice” is a heuristic which is used to guide early stages of a project, in order to set some patterns.  When should you use them?  More important: when are you justified in ignoring a best practice?

Posted in Coding, Design | Tagged , , , , | Leave a comment

Avoid Unnecessary Conditional Nesting

Simply put: try to make your conditions as flat as possible.  This makes them generally easier for the humans to parse and understand. 

Posted in Coding, practice | Tagged , , | Leave a comment

Counting Source Lines

I rarely count the number of lines of source — but here is a quick script to do it.

Posted in Coding | Tagged , , | Leave a comment

Never leave 'commented code' in the source

Comments in code are good. But not when they consist of old code that has been commented out of the live code. Git rid of that.

Posted in Coding | Tagged , | Leave a comment

Specifying Business Hours

Long ago I worked on a project where we needed to specify the hours that a business was going to be open, and to account for all the various difficulties around holidays and other special days. This is what we … Continue reading

Posted in Coding, Design | Tagged , , , , , | Leave a comment

Estimations – the eternal software problem

This post argues “Why We Should Stop Estimating” completely in software projects. It is very problematic.

Posted in practice | Tagged , , | Leave a comment

Always Test the Software running in the Same Way that Customer will run it

Some programmers have their own favorite ways to run the software they are working on, that is run differently than the way that the customer will run it.  This is evil.  Programmer is not testing what the customer will get, … Continue reading

Posted in Design, practice | Tagged , | Leave a comment