From the Blogosphere
Up-and-Coming Programming Languages | @DevOpsSummit #APM #DevOps
Staying current in the programming field can sometimes make you feel like the Red Queen in 'Alice Through the Looking-Glass'
By: AppDynamics Blog
Mar. 5, 2017 09:00 AM
Five Up-and-Coming Programming Languages to Know About
Staying current in the programming field can sometimes make you feel like the Red Queen in “Alice Through the Looking-Glass.” She said, “It takes all the running you can do to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!”
You’re a master at Ruby on Rails? Great, but how are you with statistical analysis in R? Want to work at Google? Forget Python and start building channels in Go.
Introduction to R
Though it was preferred by academic data scientists originally, R has proven instrumental for enormous business applications like large-scale financial reporting for Bank of America and Facebook’s Social Graph, which analyzes interactions among 500 million people. Today, companies like Microsoft are using R as a server platform to go further with predictive modeling and machine learning. For many of these companies, R is replacing SQL, which can become extremely resource-intensive for advanced analytics.
Here are three reasons why R has taken off recently:
Introduction to Go
Go was made for web services that need to handle thousands of concurrent web requests. Popular app builders like Python can’t deal with the speed and intensity of parallel requests on mobile. For the same reason, it is an excellent HTTP handler. Like C++, Go is ideal for writing web services with precise control without the sharp learning curve of the aging object-oriented standby. Go has also been compared favorably with Algol.
As you would expect from a language with the backing of Google, Go has been used for major projects like Docker’s large-scale, distributed software projects. Evidence of the range of Go came in the form of Revel, which is a high-productivity, full-stack web framework that was created with Go. Revel is able to handle web essentials like routing, caching, parameter parsing, templating and more.
Go’s power of handling concurrent requests resides in its goroutines and channels. While goroutines function like threads, channels are the communication ports between goroutines.
Here’s how a sample channel operates:
Introduction to Hack
Facebook reported that many common tasks were becoming problematic in PHP, such as calling a method accidentally on a null object, which would generate an error that you wouldn’t be able to catch until runtime. Another problem was with complex APIs that required developers to look up mundane method names in documentation. Those are merely annoying unless you are working at a company like Facebook, where developers are expected to ship code twice a day. Thanks to the upgrade, Hack is now replacing Facebook’s entire PHP codebase.
While just about any site that uses PHP now could be using Hack, it has not gained widespread acceptance yet. One example of a creative uses for Hack is Vindinium, which is the basis of an AI-driven game system.
Hack lang’s GitHub page provides useful code examples, such as a Composer installer to manage dependencies:
cd hack-example-site sudo apt-get install curl curl -sS https://getcomposer.org/installer | php php composer.phar install
Introduction to Rust
Rust was made to give programmers complete control through extensive compile-time checking. For example, browser exploits in C++, which caused Firefox to be unstable, would generate compile-time bugs in Rust and close the hole. Dropbox is the highest profile proponent of Rust right now as it extracts itself from Amazon Web Services.
The 2016 State of Rust Survey reported that one-fifth of the language’s users are deploying it for commercial purposes, either full or part-time.
Here’s an example of Rust in action:
Introduction to Swift
Many of the biggest app developers on iOS have already incorporated Swift into their base code, including:
Here is an example of code from a Swift app for calculating tips:
The post 5 Up-and-Coming Programming Languages to Know About appeared first on Application Performance Monitoring Blog | AppDynamics.
SOA World Latest Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
SYS-CON Featured Whitepapers
Most Read This Week