What Programming Language Should a Beginner Learn in 2015?
Introduction
It’s not news that STEM talents are in great demand and are paid well. Online postings for software jobs across the U.S. grew 31% from 2007 to 2012 – nearly 3x faster than overall job postings. The US Bureau of Labor Statistics estimates software developer jobs to continue to grow at 22% from 2012~2022, with a median pay of $95,510 for software app developers as of May 2014.
If you’re looking to learn how to code, the sheer number of programming languages may be overwhelming – what language should you indeed learn? This article hopes to give you some pointers by comparing the salary, popularity, and prospective future associated with different programming languages.
Here’s a Fun Quiz to help you decide the best programming language you should learn in 2016
Want to become a web developer? Check out our 1:1 mentorships
An Overview of Programming Languages
Before we go into comparing programming languages, let’s first take a look at the languages we’re going to be covering.
Dynamically Typed Languages
Dynamically typed languages are generally thought of as easier for non-coders to learn because they’re flexible. You can quickly build an app from scratch with less lines of code, and there is no hard rule on how to write things to behave in the way you want them to. Dynamically typed languages are often interpreted (non-compiled), which means your running application can quickly reflect the changes you make, which can save you time.
In general, web applications are usually written in dynamic languages.
JavaScript
Not to be confused with Java, JavaScript is a primarily client-side scripting language used for front-end development. JavaScript is compatible across all browsers and is used to create interactive web apps, often through libraries such as jQuery and front-end frameworks such as AngularJS, Ember.js, React, and more.
JavaScript can now also be used as a server-side language through the Node.js platform, and while Node.js is relatively new, the community is gaining a lot of momentum. You can also build hybrid mobile apps with JavaScript through using frameworks such as phonegap, while Facebook’s React Native aims to allow you to build native mobile apps with JavaScript.
On a side note, Facebook’s React also supports JSX, a JavaScript syntax extension that would compile as JavaScript.
Ruby
Developed to make developers have fun and be productive at the same time, Ruby was made popular by the Ruby on Rails framework, a full-stack web framework optimized for programming happiness. As Ruby reads like English and Rails has tools that make common development tasks easier “out-of-the-box”, many would recommend learning Ruby as your first programming language.
Ruby is mostly used for backend development, and popular sites such as Airbnb, Shopify, Bloomberg, Hulu, Slideshare, and more have been built with Ruby on Rails.
Python
Python is another highly recommended language for beginners, and is themost popular introductory language at Top U.S. Universities. Developers have used Python to build desktop apps and web apps alike, and it has great tools for data mining. In addition, Python is particularly popular with the academic community for scientific computing, data analysis, and bioinformatics.
Google, Dropbox, Pinterest, Instagram, Reddit, BitTorrent, Civilization IV, and more have been built with Python.
PHP
PHP is a server-side scripting language and is usually considered beginner-friendly because it’s easier to conceptualize what the PHP code will do, so it’s not difficult to pick up. Most websites have been built with PHP because the language is heavily specialized for the web.
Facebook, Wikipedia, Yahoo!, Tumblr, WordPress, and more have been built with PHP.
Statically Typed Languages
Apps built with statically typed languages are known to be more scalable, stable, and maintainable. Static languages are usually more strict with catching errors through type checking, and it takes more code to build a prototype. Game engines, mobile apps, and enterprise-level backends are usually built with statically typed languages.
Java
As a general-purpose language, Java is used to build Android apps, desktop apps, and games. Java is also commonly used as a server-side language for enterprise-level backend development – 90 percent of Fortune 500 companies use Java.
Furthermore, Hadoop is a popular Java-based framework used for storing and processing big data, and is implemented by enterprises such as Yahoo, Facebook, and Amazon Web Services.
C
C is often used to program system software and is the lingua franca of Operating Systems.
C has influenced almost all programming languages we’ll be examining in this article, especially Objective-C and C++. So, if you know C well, you’d probably have less difficulty picking up other popular languages. Since C takes more complex code to perform simple tasks, beginners may find it tough to keep themselves motivated if they choose it as their first language. However, knowledge of C will definitely help you as a programmer.
Objective-C / Swift (for iOS development)
Objective-C is a layer built on the C language, making it static, but it can also be used for dynamic typing. Apple’s Swift is a static language designed to be compatible with Objective-C, but its static-typing makes it more resilient to errors.
Inspired by Python, Swift aims to be easy for coding newbies to pick up. We will mostly be examining Objective-C in this article as Swift is relatively new.
C++
C++ is a powerful language based on C. It is designed for programming systems software, but has also been used to build games/game engines, desktop apps, mobile apps, and web apps. C++ is powerful and fast, so even Facebook has developed several high performance and high reliability components with it.
Many pieces of software have been built with C++, including Adobe Systems, Amazon, Paypal, Chrome, and more. Much like C, C++ is generally considered harder for beginners to learn on their own, so if you decide to learn C++ as your first language, feel free to look for a mentor via Meetups or find a C++ Codementor.
C#
C# (“C Sharp”) is developed to be used for Microsoft’s .NET framework, which runs primarily on Microsoft Windows.
C# is used for web development, game development, and general Microsoft development. Although Microsoft was not known for being cross-platform compatible in the past, Xamarin is also working on an open-source project called Mono, which aims to port C# to other platforms and bring better development tools to Linux developers. Recently you can also use C# to build native mobile apps for iOS and Android through Xamarin.
Other
SQL
SQL (“Sequel”), or Structured Query Language, is a query language used to communicate with databases. Although SQL cannot be used to build apps, it is used to manage the data in apps that use relational database manage systems (RDMS).
Job Opportunities
So, now you know a bit about programming languages and perhaps a bit about their perceived difficulty. However, not all languages have the same demand or salary. If your goal in learning how to program is job opportunity and you aren’t going to be dissuaded by how hard people say a language is going to be, here are some pointers to help you figure out what language you should learn.
Based on the salaries estimations from indeed.com’s analysis of job ads, we can pretty much divide programming languages into 6 tiers:
Based on this result, it appears as though Objective C will rake you in the most money, while Java, Ruby, Python, C++, and C are also decent choices. In addition, if salary is your concern, then it seems as though JavaScript, C#, SQL, and PHP aren’t ideal choices… or are they?
Average salary can be affected by many things such as demand (how many job postings there are), supply (how many developers know the language) and experience (a junior developer would naturally earn less than a senior developer), so it’s a good idea to take a deeper look at these elements before jumping to any conclusions.
Job Trends
How likely are you going to get a job based on the programming language you know? Here’s a quick look at job trends from indeed.com:
We can see from here that Java, JavaScript, and SQL developers are in high demand. JavaScript, in particular, has seen some pretty significant growth in the past few years, as it overtook C# in 2010, and is now going head-to-head with Java.
The job postings for C# developers are still quite high compared to other languages, and demand for other developers appear to cluster together. C++ developers have seen a decline in terms of their relative demand.
However, if your goal is to work at a startup, then perhaps the job trends from indeed.com is not a good indicator. AngelList is pretty much the go-to place for startup job postings, so we’ll take a look at the demand for programming skills based on the software developer ads in AngelList.Again, JavaScript turns out to be the most demanded skill, but startups seem to favor Python and Ruby (on Rails) more than Java, C, C++, or C#.
The Developer Supply Market
Let’s take a look at what mentors on Codementor are skilled at:
Of course, this is by no means an accurate depiction of the actual market, but it should give you a good idea of the situation. As you can see, Objective-C experts are mighty scarce, yet the mobile app business has been booming for some time now. With scarce supply of good Objective-C developers, their compensation would naturally be higher.
PHP, on the other hand, seems to have a healthy amount of supply in the workforce, which means employers would have more choice and thus more bargaining power in terms of salary, but we’ve seen it isn’t as demanded as Java, SQL, or JavaScript. Therefore, PHP developers earn less.
JavaScript is more of a special case. Despite having the most supply, it is not at the bottom of the salary tier, and we’ll take a look at JavaScript later in this article.
Salary Range
Now that you have an idea of what the demand and supply for each language is, let’s take a look at the potential salary you could earn based on salary information from job ads. The data is based on data from gooroo.io, in which salary is usually derived as the average value of the salary range offered by individual job ads.
Here you can see that developers who know Python, Ruby, C++, or Objective C appear to have higher starting salaries, but also more limited salary potential. Python and C++ tend to pay at the higher end of the potential salary range.
Java and JavaScript both have huge differences between the lowest and highest offered salaries. JavaScript, in particular, offers the most potential salary to skilled developers at the moment at about 188,168 USD as of April 2015.
Special Case: JavaScript Frameworks
From the data above, we know that JavaScript developers are in high demand, and they also have the greatest potential salary, so the standard differentiation between JavaScript developers should be quite high. Just merely comparing the JavaScript language against other programming languages is therefore an inaccurate outlook of how much you can earn if you know JavaScript.
As mentioned in the overview of programming languages, JavaScript is a huge category. Many frameworks have been developed to facilitate front-end website development, so if you just know JavaScript and jQuery, you’d probably earn less than other JavaScript developers who know a JavaScript framework.
Let’s take look at the average salary for different JavaScript framework developers in the US (arguably React & Backbone are libraries, not frameworks):
Of course, this is just for you to get an idea, and the indeed.com estimates differ slightly. However, what we can see here is that the salary for developers who know these frameworks average over 102,000 USD. You’d have to know JavaScript to learn these frameworks, which makes JavaScript a rather profitable skill to know.
Let’s also look at the demand for developers of these frameworks:
Node.js is a backend platform, so if just speaking of front-end frameworks, you can see AngularJS is the clear winner with rocketing demand. Thus, if you want to get into front-end JavaScript development, you might want to learn AngularJS.
React, on the other hand, is a fairly new technology, so it’s possibly still in the stage of gaining momentum and may potentially become more widely demanded. The average salary for React developers from indeed.com is 117,000USD.
Programming Resources
If you know a little about the developer world, then you probably know it’s really important and helpful to have support from other developers, especially if you plan to learn on your own.
Being a part of a supportive community will definitely make your future development life easier.
StackOverflow
StackOverflow is the largest developer community used by developers around the world to help and get help from other programmers, so we’ll naturally be examining how large/popular a programming language is as well as how helpful the community for those languages are.
Language Popularity
Based on the tag followers on StackOverflow, we can see the overall popularity of a language right now:
We already know from examining job trends that Java and JavaScript developers are in highest demand, so it’s no surprise they also have the most tag followers. Java, in particular, is still the most used tag in StackOverflow, though JavaScript appears to be on its way to supersede that.
SQL, Ruby, and Objective-C have the least followers. Objective-C is likely to have limited growth in the next few years, since Apple released Swift.
StackOverflow Answer Rate
StackOverflow has an unspoken rule where you have to phrase your question “correctly”, or people won’t bother answering you. With that in mind, let’s take a look at how likely your question would be answered for each language:
Based on the information above, although fewer StackOverflow users follow C, SQL, and C++, over 60% of related questions get answered. Those in the know would probably argue that C and C++ are advanced languages, which means the users asking the questions are likely more experienced with programming and know how to phrase their questions better. SQL, on the other hand, is not used to build things.
What’s worth taking note of is how supportive Python experts are on StackOverflow. Beginners are known to have trouble asking their questions correctly, and as mentioned earlier, Python is often a recommended language for beginners. Yet, despite this and despite being a relatively popular language, Python still has an answer rate of over 60% within 30 days. (Python’s #1 answerer, Martijn Pieters, is also a Codementor.)
On the other hand, PHP, while being quite a widely-followed language, has one of the worst answer rates. This means a lot of people are asking about PHP, but not many are getting their questions answered.
Github
Once you get into development, you’ll eventually learn that it’s best to use an existing solution for your own projects if possible. You’d typically get this from open-sourced projects, and Github is the way to go for these things. Users can star projects they like, and the more stars a project has, the more useful it is likely going to be.
Thus, from examining data from Github, we can also determine the relative ease in developing projects using different types of languages. We can also have an idea of how fast a language is innovating new technologies. Without further ado, here is a simple chart to see the distribution of popular Github projects:
Clearly, JavaScript has the most shiny new tools, even if you don’t consider all the style-guides and tutorials. JavaScript is known for being an extremely fast-moving language with a high churn rate for frameworks and new technologies to the point where developers may find itdifficult to keep up with JavaScript’s constant innovations. In addition, other than the Node.js platform, JavaScript is mostly used for front-end development, so it’s not directly “competing” with other backend languages such as Ruby, Python, Java, and PHP. With that in mind, it is not surprising that JavaScript would have such a large gap between other programming languages.
Ruby and Objective-C, on the other hand, also have a lot of tools and resources for development. Interestingly, we’ve seen in the StackOverflow comparison that both languages aren’t as widely popular as languages such as Java, but developers have generally found the open source projects more useful. This is especially true for Objective-C if you examine the total projects written in each language:
In addition, most open source projects written in C/C++ aren’t for C/C++ development itself—they’re just tools written to help development in general (for example, the most commonly used Python interpreter is CPython, which is written in C). As mentioned earlier in the introduction to programming languages, C/C++ are for developing systems applications, so it makes sense that the open source projects on Github are system apps. Nonetheless, you can learn a lot from open source projects.
Finally, PHP is lagging behind in terms of resources available despite being a widely-used language. As for C#, Microsoft was not known for being open-source.
The Future of Each Programming Language
How relevant will a programming language be in the future? Based on current known trends, we can draw the following conclusions:
JavaScript
JavaScript is, without a doubt, just going to become increasingly popular, especially now that it can be used for backend development and can even potentially build native mobile apps (through React Native). JavaScript continues to get more tools and updates at a fairly fast pace, so you can expect it to remain extremely important in the future to come.
Learn AngularJS 1:1 with a Mentor
Ruby
Startups love Ruby on Rails. Many famous websites such as Airbnb, Twitch, Hulu, etc. are built with Rails, which means they’re going to need Ruby developers. In addition, since developers have fun using Rails and it is fairly easy to pick up, Rails will continue to be popular with coding newbies.
That said, the rise of Node.js will definitely have an impact on the popularity of Ruby on Rails—Node.js has already overtaken Rails on Github. While this isn’t any absolute sign that Node.js will overtake Rails, we should note that a few years back Rails also overtook Python’s biggest web framework Django for backend development, and Rails had more stars than Django.
Moreover, a new trend for “isomorphic” apps will likely affect Rails adoption, as the practice is said to improve web app performance. Isomorphic apps pretty much need to run on the Node.js platform – which is in JavaScript, the same language used front-end. The appeal of only having to be well-versed in only one language (JavaScript) may also shift some potential new blood away from learning Ruby. Google’s Go is also another backend alternative that is getting some attention.
However, since Rails continues to get frequent updates, it will still remain relevant for a while, especially since it has a loyal community with tons of useful tools to help make development easier. Thus, despite a decline in popularity, Ruby will still be sticking around.
Learn Ruby on Rails 1:1 with a Mentor
Python
Python is popular with academic researchers and data scientists, and as mentioned before, many schools choose to introduce beginners to coding through Python. This means Python will continue to grow steadily and remain relevant. Thus, while Python won’t be evolving as fast or seeing the same explosive growth in popularity and demand as JavaScript, it will continue strong—not to mention, Google was built with Python.
Learn Python 1:1 with a Mentor
PHP
The trends for backend development has been shifting away from PHP for some years now, but80% of websites on the web are still built with PHP—it was a language designed for the web, after all.
Nonetheless, if you google what programming language beginners should learn, you’d find that developers generally don’t recommend learning PHP. In fact, many developers apparently hate it.
The PHP community is trying to shake off its bad reputation with new guidelines on how to code PHP the Right Way and with developing new tools, but in general the future of PHP seems rather stagnant as of 2015 (at least in the US).
Java
Android has been a big boost in keeping Java the most popular programming language, and most enterprises also love Java for its relative stability and scalability.
With the rise of Spark (which uses the Scala language) and Cassandra (which supports other languages) as frameworks to manage big data, it’s hard to say how long Hadoop will continue to reign as the most popular for big data management, but given how large enterprises behave when it comes to change, Hadoop won’t be going away. The same can be said of the Java programming language in general.
Thus, Java will continue strong as one of the most relevant programming languages in the next few years.
Objective-C
Since Apple released Swift and Objective-C only works for Apple products, one cannot expect Objective-C to stick around in the future. However, this doesn’t mean you shouldn’t learn Objective-C in 2015, since most open-source projects for iOS development are still written in Objective-C. Generally, using something you don’t understand is not a good idea.
Learn Swift 1:1 with a Mentor
C
C is quite low-level compared to other programming languages, but since it’s the OS lingua franca it will be sticking around, since many development tools are written in C and Linux is also written in C.
SQL
SQL is almost universally understood by database administrators. For a while, SQL seemed to be losing relevance with the rise of NoSQL services such as MongoDB and Redis, with non-SQL using Big Data computing platforms such as Hadoop, Spark, and Cassandra. Many people were howling about how SQL was dying.
Apparently not any more. As a result, even NoSQL had to reposition itself as “Not Only SQL).
With the rise of big data and the difficulty of managing it, SQL is hotter than ever (as you already know from the job trends). Google has also recently updated its BigQuery service so it can now ingest up to 100,000 rows per second per table, and BigQuery uses SQL. Spark also has the Spark SQL Module since version 1.3.
All in all, SQL is relevant again because it’s needed to manage (not store) big data. Thus, not only is SQL everywhere, but it’s safe to say SQL will continue to be relevant for a while now.
C++
Still considered the most powerful in terms of performance and capabilities (even against Rust), C++ will likely continue to be relevant in certain areas such as things that need high performance (e.g. game engines). A major revision of the current standard (C++14) is expected to be released in 2017, so it’s still an evolving language.
In the future, Rust may potentially replace C++ in some areas of systems programming, as Rust aims to be able to produce less-vulnerable software than C++ does. Read more about how Rust compares to other languages here. It is also a good time to learn Rust now.
C#
Being limited to Microsoft platforms and being closed-sourced did not work in C#’s favor in the past, but Mono mostly fixed those issues (though Mono has performance issues, recent updates have improved them).
Developers who’ve worked with C# seem to love the C# programming language, so it has a strong community. Not to mention, C# is the primary language for Unity 3D, a rather popular game engine that could also work on iOS, Linux, etc.
On that note, C# is also more popular for enterprise development in countries other than the US, such as the UK. Obviously Microsoft will keep C# alive for a while and keep it relevant for the .NET platform.
Conclusion
What language should a coding beginner learn? Clearly, if you wish to get into web development, you’d inevitably have to learn JavaScript, whether you like it or not.
Furthermore, if you want to mine websites for data or if you’re interested in being a data scientist, then Python is a good language to learn. If you want to work for an enterprise, then Java is the way to go. If you’re actually not that interested in building things and you’re more interested in job opportunities, then perhaps SQL is a nice place to start out with (especially if you like math).
Altogether, what programming language you should learn in 2015 will ultimately depend on what you want to do.
Want to learn how to code and have someone make sure you’ve understood the material? Learn Udemy’s #1 programming courses 1:1 with a dedicated mentor. Check out our 1-on-1 Mentorship Plans to find out more!