RSS

Author Archives: kswenson

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 that fit in there, all in the name of keeping the project organized.  This might make the programmer feel good, but it is a large pain for anyone new who has to join the project or review the source for any reason. Read the rest of this entry »

 
Leave a comment

Posted by on May 18, 2017 in Coding, practice

 

Tags: , ,

Jungles and Ski Gloves

Programming is an act of design, and in order for a programmer to do the job, they need to have a thorough understanding of the actual customer and actual situation.  An abstraction will not do, otherwise, it is like asking someone who lives in a jungle to design a pair of ski gloves. Read the rest of this entry »

 
Leave a comment

Posted by on March 4, 2017 in Design, Uncategorized

 

Answer Question by Updating Manual

Writing code, writing the manual, supporting the product, and testing the code all go hand-in-hand.  When I get a question on the product, it is an opportunity to improve the manual Read the rest of this entry »

 
Leave a comment

Posted by on January 9, 2017 in Uncategorized

 

GIT Essentials

This post contains a quick reference to the commands you need to know to use Git, the source management system. I assume you already understand the concepts behind source management. This quick reference is to the commands to use. Read the rest of this entry »

 
Leave a comment

Posted by on January 7, 2017 in Uncategorized

 

Prefer JSON over XML for Data Structures

If you are going to exchange data structures between programs you have many choices.  Of these, JSON is the best choice in general, and specifically a better choice than XML, and this post explains why. Read the rest of this entry »

 
Leave a comment

Posted by on June 1, 2016 in Design

 

Tags: , ,

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.  Read the rest of this entry »

 
Leave a comment

Posted by on March 29, 2016 in Coding, practice

 

Tags: , ,

Individual Exception Classes are Monstrously Overweight

My last post was you can avoid a lot of waste in a project by recognizing program logic errors, and keeping the exception being thrown very lightweight. In this post I talk about a particularly heavy exception, the individual exception class, which is constructed to communicate just one thing. They are just too heave for most use, and here is why. Read the rest of this entry »

 
Leave a comment

Posted by on March 16, 2016 in Uncategorized