RSS

Category Archives: Coding

Abstraction and Encapsulation

Abstraction and encapsulation are opposite sides of the same coin, and essential to good object oriented software design.  Why the, is there a tendency of some programmers to go in exactly the opposite direction?  This trend and its implication is discussed below. Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on November 22, 2017 in Coding, Design

 

Tags: , ,

PostHoc: Testing Apps that Send Email

I have developed a utility program that is extremely useful for testing and demonstrating applications that send email.  It is called Post Hoc.   As far as your application is concerned, it is an SMTP server, but it comes with a built in user interface to let you see and inspect the email that was sent.  Without any fuss. Read the rest of this entry »

 
Leave a comment

Posted by on July 24, 2017 in Coding, Resource

 

Tags: , , , , ,

Don’t Write Insulting Error Messages

Error messages are incredibly important in communicating to the user when something happened that the program was not designed to handle.  Programmers usually write these messages, and there are common pitfalls to avoid. Read the rest of this entry »

 
Leave a comment

Posted by on July 14, 2017 in Coding, Design, practice

 

Tags: , , , ,

Extreme Precision Programming

What is “Extreme Precision Programming”?  It is a style of programming that aims to perform the intended function, while being very noisy about anything that deviates from the intended mode of behavior.  It is nothing like a complete methodology, but rather a philosophical leaning to guide choices at the implementation level. Read the rest of this entry »

 
Leave a comment

Posted by on July 12, 2017 in Coding, Design, practice

 

Tags: , ,

It’s OK to Ship Tests with Product

A product is a product, and testing is testing, and they should be kept separate, right?  The thinking goes that consumers would never want to test the product.  Of course they don’t, but they are not the only people in the field. Read the rest of this entry »

 
Leave a comment

Posted by on July 10, 2017 in Coding, Design, practice

 

Tags:

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

 
Leave a comment

Posted by on July 3, 2017 in Coding, Design

 

Tags: , , , ,

Is Non-existence an Error?

You call a method to retrieve information about an object with a  particular ID, but the record does not exist.  Is this an exception?   Or not?  It is hard to answer. Read the rest of this entry »

 
Leave a comment

Posted by on June 29, 2017 in Coding

 

Tags: , ,