News for hackers. Stuff that matters.
Re:The 4-chan Go programmer by lowbloodsugar on Wednesday August 28, 2024 @04:46PM (#41384165)
I mean we are in “midwit meme” territory here. 4 levels of indirection look fine to an idiot. A “midwit” hates them and cleans them up. But a very seasoned engineer, thinking about the entire system, will happily have 4 layers of indirection.

Like anyone using a HashSet in Rust is already doing four layers of indirection: rusts HashSet is actually wrapping a hashbrown::HashSet. That set is wrapping a HashTable and the HashTable is wrapping an inner Table.

If you’re having trouble comprehending such code then a good IDE (or vim) that can navigate the code on a keypress should help.

Re:The 4-chan Go programmer by makapuf on Thursday August 29, 2024 @02:38AM (#41387976)
Most of the midwit memes I see on programming are :

- beginner "lets write simple, to the point code" - midwit: noo let's have many layers of abstraction just in case - jedi: let's write simple, to the point code