If you are clever and dare enough, you can write a 10000 lines or there about long computer program, and there will be the Singularity the very next month.
That seems an… unusual view. Have you actually tried writing code that exhibits something related to intelligence?
It depends on your language and coding style, doesn’t it? I’ve seen C style guides that require you to stretch out onto 15 lines what I’d hope to take 4, and in a good functional language shouldn’t take more than 2.
Yes, and the number of lines is a ridiculously bad metric of the code’s complexity anyway.
Was a funny moment when someone I know was doing a Java assignment, I got curious, and it turned out that a full page of Java code is three lines in Perl :-)
That really depends on coding style, again. I find that common Java coding styles are hideously decompressed, and become far more readable if you do a few things per line instead of maybe half a thing. Even they aren’t as bad as the worst C coding styles I’ve seen, though, where it takes like 7 lines to declare a function.
As for Perl vs Java… was it solved in Perl by a Regex? That’s one case where if you don’t know what you’re doing, Java can end up really bloated but it usually doesn’t need to be all that bad.
That seems an… unusual view. Have you actually tried writing code that exhibits something related to intelligence?
10K lines is not a big program.
It depends on your language and coding style, doesn’t it? I’ve seen C style guides that require you to stretch out onto 15 lines what I’d hope to take 4, and in a good functional language shouldn’t take more than 2.
Yes, and the number of lines is a ridiculously bad metric of the code’s complexity anyway.
Was a funny moment when someone I know was doing a Java assignment, I got curious, and it turned out that a full page of Java code is three lines in Perl :-)
That really depends on coding style, again. I find that common Java coding styles are hideously decompressed, and become far more readable if you do a few things per line instead of maybe half a thing. Even they aren’t as bad as the worst C coding styles I’ve seen, though, where it takes like 7 lines to declare a function.
As for Perl vs Java… was it solved in Perl by a Regex? That’s one case where if you don’t know what you’re doing, Java can end up really bloated but it usually doesn’t need to be all that bad.
I don’t remember the details by now, but I think that yes, there was a regexp and a map, and a few of Perl’s shortcuts turned out to be useful...
I have certain abilities. This is the product of the product of mine from 10 years ago.
Smartass I am. Probably not smart enough to really make a difference, though.
Smartass is good. Saying things which are clearly not true without a hidden smartassy implication behind them—not so much :-)