RSS

Resetting Passwords the Right Way

Never send a password through the email. There is never any need to do so. If your program does this for any reason, it is not following the best practice. Read the rest of this entry »

 
Leave a comment

Posted by on March 10, 2016 in Uncategorized

 

Constant Abuse

Constants can be useful, but constants can also be abused making code hard to read because you always have to go look somewhere else in the code just to understand what you are reading. This post is about a clear example of how constants can be used to make code much harder to maintain, particularly when they are arbitrary symbolic representations of something that is already supposed to act as a constant symbolic value. Read the rest of this entry »

 
Leave a comment

Posted by on March 9, 2016 in Uncategorized

 

Brainless Getters & Setters are a Waste

Someone long ago set a pattern that all members should have a getter and setter method.  Some are persuaded that this is OO and this is encapsulation, so a lot of inexperienced programmers do this by default.  But this is a problem. Read the rest of this entry »

 
Leave a comment

Posted by on March 7, 2016 in Coding, Example Code, practice

 

Tags: , , , ,

Don’t Baby Your Builds

In a conversation this week, one developer insisted that a special build machine should be built to assure that the build is always comes out the same.  My response: if your project is building differently on different machines, then you have a much deeper problem. Read the rest of this entry »

 
Leave a comment

Posted by on March 5, 2016 in Coding, practice

 

Tags: , , , ,

HttpServletRequest Path Decoding

The documentation on HttpServletRequest is very poor, and this fills in a critical set of facts that you need to know to write a TomCat application. Read the rest of this entry »

 
Leave a comment

Posted by on February 23, 2016 in Coding

 

Tags:

Counting Source Lines

I rarely count the number of lines of source — but here is a quick script to do it. Read the rest of this entry »

 
Leave a comment

Posted by on February 22, 2016 in Coding

 

Tags: , ,

Incremental Development

I happened across this excellent and perfect depiction of incremental development.  The image addresses on of the key flaws in thinking that lead some agile projects to fail.  So let’s discuss a bit. Read the rest of this entry »

 
1 Comment

Posted by on February 19, 2016 in Coding, Design

 

Tags: , , , ,