Skip to content

Comment on Python classes aren’t always the best solutionparent

Comments

It also makes the code easier to read, and that is what our org optimizes for, all else being equal. Code is read 10x more than it is modified, so if you can make it a little quicker to understand it’s generally recommended.

But then why not use dataclasses and get constructor, equality etc included?

AboutSource Built by g1lg1l

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