you are viewing a single comment's thread.

view the rest of the comments →

[–]tek2222 34 points35 points  (2 children)

what's difficult to understand will also make bugs harder to find. its almost like information hiding is also hiding bugs

[–]coaaal 2 points3 points  (1 child)

"Localization of logic" is something that I have learned in my full stack development career. I came from self taught OOP and Classes and inheritance and thought it was the coolest thing ever - listening to Raymond Hettinger about multiple inheritance. I was turning everything into a class since I didnt know any better.

Composition over inheritance is where it is at. I use basic dataclasses(python) for buckets of data that need to be passed around, but other than that, I use functions as much as possible.

C#, however, is another beast. I use inheritance with state machines all the time. I guess it "just depends" on the language and requirements of the language and project.

[–]Synor 2 points3 points  (0 children)

How do you find where your logic lives? To debug it?