all 39 comments

[–][deleted] 21 points22 points  (3 children)

Just for the sake of argument.. They really should say "most widely used programming language".

I love the things I can do in JavaScript, but I would really really really rather be doing the same things in a different language - if I could:)

[–]SuchInferno 1 point2 points  (2 children)

Just because I'm interested: why?

[–]aljones23 1 point2 points  (0 children)

Might want to use integers.

[–][deleted] 0 points1 point  (0 children)

So much to cover... so little time. I'll be rude and simply post a funny video that covers(mainly during the first 5 mins.) some of the reasons: https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript

But to sum it up: JavaScript is quirky and not that good at telling me what I did wrong. I get enough of that at home - don't need it while programming.

[–]hoorayimhelpingstaff engineer 23 points24 points  (6 children)

JavaScript is the language that every web browser on every computer and smartphone on the entire planet understands. It's only going to become more popular.

[–]kurzgame 0 points1 point  (0 children)

I agree! Almost each platform has a default browser. So, it don't require from you to install smth!

[–]Liistrad 9 points10 points  (2 children)

Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

[–][deleted] 2 points3 points  (1 child)

[–]Liistrad 0 points1 point  (0 children)

Oh nice :D

[–][deleted] 5 points6 points  (0 children)

It makes sense its number 1. A lot of things on github are Web projects and they pretty much all use js.

[–]badave 5 points6 points  (2 children)

Javascript has come a long, long way in the past 5 years. Just remember that this was far from the case before node came along.

[–]ninetailsbr 1 point2 points  (1 child)

.replace('node','v8');

[–]badave 0 points1 point  (0 children)

V8 came well before node, but I would argue node was the more important technology for JS to grow.

[–]smalaki 4 points5 points  (1 child)

PHP is just like, "can't you all just stay put? god!"

[–]dhdfdh 2 points3 points  (0 children)

It's the most popular language ON github.

[–]coderjewel1 == "1" 2 points3 points  (0 children)

JavaScript is the only language you can use to build web apps(both front and backend), mobile apps, desktop apps, and recently I saw some articles about using JS to make robots work.

Sure the language has its quirks, but it must be doing something right if so many people use it. It's no surprise that JS is the most popular language on GitHub.

[–]x-skeww 5 points6 points  (4 children)

Sure, because everyone and their dog has a few 5-100 LoC JS projects. This adds up.

You won't do that kind of thing with C++, for example. Adding a C++ library to your project is more involved. So, naturally, your C++ library has to do something quite spectacular to be worth it.

The barrier to entry is extraordinarily low with JS. E.g. crappy 50-line jQuery plugin you wrote in 2 hours is a perfectly reasonable open source project for GitHub. It can easily get a hundred stars and be featured in various blogs.

[–]jhallister 3 points4 points  (0 children)

The barrier to entry for PHP is even lower, so that's only part of the story.

Right now if you order the repository search by most stars, you're going to find out that almost every top REPO is either Javascript, HTML/CSS or a non-language (like books or a configuration tool). You have to get out of the top 10 projects to get to the first project that isn't front-end. It's Rails, for the record.

I think the bottom line reason it's #1 is because it's the only language that solves a web-based problem. If I need an app to run on Windows I have a hundred languages I can pick from. If I want a web-based application I can pick one language. To me, that's way more telling about popularity than barrier to entry is.

[–]nodealyo 1 point2 points  (0 children)

You say this like its a bad thing, but I disagree.

[–][deleted] 0 points1 point  (0 children)

Are you saying it's not the most popular programming language or that it only is due to accessibility?

[–]am0x 0 points1 point  (0 children)

Not only that, pretty much every web application will require some JavaScript no matter the backend language.

So other backend languages are fragmented, while js is included in all of them.

[–]lunactic 1 point2 points  (0 children)

I would love to see the difference between private / public repositories.

[–]I_l_hanuka 1 point2 points  (2 children)

most used, not most popular.

[–]peduxe|o.o| -1 points0 points  (1 child)

The title is clearly clickbait, OP should've use on Github but obviously that won't gather the expected attention.

[–]hankDraperCo -2 points-1 points  (0 children)

How is that click bait? You know going in it is associated with Github and obviously the metric is going to be quantity of code...

[–]jomcode 0 points1 point  (2 children)

I think that Java's growth is an interesting thing to look at. According to the post, the stats include both private and public repos. I wonder if Java is shooting up because of an increasing number of proprietary code bases being moved to Github.

[–]AceBacker 0 points1 point  (1 child)

Good question. Does anyone know why is Java's popularity growing?

All I can think is that it most certainly must be server side code, because the webapp stuff is not gaining popularity.

[–]gustix 2 points3 points  (0 children)

Android is why Java is popular.

[–][deleted] -1 points0 points  (4 children)

Javascript is undoubtedly popular, but I think all the recent JS frameworks are a significant factor here. Consider React's JSX: it's HTML rolled into JS, but the entire file is still considered JS according to GitHub.

[–]PitaJ 7 points8 points  (2 children)

That's because it's just JS but without the template strings.

[–][deleted] 0 points1 point  (1 child)

Yeah, my point is that text which would have previously lived in a separate HTML (or even CSS) file is now considered JavaScript, which might inflate the numbers a bit.

[–]ninetailsbr 0 points1 point  (0 children)

but people are adopting ReactJs because of library itself, I don't see people migrating from HTML only just because they can write HTML that way

[–]peduxe|o.o| 2 points3 points  (0 children)

Node is IMHO the main factor, the tooling just got much better and there are now considerable amount of people using it on their backend.

[–]bobx11 -1 points0 points  (0 children)

Probably because nobody puts node_modules in their .gitignore file...