RSS

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

 
Leave a comment

Posted by on December 26, 2015 in Coding

 

Tags: ,

Source Management – 7 Rules

Those new to a source code management system tend to make a few predictable mistakes. These 7 rules are helpful to be learned right away and form a good practice from the beginning. I also have seen some experienced programmers who could benefit from following these rules. Read the rest of this entry »

 
Leave a comment

Posted by on December 21, 2015 in Coding, practice

 

Tags: , , ,

Error messages should be very literal

We all struggle with the correct wording for error messages. It is not easy. But I ran across an example today that should help understanding Read the rest of this entry »

 
Leave a comment

Posted by on December 12, 2015 in Coding, Poor Error Msg

 

Tags: ,

Error-First Design in JSON/REST/AngularJS integration

You have heard about “mobile-first” when creating your UI, but there is something you should do before you start designing the UI:  you should design the error handling/display mechanism first. Read the rest of this entry »

 
Leave a comment

Posted by on December 4, 2015 in Coding

 

Tags: , , ,

Don’t use URL-Encoding in REST path tokens

Standard are nice, but sometimes a misguided implementation attempting to protect people completely invalidates the benefit. Read the rest of this entry »

 
Leave a comment

Posted by on November 23, 2015 in Coding, Design

 

Tags: , , ,

Don’t Fear the Lowly Static Method

When people first learn object oriented programming (is there any other way) they seem to want to abandon all non-member methods (such as static methods) as being anti-object-oriented. This is foolish. There are times for objects, and times for static methods. Read the rest of this entry »

 
Leave a comment

Posted by on October 29, 2015 in Coding, Design

 

Tags: , ,

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 came up with and it still stands today. Read the rest of this entry »

 
Leave a comment

Posted by on September 21, 2015 in Coding, Design

 

Tags: , , , , ,

 
Follow

Get every new post delivered to your Inbox.