3 ms·
Does this apply to all domains and all 'kinds' of code? I feel like there's a fundamental difference in the information density between code that, for example,
by sunrunner 2y ago
Does this apply to all domains and all 'kinds' of code?
I feel like there's a fundamental difference in the information density between code that, for example, defines some kind of data structure (introducing a new 'shape' of data into an application) versus code that implements a known algorithm that might appear short in line length but carries a lot of information and therefore complexity.
- zwnow 2y agoIf the algorithm is well known, it's all good as long as the function name for it is somewhat understandable. I have to work with 200 line functions at work and it's a complete, excuse the language, shitshow.
- sunrunner 2y ago> as long as the function name for it is somewhat understandable But does using a function, essentially a box with known inputs and outputs, constitute actually understanding the function? What happens if you need to debug or understand the implementation of it? Now the original name has gone and you're looking at a larger number of differently-named things that hopefully communicate their intent well. But if you need to understand _those_, and so on...
- zwnow 2y agoMy original comment never was about understanding the implementation details. It was about understanding the high level goal of the function.