Reducing the number of arguments to a constructor

You could have

MovablePatch(Renderer* renderer, CircleAppearance circleAppearance)

where CircleAppearance gathers the other info.

However, clean code and other books that generalize about what good code should look like, are aiming for 80 percent of the code out there. Your code seems to be “closer to the metal” than the typical LoB (Line of Business) variety. As such, you may run into places where certain coding ideals are not applicable.

The most important part is that you’re thinking about it and trying to keep things nice and tidy! 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)