Posts Tagged: code smell

Anti-Pattern and Code Smell Defined

I had pretty much assumed that nearly all software developers would know what I mean when I use the words anti-pattern and code smell. Over the last couple of months, I have come to the conclusion that this is not strictly true. What is an anti-pattern? When asking this question, I have received a number… Read more »

Object Cesspool Anti-Pattern

Object pools are a common pattern in development. The canonical example is probably a database connection pool. If objects returning to the pool are not validated, the pool can gradually fill with garbage objects, turning it into a cesspool of unusable objects. How to Identify The two easiest ways to identify if your object pool… Read more »

Code Smells and Anti-Patterns

What is an Anti-Pattern? If you know what a pattern is, then you probably already know about anti-patterns, even if you didn’t know it! In a nutshell, a design pattern is an observed good method to solve a re-occurring problem. You have probably observed patterns in your own development. For instance, maybe you have an… Read more »