4 ms·
How can people ever learn new languages if they are expected to only work on languages that they know? There are loads of systems out there using multiple langu
by collyw 4y ago
How can people ever learn new languages if they are expected to only work on languages that they know? There are loads of systems out there using multiple languages. I agree why is more important than what. But sometimes you run into some strange functional construct that is very clever, but not in the slightest bit intuitive to read.
- still_grokking 4y agoIf something is not intuitive to read this is bad code most likely. If there are good reasons WHY this is still the best way to do things, this WHY should be explained. But, of course, not the how. It's self evident that some "special" functionality was used. If you read some scientific paper you would also not expect to find there basic explanations of the scientific topic. To read and understand a paper you need to know the subject. The same goes for code: You need to know your tools. Otherwise you can't use them properly anyway. Language documentation just does not belong in random code comments. The comments should be there to explain your special use case, not give some basic tutorial to people that don't know the tool used in the first place. That are completely different concerns, and should not be mixed therefore.