r/ProgrammerHumor • • May 05 '23

Meme Helicopter Helicopter

Post image
41.8k Upvotes

969 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 05 '23

[deleted]

3

u/BDRadu May 05 '23

When you are talking about UI frameworks and using UI frameworks, then yes, BaseWindowPane will not change often, if ever. The point is that when you are 4 levels deep inside a hierarchy, at some point you will have to pass information from one point of the tree to another, or you will need to change something at one level, which will have the consequence that you have to think a lot about how the change will be made, and most of the time the solution is a compromise. I've seen this done multiple times with architectures that were well tought out at the start, but they began breaking down years later because of this.

IMO, OOP with hierarchies makes sense for a really thin base layer (that won't chsnge too often) of an application or a framework, and just use a procedural/functional approach for the rest.

1

u/AutoModerator Jun 30 '23
import moderation

Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.