Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There just comes a point where they make sense. The article uses some very minimal examples, but the point at which I find myself reaching for classes is the point at which it's gotten complex enough to need them.

I find them useful when my code has become a big, sprawling mess of functions throwing dicts around, and I'm losing track of what the structure should be.

They're useful when they make sense. I can't think of many projects I've started off with them, but they've helped me straighten a few out.

Neither love them nor hate them, and struggle to see why folks get animated about them. They're a useful tool, sometimes.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: