From PHP to Perl: What's hot, what's not in scripting languages

To confuse matters more, many so-called compiled languages are now bundled with just-in-time compilers that make them as agile as scripting languages. First, Java got Java Server Pages, allowing programmers to tweak Web pages just like PHP and Cold Fusion programmers could. Lately Java programmers have been using Groovy, a language that's structurally integrated with Java and runs on the JVM. The main draw? It has more of a scripting language syntax.

[ Find out which 7 programming languages are on the rise and verse yourself in the 12 programming mistakes to avoid. | Keep up on key application development insights with the Fatal Exception blog and Developer World newsletter. ]

And so developers have lots of choices and much religious battle to wade through. To help you figure out where to place your scripting language bets, we surveyed programmers, commit logs, search engine traffic, and book sales data from O'Reilly. What follows is a barometer of scripting languages -- JavaScript, ActionScript, Perl, Python, Ruby, Scala, R, PHP, and Java -- with our best-guess forecast of which languages are rising and falling in scripting hipness.

Hot scripting language: JavaScript
Few scripting languages are as polarizing as JavaScript. But love it or hate it, it's hard to debate the fact that JavaScript has had a renaissance of late, making it the lingua franca of the client-side Web. JavaScript performance has exploded in recent years thanks to an arms race among browser vendors to build the fastest JavaScript engine, and the server side now has a powerful scripting tool in Node.js.

Thanks to its powerful libraries and the ongoing emphasis on JavaScript performance tuning among browser vendors, JavaScript is shedding a long-worn reputation as a lightweight tool for hack programmers. "The JavaScript renaissance is the redemption of what was once seen as a script-kiddie language," says Simon St. Laurent, senior editor at O'Reilly Books. "There really is a nice language hidden inside."


This is not to say that JavaScript does not have its share of detractors. "Aesthetically I just don't like JavaScript," says Mile Liles, a Baltimore programmer who tends to work either in Ruby on Rails or Java. "It's a personal thing."

Liles, however, acknowledges JavaScript's dominance on the Web and is intrigued by how you can use JavaScript without compromising aesthetic standards. In particular, he's drawn to CoffeeScript, a cleaner syntax that inserts the necessary curly brackets and compiles down to regular old JavaScript. In other words, it allows you to write JavaScript without getting your hands dirty with all of the JavaScript punctuation.

你可能感兴趣的:(PHP)