Programming Flaw: Constructor That Does Real Work This blog post talks about why having a constructor do too much work is a bad programming practice. When a constructor instantiates and initializes its collaborators, the result is often inflexible and can shut off the ability to inject test collaborators. The author gives a few reasons why this is a flaw: It violates […]

Read More Programming Flaw: Constructor That Does Real Work

Writing Clean, High Quality Code This blog discusses various techniques that can be used to make your code cleaner and easier to understand. Writing high quality code is very important for software that is updated over time, and the following tips will help improve your code readability and quality. Variable and Method Names Use names that reveal the intention […]

Read More Writing Clean, High Quality Code

10 Object Oriented Design Principles For my blog post this week I chose another topic on the concept map that I thought looked interesting: design principles. These are helpful guidelines to follow that will make your code cleaner and more modular. This blog post describes 10 design principles that are useful in object oriented programming. DRY (Don’t Repeat Yourself) – […]

Read More 10 Object Oriented Design Principles

9 Anti-Patterns You Should Be Aware Of This blog post covers 9 anti-patterns that are common in software development. Premature Optimization – Optimizing before you have enough information to make conclusions about where and how to do the optimization. This is bad because it is hard to know exactly what the bottleneck will be before you have empirical data. Bikeshedding – […]

Read More 9 Anti-Patterns You Should Be Aware Of