Relative Content

Tag Archive for code-smell

Clean Code and Hybrid Objects and Feature Envy

So I recently made some major refactorings to my code. One of the main things I tried to do was split out my classes into data objects and worker objects. This was inspired, among other things, by this section of Clean Code:

How to avoid spaghetti code when I have a lot of conditions? [duplicate]

This question already has answers here: Approaches for checking multiple conditions? [duplicate] (3 answers) Closed 9 years ago. I have the following problem: An user can withdraw money from 2 payment systems (but the number of payment systems can change anytime in the future). If user has a trusted account on either of these payment […]

Escape a GameLogic god class.

When programming a simple game as an example. I always tend to get left with a large GameLogic class somewhere which is reponsible for gluing together all of the other portions of the software.