Jonathan Gros-Dubois
1 min readJul 2, 2021

--

OOP works extremely well if used correctly. The problem is that almost nobody is doing that. Everyone is using it without having read any books or articles about best practices (or without having understood the content) — That’s why it gets a bad name.

The massive influx of new junior developers into OOP languages may be responsible for this widespread ignorance of best practices. OOP is a victim of its own success. A success which has been earned and is well deserved. On the other hand, FP was basically abandoned decades ago… The popular resurgence of FP (and I mean pure FP) has no basis aside from stroking the egos of a few dinosaurs who regret the way things turned out.

These days people hardly ever mention the following terms when discussing OOP:

  • High cohesion
  • Loose coupling
  • Encapsulation / Blackbox

People who hate OOP rarely understand the critical points above or they don’t know how to apply them properly to their coding.

Often, OOP haters are simply not interested to learn how to write proper OOP, they prefer to bash it without understanding it because they want to fit in with the FP crowd for social reasons.

--

--

Responses (2)