Recent Posts
Recent Comments
- python – Testing email sending-ThrowExceptions – ThrowExceptions on PostHoc: Testing Apps that Send Email
- The Silent Enemy: Failure to Report Exceptions | Thinking Matters on The Purpose of Error Reporting
- Colin James III (The Most Rev'd, Ret.) on Not-So-EasyChair Hints
- gizmos and gadgets on The Only Class You Need for CSV Files
- kswenson on The Only Class You Need for CSV Files
Archives
- April 2023
- January 2023
- December 2022
- November 2022
- May 2021
- April 2021
- February 2021
- December 2020
- April 2020
- February 2020
- November 2019
- October 2019
- June 2019
- May 2019
- February 2019
- January 2019
- November 2018
- June 2018
- May 2018
- April 2018
- February 2018
- January 2018
- December 2017
- November 2017
- July 2017
- June 2017
- May 2017
- March 2017
- January 2017
- June 2016
- March 2016
- February 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- June 2015
- April 2015
- January 2015
- November 2014
- October 2014
- September 2014
- July 2014
- May 2014
- April 2014
- February 2014
- January 2014
- October 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
Meta
Monthly Archives: March 2016
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.
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 … Continue reading
Posted in Uncategorized Leave a comment
Two Kinds of Exceptions
An exception is a message from the system to the user about something that the program can not handle. There are a couple of main categories of exceptions: environmental and program logic. They warrant quite different treatment.
Posted in Coding, Design, Poor Error Msg, practice Tagged code style, errors, exceptions, program logic error, usability Leave a comment
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.
Posted in Uncategorized Leave a comment
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 … Continue reading
Posted in Uncategorized 1 Comment
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 … Continue reading
Posted in Coding, Example Code, practice Tagged code style, maintenance, object oriented, waste, YAGNI Leave a comment
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 … Continue reading
Posted in Coding, practice Tagged build, Java, methodology, project management, projects Leave a comment