On Aug 7, 2007, at 12:42 PM, Manon Metten wrote:

Hi,

I'm about to learn bash or python scripting.

- Which one is easiest to learn?

Doesn't matter.  Learn one or the other or both if you need them.

- Which one is more powerful?

Doesn't matter. As a friend puts it... "If it can't be done in a shell script, it probably wasn't worth doing in the first place."

You can find endless debates amongst programmers and even non- programmers on the web about how "powerful" something is, or how "extensible", or the semantics of syntax or any of a million other banal repetitive debates about software. Only once you reach the almost zen-like realization that the computer is just a machine and it's either doing everything you want it to, or it isn't, and that you can fix it if you feel like it in ANY language... then you start to understand why the debates don't matter, and good programmers know multiple languages.

- Can I execute /bin commands from within a python script
  (something like mkdir or ls)?

Don't know.

Or should I learn bash scripting anyway?

I don't know.  Should I learn Swedish?

What exactly are you attempting to accomplish? Have you searched for software that does it? Or software that comes close? Perhaps the best thing you could do would be to find software that comes close and then code in whatever language THAT software is in, to make your finished program do what you want.


Please, let me know your experiences.

My experience is that folks that need to get something done, pick a language and do it. They end up either enjoying writing code and learn multiple languages over time, or they quit. They don't ask others to tell them what to do or learn.

Thanks in advance, Manon.

Quite welcome.

--
Nate Duehr
[EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to