Hacker News new | ask | show | jobs
by trumpeta 1614 days ago
Torvalds (I think):

> Bad programmers worry about the code. Good programmers worry about data structures and their relationships.

The problem with dogmatic OOP is that it mixes data structures and code into one. This leads to hard to modify code, unexpected side effects, poor parallelism. Imperative or FP code does the minimum to define what the data should be shaped like and then has a bunch of functions that either modify it or do some IO with it.

That's a lot easier to trace through and reason about. That in turn leads to more malleable code, which lets you evolve it faster as your understanding of the problem domain evolves.