Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best "official" scripting language for Windows programmers [closed]

Suppose there were several projects mostly maintained by smart interns, who eventually leave after a period of time. Scripts are used here and there in key parts, for example, to back up a database, rename it, zip it, move it over ssh, unzip it, and then to restore it with different settings. You know, the scripting stuff.

The programming languages for the application side is set, but those for scripts have been relaxed. Currently there are probably healthy mix of bash and .bat file, and maybe some Perl.

1) To avoid language proliferation, and 2) because I don't want to force bash upon future Windows programmers, I'd like to set an "official" scripting language.

Google picked Python for this, and it's famous for being readable, easy to learn, and having good library; however, I personally don't find it that readable compared to C-like grammar, Pascal, or Ruby.

In any case, if you were to be forced to use only one scripting language on a Windows machine (with Cygwin if you want to) for all scripting, what would you like it to be, and why?

Related religious wars:

  • What Is The Best Scripting Language To Learn?
  • Which Scripting language is best?
like image 420
Eugene Yokota Avatar asked Nov 28 '08 22:11

Eugene Yokota


People also ask

Which is the No 1 programming language?

JavaScript and Python, two of the most popular languages in the startup industry, are in high demand. Most startups use Python-based backend frameworks such as Django (Python), Flask (Python), and NodeJS (JavaScript). These languages are also considered to be the best programming languages to learn for beginners.

What is the most useful scripting language?

The Best Scripting Languages To KnowPHP: PHP is an open-source scripting language that is frequently used in back-end web development. Python: Python is known for its concise syntax. It requires less typing than many other languages. Ruby: Ruby is one of the easiest scripting languages to learn.


2 Answers

PowerShell - designed from the ground up to be a Windows scripting language, and it can hook into the CLR for advanced functionality.

(yes, I realize this doesn't run under cygwin... but why is that a requirement?)

like image 146
ahockley Avatar answered Nov 25 '22 20:11

ahockley


When I've written cross-platform product installers, coding a UNIX shell script for Linux/Mac/Solaris etc. is really easy, but trying to do equivalent tasks in BAT is like working in the dark, underwater, with both hands tied behind your back. I can't state strongly enough that BAT scripts are a blight on humanity.

So what I've heard about PowerShell makes me happy. It's a life-saver for Windows developers. The only trouble is that I believe it's still a separate install, it isn't available by default (I've read that it'll be on Windows Server 2008 and Windows 7).

Oh well, it only took Microsoft 20 years to replace BAT scripts with something as capable as UNIX shell, so I guess I shouldn't be too ungrateful! >:-P

Get the installer for PowerShell here:

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx

like image 30
Bill Karwin Avatar answered Nov 25 '22 20:11

Bill Karwin