Post Featured Image

Never Ever Return Null!

Have you ever asked an object or library for a resource and got a NullReferenceException when you went to use the resource? I have. Nothing breaks my trust as much as code that unexpectedly returns nothing. That sort of code forces developers to litter their code with nasty bits of defensive logic!

READ MORE

Post Featured Image

Implementing Serialization Using AOP

Well-designed objects do one thing, one thing well, and one thing only. They are not burdened by external concerns. They are not cluttered with things that should be the responsibility of another object. The domain objects in your application should be strictly concerned with the business problem. Unless you working for a technology solutions company, there should not be any code related to serialization, transfer protocols, user permissions, or database persistence in your application core. Keep your objects clean and tightly-designed!

READ MORE

Post Featured Image

Make It Small

What simple heuristic will most help you improve your software development process?

READ MORE

Post Featured Image

Using Lambdas to Simplify Exception Handling

Duplicate code is wasteful and problematic. It decreases the maintainability of software and potential leads to reliability issues. Far too often, I see duplicate exception handling blocks within a codebase. In the past, some developers might have felt that the languages required this duplication, and they were partially correct. However, in languages with anonymous functions, such as Java 8, C#, and Javascript, there is no excuse for duplicate exception handling.

READ MORE