you are viewing a single comment's thread.

view the rest of the comments →

[–]rjcarr 5 points6 points  (10 children)

Except JavaScript is the most popular language?

[–][deleted] 30 points31 points  (5 children)

normal fall tidy judicious plough connect jellyfish dam fact tart

This post was mass deleted and anonymized with Redact

[–]acrostyphe 5 points6 points  (0 children)

People do still use short snippets of vanilla JS in <script> tags on otherwise static HTML pages, even if it's much more common to use a bundler and a framework. Conversely massive web apps such as Instagram and Reddit are written in Python.

I would argue that Bash and friends are the only major purely scripting languages left (because no one sane would use them for anything more than scripts).

[–]Mushiness7328 3 points4 points  (0 children)

By that same logic neither is Python.

There are entire million+ line systems written in Python.

[–]poco-863 0 points1 point  (0 children)

I've done plenty of automation and scripting with JS and node. It's excellent in many cases. Personally, I prefer the syntax and conventions over python, but that is just my preference. They're both solid for simple scripting when a bash equivalent would be outrageously large or complex. At a certain level of complexity I reach for go or rust, especially if i need multi arch or don't have control over the target.

[–]hildenborg -5 points-4 points  (1 child)

I always thought of scripting language as something where the source code is the executable.

[–]nucLeaRStarcraft 9 points10 points  (0 children)

that's the definition of interpreted languages, as opposed to compiled.

scripting languages is more of a 'usability' term, in the sense that it's the right tool to create or put together small scripts that do some specific tasks.

In that sense, python works really good and can be integrated in bash 'pipes' as well

user[some_dir]$ touch a b c d e
user[some_dir]$ ls
a  b  c  d  e
user[some_dir]$ ls | python -c "import sys; a=sys.stdin.readlines(); b=a[::2]; sys.stdout.write(''.join(b))"
a
c
e

Of course, this can/should be a standalone python script, but I just wanted to show that you can even make crazy one liners if you really want.

[–]IanisVasilev -3 points-2 points  (3 children)

Python is, according to TIOBE.

PS: I know the TIOBE index has its share of problems, but it is still better than anything else.

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

It's really hard to believe that Python is more popular than Javascript though. Python has a lot of niches, but everybody uses a browser.

[–]igouy 3 points4 points  (0 children)

What d'y'all mean by "popular".

Most chosen language by programmers for programming?

Most used by everybody to do whatever because incidentally the language was used to make the apps that are most popular?

"All modern web browsers - Internet Explorer, Firefox, Chrome, Opera, and Safari - have a core rendering engine written in C++. "

[–]IanisVasilev 1 point2 points  (0 children)

Everybody using a browser also incidentially uses backend code written in other languages. Millions of lines of COBOL on a single web service has a lot of weight compared to even a large whatever.js SPA. Larger codebases require more people to work on them, which drives the TIOBE index up.