Tuesday, April 10, 2007

You Should Learn Scripting and Not C. Here's Why:

I don't mean to seem like a lazy bum. I would rather consider myself a seeker of efficiency.
Here's my story:
Back in the day, I took some programming courses and really stunk at it. I have a problem with things that take way too much time to learn, until I find that there is no better way. That may sound foolish, but the only thing is...now there is a better way.

Here's an excerpt from Wikipedia
"...it is usually faster to program in a scripting language, and script files are typically much smaller than, for example, equivalent C program files. The flip side can be a performance penalty: scripting languages, often interpreted, may be significantly slower to execute and might consume more memory when running..."
Traditionally, this has been known to be true, but...
"In some cases, however, e.g. with small scripts of some tens of lines, the write-time advantage far outweighs the run-time disadvantage. Also, this argument gets stronger with rising programmer salaries and falling hardware costs."

That last point regarding falling hardware costs is crucial. There is so much processing power that we don't even know what to do with it all (SETI@Home - forget about it).

So, if you don't like programming in C, but you have lots of ideas you want to prototype, you should definitely give scripting languages a try. You'll be able to write quick programs without all the fuss. Plus, you could always find someone to do the optimizing if it really is necessary, but in that case you get kudos for your creativity more than your programming skills.

No comments: