3 ms·
If 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
by zwnow 2y ago
If 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.