DEV Community

[Comment from a deleted post]
Collapse
 
stojakovic99 profile image
Nikola Stojaković • Edited

Where you got the idea that it is the single most dominant language? I'm pretty sure it's C.

As someone who uses JS / TS on daily level, I can assure you that both Java and C# have much more powerful features. Those three are just uncomparable.

Collapse
 
miketalbot profile image
Mike Talbot ⭐

rankings

 
stojakovic99 profile image
Nikola Stojaković

I wouldn't use popularity as a metric for the most dominant language but the prevalence. C runs the whole internet infrastructure.

 
miketalbot profile image
Mike Talbot ⭐

:) Sure I guess C code processes a lot of packets. But the amount of code? Every website? Then every web browser is mostly C++. But again, dominant to me says the language in which most new code is written. If it means something different to you, that's fine.

 
stojakovic99 profile image
Nikola Stojaković

Microcontrollers, cars, compilers, web browsers, desktop applications, drivers, kernels, shells, desktop environments... There is huge number of stuff written in C and C++.

On the front-end the goal is to compress your JS as much as you can so it's quite rare to have huge front-end code bases. On back-end PHP is used much more than JS (more than 80% of the websites). Also, you would have to measure private repositories too, for which we have no information.

Collapse
 
jwp profile image
JWP

How many web sites are there?

 
stojakovic99 profile image
Nikola Stojaković

Read my other comment in the thread. More than 80% of the back-ends are written in PHP. JS on the front-end doesn't take too much (and it would be a disaster if it did because huge number of websites would be slow). Even if you add all websites together I'm pretty sure it wouldn't surpass number of lines written in C across all diferent operating systems, kernels, drivers, embedded code, browsers, desktop environments and bunch of other stuff.

 
jwp profile image
JWP

Python is not 80% where did you get that number. C# has been around for backends for 25 years.a

 
stojakovic99 profile image
Nikola Stojaković • Edited

Where did I say Python? I said PHP. See here (it's around 80%): w3techs.com/technologies/details/p...

C# is not used that much on the back-ends overall.

 
jwp profile image
JWP

My bad, but are you talking front-end or backend php.

 
stojakovic99 profile image
Nikola Stojaković

PHP can't be used on front-end, it's a server side language.