4 ms·
In my opinion, good code is like a Brita filter. It does its job, will one day need to be replaced, and it should be easy to replace. More importantly: metapho
by beebmam 3y ago
In my opinion, good code is like a Brita filter. It does its job, will one day need to be replaced, and it should be easy to replace.
More importantly: metaphors are not a healthy way to understand an idea. Ideas are more nuanced than a metaphor could possibly account for. Abstaining from metaphors might not make for a catchy headline though.
- xupybd 3y agoIn my opinion, metaphors are like a picture. They can communicate vast amounts of information very quickly but can have inaccuracies. You should expect some additional nuance when receiving a metaphor.
- dmbche 3y agoLittle pushback here - metaphors are great tool to understand something, and can convey some meaning more efficiently than other means. But "the map is not the territory"!
- themodelplumber 3y agoThe territory isn't the territory either, so no big deal!
- Minor49er 3y agoMetaphors are also ways of communicating ideas. A good metaphor is as simple or as complicated as it needs to be in illustrating a new concept
- KarlKode 3y agoProblems arise as soon as you (ab)use a metaphor (used to explain a higher level/adjacent problem) to explain concepts it was never meant to model. Example: Array of items as a shopping cart: how do you efficiently remove an item from the array (as you can from a shopping cart)?
- deleted 3y ago[deleted]
- Minor49er 3y agoThere's always a possibility that a bad metaphor can be made, but this doesn't mean that metaphors themselves are bad. They require at least some consideration in order to communicate and relate the relevant details of something to another thing. It would be like criticizing multiplication because sometimes people forget to carry extra values
- inopinatus 3y agometaphors are like, herding .. fine old .. elephants .. in the air
- peteradio 3y agoIs this supposed to be ironic? Your first sentence was a metaphor.
- haswell 3y agoWhy can’t good code be all of the above? Thinking about code this way takes nothing away from appropriately deep explorations of nuance. They coexist without issue.
- dools 3y agoThe headline is a simile.
- bena 3y agoI think the issue you may have with metaphors is that people tend to argue the metaphor rather than engage with the concept. Arguing the metaphor is pointless, because the metaphor isn’t the thing, it’s just a way to explain an aspect of the thing.
- inopinatus 3y agogood code is like vintage wine: you don’t recognise the packaging, no-one agrees on how exactly to describe why it’s good, and the only person who still remembers all the details of production retired ten years ago
- 000ooo000 3y agoMetaphors are a fine way to understand an idea if one accepts that their purpose is to leverage an existing understanding of something, and that they're lossy. So I guess my issue with your comment's second half is that I don't think metaphors are being used as a shortcut to a full and complete understanding of a topic. They're an aid and I think that is mostly how they're used, IME. I don't think they should be written off.
- phreack 3y agoUnrelated, but lately I find that I have a much harder time learning with metaphors than if educators and explainers would just speak directly about things. I had very terrible experiences learning physics because teachers would always resort to weird metaphors, about music, about electricity being like a river, and more.