3 ms·
I'm going to slightly disagree with other comments here and say that LOC is a meaningful metric. It might not be the best, as OP suggests, but it's worth someth
by mrshoe 17y ago
I'm going to slightly disagree with other comments here and say that LOC is a meaningful metric. It might not be the best, as OP suggests, but it's worth something.
Having written a lot of Python it is now frustrating to write C++, mostly because of the verbosity. Instead of thinking about the problem I'm trying to solve, I'm thinking about how to deal with the language or necessary data structures. Python just gets out of your way and lets you solve the problem at hand quickly and concisely.
I don't think more thought goes into a line of Python code, and if it does, it's productive thought. It's not the "what's the 6th argument to this function?" or "is the type of the 3rd argument to this function really just a typedef for a float?" type of my-language-requires-me-to-jump-through-hoops thought.
To me, all that verbosity means more time thinking about the code and less time thinking about the problem.
- alanthonyc 17y agoI thought this what the OP was trying to address. In your example, the C program would appear to have been a more productive use of time, but in reality, the Python program was - even as it was much smaller.