Tag Archives: source

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

GIT: Accented Characters in Filenames

If you are using file names with non-ASCII characters in them, then Git will sometimes behave funny.  There are some commands to know about.

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

Git Branching

I found a lot of the documentation is incomplete and only useful to those who already know how to do it.  Plus, they usually are based on unrealistic scenarios.  Here are the notes that are useful to me to make … Continue reading

Posted in Coding, practice | Tagged , , , | Leave a 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

Lots of Folders != Project more Organized

Making a development project with lots of folders does not mean that the project is more organized.  However, there is a seemingly irresistible desire to make a folder for every possible purpose, and then put the one or two files … Continue reading

Posted in Coding, practice | 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

SVN Essentials 2

Most of what a developer needs to know about SVN is covered in SVN Essentials.   However, if you are a project lead, and responsible for a project with multiple releases, you might need to also knows these details about branching … Continue reading

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

Always use a brace even if not needed

In C, C++, Java, and other languages, you use curley-braces — ‘{‘ and ‘}’ — to indicate the start and the end of a block of code.  However, the braces are optional if the block is only a single line.  … Continue reading

Posted in Coding | Tagged , , | Leave a comment

Essential CVS

I wrote up these cheat notes about 10 years ago, and I still use them today.  Just a short, brief, introductory instructions to using the CVS source management system.  Essentials that you need to get started.

Posted in Coding | Tagged , | Leave a comment