Arthur O'Dwyer personal blog
The use of `class` for things that should be simple free functions
For those who only read above the fold: I don’t say that all object-orientation is bad! OOP, especially classical polymorphic OOP, has a well-deserved place in real code. I’m going to talk about a very specific antipattern that I see with some frequency: the use of class for things that should be simple free functions.
- Points
- 408
- HN comments
- 584
- Submissions
- 2
- Cited by
- 0 commenters
Software EngineeringProgramming Languages2020
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 28, 2020 | The use of `class` for things that should be simple free functions by ingve | 408 | 399 |
| May 29, 2022 | The use of ‘class’ for things that should be simple free functions (2020) by ddtaylor | 106 | 185 |