in reply to Do your homework!
I wish that I had done this when I was learning to program. I learnt on Fortran, and since then have used Perl, PHP, TCL and other scripting languages. Now I'm trying to learn C++ and I'm finding it a very painful experience. I think untyped variables have really spoiled me! Having said that, I'm learning from the very bottom, drawing lines, triangles and other things using just pointers - which is proving very instructive, as it has made me much more aware of what goes on 'under the hood'. Which can only be a good thing!
Re^2: Do your homework!
by Aristotle (Chancellor) on Aug 21, 2002 at 21:26 UTC
|
It is for that reason that I think everyone should spend a while writing in assembly language. I spent some time doing graphics demo coding for fun, and it has given me a deep insight into the inner workings. Of course, you're not going to do much work in assembler, but you get a fine feel for efficiency.
Even though you're miles above that level when writing Perl, it gives you a sense for what approaches generally are efficient, so even when you're not trying to squeeze cycles out of your code (and most of the time you shouldn't, you should be coding for maintainability), you are instinctively economical. It simply sharpens one's senses.
Makeshifts last the longest.
| [reply] |
|
| [reply] |
|