3 ms·
> reading and trying to understand source code ... maintaining source code I think it helps but in general those things are not related very well. For examples
by rdtsc 16y ago
> reading and trying to understand source code ... maintaining source code
I think it helps but in general those things are not related very well. For examples guess what this line of code does (this is APL) ?
X[⍋X+.≠' ';]
According to APL's Wikipedia entry it "sorts a word list stored in matrix X according to word length". It is just 1 line of code so it wins there. But now imagine reading code like that and maintaining it.
- blub 16y agoAn extreme example doesn't prove much and there are many languages that successfully balance readability with LOC. e.g: Python, JS.
- rdtsc 16y agoRight, I was just trying to highlight that a simple metric of LOCs is not enough. One can right cryptic code to minimize LOCs but that usually leads in harder to read and maintain code.
- anon_d 16y agoIt's silly to expect to be able to understand text in a foreign language. If you want to read APL, learn APL; It's a great language.