DEV Community

Discussion on: Classes Suck

Collapse
 
johannesjo profile image
Johannes Millan • Edited

Thank you for the article. I'm having trouble to follow your train of thought here though. I prefer functional programming over class based approaches myself but from this article it's not really clear to my why classes suck. Because they nudge you towards overcomplicated solutions? Maybe you can flesh this out a little more?

Collapse
 
dmerejkowsky profile image
Dimitri Merejkowsky • Edited

it's not really clear to me why classes suck

Yeah, I went for click-bait here. I'm just pointing out that there's something weird going on with classes, software design, and the real world. It seems we can use classes to represent real-world objects, but it also seems doing so sometimes backfires.

they nudge you towards overcomplicated solutions?

They definitely do that too. For more, see the Stop Writing Classes video. But I'm not talking about complexity here, I'm talking about links between code and the real world.

Maybe you can flesh this out a little more?

Well, there will be a part two soon and I hope it will make things easier to understand.

Collapse
 
dmerejkowsky profile image
Dimitri Merejkowsky

Here's part two if you want to check it out.