Sitemap

OOP considered harmful

1 min readMay 2, 2022

--

Thank you, awesome reader, for choosing this tab. Bear with me for 3 more minutes, and I promise you, this story will be anything but dull.

Get Iurii Krasnoshchok’s stories in your inbox

Join Medium for free to get updates from this writer.

OOP considered harmful? Maybe you’ve already agreed whilst clicking the link, maybe you clicked the link just to prove yourself that the author is an idiot. What I’m trying to say, “OOP is harmful” is a point of view. I intend to prove it useful, whether you are a raging OOP zealot, a die-hard math purist or none of the above and just came here to code.

TL;DR

  • OOP is a very powerful paradigm but as it comes without usage instruction, more often than not it leads to over-complicated code.
  • Function > Class.
  • Just write code, good abstractions will reveal themselves like Polaroid pictures, classes included.
  • Use UML sequence diagrams to design software, use class diagrams only to describe existing systems.
  • The title says OOP while mainly I speak about classes in popular programming languages (not pure actors and messages model).

Read the full story on my personal site: no ads, no tracking, and open comments via GitHub.

--

--

Iurii Krasnoshchok
Iurii Krasnoshchok

Written by Iurii Krasnoshchok

Professionally pressing buttons since 2001. Would code even if it would be illegal.