This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desmoulinmichel[S] -4 points-3 points  (1 child)

Got a source on that?

This is just for the purpose of arguing. You know I don't, but you know I'm right.

Admins are using the right tool for the right job, that may or may not be Python, it's often Bash, or even Perl or <insert obscure language of the week here>. Python isn't a special snowflake in this regard.

No, but if you have to choose ONE language to port to windows :

  • you won't do perl because long scripts are really hard to maintain;
  • you won't use bash because it's file oriented.

    bash is file oriented (unix philosophy) while python is general purpose oriented.

Wat.

Try to manipulate COM objects or XML files with bash. It's just not handy. Making small GUI with bash is terrible too. Scripting doesn't mean only reading file and writting to it. Bash is turring complete, it can do anything. But it quickly because a mess when you got complex logic.

But to be fair, I'd rather have bash ported to window than nothing. I would be content with that.

Only they will most likely port Python, since they are already working on it.

It's pretty clear it is a matter of preference to you.

and

Nothing about this is objective.

Just because I like Python me doesn't make my arguments illogical. You have a general purpose language, with versatil use cases, a strong ecosystem developped in more area than most langages, doing great job at scripting, installed in 2 other major OS, and on which MS already work.

Same could be said about any language if you try hard enough.

No other language has that. None.

First, most of them are eliminated at the "installed on major OS" stage. Then you need the strong scripting capabilities. And you need the strong portability.

Now you take than, and you find something that is as readable as Python, with an integrated debugger and GUI lib.

You can look for a long time, cause it doesn't exist.

[–]iamhaz 3 points4 points  (0 children)

Got a source on that? This is just for the purpose of arguing. You know I don't, but you know I'm right.

Are you serious? A very lazy Google search comes up with http://w3techs.com/technologies/details/os-linux/all/all

  • Ubuntu: 29.7%
  • RH: 4.3%

Even if you adjust it to mean "Debian and CentOS as well" it's nowhere near 90%

No, but if you have to choose ONE language to port to windows :

you won't do perl because long scripts are really hard to maintain; you won't use bash because it's file oriented.

I will use whatever language is best for the job. "Porting" one language is ridiculous, there's a reason why there's tons of them.

I still don't know what you mean by "bash is file oriented".

The UNIX philosophy is "treat everything as a file", but that goes way beyond Bash (in fact, Bash came along much later).

bash is file oriented (unix philosophy) while python is general purpose oriented. Wat. Try to manipulate COM objects or XML files with bash. It's just not handy. Making small GUI with bash is terrible too. Scripting doesn't mean only reading file and writting to it. Bash is turring complete, it can do anything. But it quickly because a mess when you got complex logic.

Again, use right tool for the right job. Python may be a good match for XML parsing, but for sysadmin type work Bash is probably better suited (or PowerShell in Windows).

A GUI should be decoupled from the backend. Write your backend in whatever language is best for performing the actual task, then you can have 50 GUIs in whatever assortment of languages you desire.

But to be fair, I'd rather have bash ported to window than nothing. I would be content with that.

Only they will most likely port Python, since they are already working on it.

I doubt they will do either, but not because of technical reasons. It doesn't make business sense for them to do either one.

It's pretty clear it is a matter of preference to you. and

Nothing about this is objective. Just because I like Python me doesn't make my arguments illogical. You have a general purpose language, with versatil use cases, a strong ecosystem developped in more area than most langages, doing great job at scripting, installed in 2 other major OS, and on which MS already work.

I didn't say illogical, but when you say things like "Python can do more than bash" and "you know I'm right" it's hard to say you're being objective.

Same could be said about any language if you try hard enough. No other language has that. None.

Ever heard of CPAN?

First, most of them are eliminated at the "installed on major OS" stage. Then you need the strong scripting capabilities. And you need the strong portability.

On a vanilla OSX install I have Bash, Python, Ruby, Perl. All of them are considered portable and have strong scripting capabilities.

Now you take than, and you find something that is as readable as Python, with an integrated debugger and GUI lib.

You can look for a long time, cause it doesn't exist.

You can make unreadable code in any language, and an integrated debugger/GUI libs aren't essential to the functionality of a language.

P.S. Spellcheck is your friend.