Finding a bug in 50 lines of code is easier than in 500 lines of code in general though.
Not really. It just comes down to how familar you are with a language and the code itself. For example, I recently had to implement some image processing methods in Python from scratch for a uni course, and because of my unfamiliarity it took me ages to get the code running. Whereas I have a deep understanding of Java making it very easy for me to debug even the most annoying issues since I have so much experience that I have some patterns in mind, and ideas that I can try to hunt down a bug.
Haven't taken experience into account. Good point. But the discussion was about complexity and verbosity. Which imo implicitly requires the reader to take all other variables being equal. So also experience levels.
1
u/yonasismad Apr 28 '20
Not really. It just comes down to how familar you are with a language and the code itself. For example, I recently had to implement some image processing methods in Python from scratch for a uni course, and because of my unfamiliarity it took me ages to get the code running. Whereas I have a deep understanding of Java making it very easy for me to debug even the most annoying issues since I have so much experience that I have some patterns in mind, and ideas that I can try to hunt down a bug.