Skip to content

Comment on Is Object Oriented Programming Too Complicated?parent

Comments

"But if you write code that doesn't change the existing system, you simply test the additions" boils down to the open/closed principle. It's much safer to create a new class (often by inheritance) than to modify the guts of an existing class that already has dependencies.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.