r/javascript • • Apr 25 '19

JavaScript is and remains the queen of programming languages with a community of 11.7M active developers. Python has reached 8.2M active developers and has taken the number two spot, surpassing Java in terms of popularity.

https://www.slashdata.co/free-resources?id=developer-economics-state-of-the-developer-nation-16th-edition&section=showcases_details
613 Upvotes

168 comments sorted by

38

u/clumma Apr 25 '19

Here is the chart of interest.

10

u/dogofpavlov Apr 25 '19

THANK YOU. I don't want to sign up for something just to see the report... or whatever that website wanted

2

u/leixiaotie Apr 26 '19

Glad that C# is still popular near java.

1

u/e111077 Apr 26 '19

Unfortunately, it doesn't seem to be gaining enough to surpass it.

1

u/krsCarrots Apr 26 '19

Thanks friend, that clickbait link was not nice.

82

u/LastOfTheMohawkians Apr 25 '19

Why is python do popular? Genuine question

7

u/takaci Apr 25 '19

easy to learn, duck typing, and easy to speed up slow code by writing it instead in C

18

u/[deleted] Apr 25 '19

Python very simple and easy language with a good design. Lots of bad and old cruft was removed in Python 3. Its also 100% unicode.

Its also fast. Numpy and pals have their cores written on C and highly optimized Fortran.

Python has A class packages on pypi, and theres something for every problem you can think of.

6

u/nahtnam Apr 25 '19

How is it fast? If you look at benchmarks, it's performance matches Ruby more than it does JavaScript

https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/node-python3.html

6

u/soundslogical Apr 25 '19

Agreed, Python itself is pretty slow, and is unlikely to get much faster due to its design, which prevents many optimisations.

But it has excellent FFI capabilities. You can do your hot loops in C and C++, and the rest of the plumbing in the pleasant world of Python.

3

u/mhink Apr 25 '19

Its also fast. Numpy and pals have their cores written on C and highly optimized Fortran.

I mean, that has less to do with Python itself and more to do with the languages embedded into it, yeah? It’s not like C bindings don’t exist in most other languages. (I’ll grant that Python might have better facilities for doing this than other languages, but still)

3

u/[deleted] Apr 25 '19

I ment where speed is essential, python has numpy etc. Thats why it dominates in science and research. Fun fact, python was used to take the first ever picture of a black hole. Compare python to other fields, like webdev speed is usually irrelevant because its 99% waiting on IO.

5

u/Boomer059 Apr 25 '19

As someone who went to art school and transitions in to app development/web design, Python was really easy to pick up.

The most I ever saw about python prior to the job I have now was 'oh it's the thing Blender3d needs to run, whatever'. But after about a day I was able to make a script that helped find where a bug was.

This is in contrast to JS where I'm ramping up in React. React isn't for 'oh I know enough javascript/jquery to be able to be a web designer' level JS. Therefore its a lot.

5

u/evertrooftop Apr 25 '19

Python is also taught in a lot of universities.

A common saying about python is that Python is the second best language for everything.

1

u/Hawxe Apr 27 '19

i feel like js fits that quote way better, it's popularity stems from it being everybodys 'second' language in terms of use.

1

u/evertrooftop Apr 27 '19

I think the idea behind the quote has to do with the types of use-cases python is fulfilling. Some examples: desktop GUI apps, TCP servers, web frameworks, statistics. I'd call Python much more a 'general purpose' language than something like Javacript, although to be fair... with the advent of Node.js and Electron is definitely going in the same direction =)

1

u/Hawxe Apr 27 '19

Yeah that's what I mean, if you want to link something to the web JS is basically the way to go, and with basically everything having to have that requirement nowadays everybody needs to know some JS (until something else comes along).

That was certainly Python before because it was so easy to do lots of different things, you're absolutely right.

1

u/wc3betterthansc2 May 01 '19

Nowadays I only use JavaScript and python. Python if I want to do read/write or web scrapping. JavaScript (Front End) for everything else.

4

u/am0x Apr 25 '19

Preinstalled on a lot of machines, it’s what they are teaching at school, and low barrier of entry.

1

u/ForScale Apr 25 '19

Accurate.

1

u/LastOfTheMohawkians Apr 25 '19

Yes this is my hunch... That because it comes with Linux it's popular

2

u/GNUandLinuxBot Apr 25 '19

I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.

3

u/WebDevLikeNoOther Apr 25 '19

I didn’t learn python until later a few months ago, but I’ve been programming professionally for about 5 years now. Honestly,

Python is really useful for when you want to quickly test something out. If I want to try something silly, it’s a hell of a lot easier to pull up a python shell, and write what I want and run it, than it is to setup any other project that requires structuring, type handling, etc...

Also, it’s the leading language chose for Web Scraping, Botting, and is really useful for DAta Analysis. Sure it may not be as fast as some others, but once you get over the syntax being a little different than some others (indents vs brackets), it’s really fun to write in.

1

u/Razvedka Apr 25 '19

I think Node will begin to eat it's lunch there. Web scraping with Puppeteer and MongoDB is awesome.

0

u/[deleted] Apr 26 '19

[deleted]

1

u/Razvedka Apr 26 '19

I'm a bit confused. I mean JS is all JIT (atleast V8 in this context) so you mean it just takes awhile to run?

6

u/s3govesus Apr 25 '19

It's expressive and generally considered one of the easier languages to learn. It's more concise and often requires less code written to perform the same tasks as something in languages like Java or C++. Its performance is horrible, as it's one of the slowest performing languages, but it's flexible and has a wide range of potential applications, and performance can often be overlooked by simply throwing more hardware at it, but performance is also often not considered a priority to begin with. That all being said, I haven't used python much, as I've always been able to accomplish the same goals using JavaScript and Node.js, which I'm more familiar with and which also tends to be a bit more performant of a solution.

10

u/editor_of_the_beast Apr 25 '19

Python is one of the faster interpreted languages. To call its performance “horrible” doesn’t make much sense, as Python performs the same as many JS implementations. If you’re talking about v8, then yea. v8 is amazing and gets the most performance possible out of JS. But JS is still orders of magnitude slower than compiled, statically typed languages. And it’s not orders of magnitude faster than CPython.

5

u/yen223 Apr 25 '19

It's not just raw performance where Python trails other language implementations. Python also lacks a good concurrency story, which arguably is a worse problem in this day and age.

Things are getting better with AsyncIO and friends, but it's nowhere near as mature as what other languages have.

3

u/editor_of_the_beast Apr 25 '19

And how is Javascript’s concurrency story?

6

u/yen223 Apr 25 '19

Between having non-blocking IO, and having decent abstractions for futures in the form of promises (and more recently async-await), it's actually not too shabby.

The single-threaded event-loop model is rather similar to what asyncio implements by default.

1

u/Hawxe Apr 27 '19

Honestly in any place you'd use JS for a solution that requires concurrency you're better off using Elixir. Not every language has to be good at everything (in fact, very few if any are).

2

u/Razvedka Apr 25 '19

Uh no. It's not orders of magnitude slower than other compiled languages lmao. Node JS will bloody many such languages in a fight. I'm not saying it will win but it goes down punching.

-2

u/editor_of_the_beast Apr 25 '19

How’s 2nd grade going?

2

u/Razvedka Apr 25 '19

How's not being in touch with Node.js performance going?

2

u/getnamo Apr 25 '19

It's not 'orders' of magnitude slower. Modern js vms re-optimize based on usage and get sometimes within ~2x of C++; it typically sits between 3-10x depending on cpu hot loop. Python is generally decent, but has a few cases where it is even 31x slower than node.js on same problem (~100x c++). See https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/node-gpp.html.

1

u/brennon80 Apr 25 '19

To be fair, it's pretty damn powerful without combining it with R...

1

u/flagbearer223 Apr 26 '19

It's easy to read and quick to write scripts/basic automation in. I use it to tie together different tools and APIs all the time

1

u/SpaceHub Apr 26 '19

It's package manager and repository is not npm.

1

u/mikelax_ Apr 26 '19

Python is the language of choice for all data scientists. That for sure is driving the rise in popularity, in addition to people still using it for actual web development.

1

u/Innogator Apr 26 '19

"Python is the second best language for everything"

1

u/[deleted] Apr 26 '19

Go to language for ML

1

u/a-corsican-pimp Apr 26 '19

Data science is blowing up

1

u/JB-from-ATL Apr 25 '19

I think a bug part of it is that a lot of schools teach it so there is a lot of material on it.

0

u/ForScale Apr 25 '19

It's beginner friendly.

0

u/[deleted] Apr 25 '19

[deleted]

24

u/Doctor_Spicy Apr 25 '19

One thing I don't like about python is the syntax.

22

u/sivadneb Apr 25 '19

I hated Python when I first started it, my reason also being the syntax. Now, 7 years later, it's my go-to language for most projects. The syntax is comfortable, easy to read, and easy to write. Most aspects of Python are carefully designed with the developer in mind.

People that dislike Python "because syntax" haven't likely done a full project in it. Give it a chance and it might win you over.

2

u/crazyarai Apr 25 '19

Used it for a project never grew to love it, but I don't hate it either, except for list, I hate list.

10

u/sivadneb Apr 25 '19

What do you hate about list?

1

u/StorKirken Apr 26 '19

What was your issue with the syntax? Indentation as control blocks?

1

u/MajorasShoe Apr 25 '19

Same. I'm interested in trying bython for that very reason.

0

u/TrontRaznik Apr 25 '19

With you. Fucking hate the syntax

1

u/AppledogHu May 21 '19

Using variations in whitespace for syntax and flow control is extremely bad..

-8

u/lost_file Apr 25 '19 edited Apr 25 '19

I love Python and its whitespace!

9

u/lhorie Apr 25 '19

Whitespaces are a really dated argument these days. Just use editorconfig if your editor isn't smart enough about python conventions

4

u/lost_file Apr 25 '19

Yet I still see it happen. It's not an argument, it's literally my experience seeing people use it.

I acknowledge for a lot of people, they love this aspect of Python.

2

u/kihashi Apr 25 '19

So many times I've seen people and myself bitten by incorrect whitespace, and confuse beginners.

I found it super easy because the required formatting was how I was going to do it anyway (coming from Java and C). But if you are used to a slightly different convention, I can see why you'd dislike it.

3

u/sivadneb Apr 25 '19

I've taught 5th graders Pyhton and they rarely struggle with whitespace.

1

u/lost_file Apr 25 '19

I'm just giving my experience. It appears my experience is very isolated.

Note, that I'm not saying "don't use Python for X reason", I'm just saying why I don't particularly like it. The whitespace is not the only thing.

0

u/evertrooftop Apr 25 '19

I think part of why you are being downvoted is because it's a bit of a tired / uninteresting opinion. There's plenty of people out there that hold that opinion, but nobody cares.

3

u/lost_file Apr 25 '19

Yeah, in retrospect, I guess I did just make noise :D Whoops!

Edit: Edited the post for maximum confusion B)

0

u/[deleted] Apr 25 '19

[deleted]

22

u/[deleted] Apr 25 '19

What are you working on that needs to last 10 years? Genuinely curious. I’m working at a company that’s about 10 years old, and any code we have that is that old is considered technical debt at this point.

13

u/reallyserious Apr 25 '19

I've worked on a 15 year old code base. It will continue to run at least 5 more years. Probably longer but I can't tell what happens that long in the future. It's a system for a large retail company you've heard of.

Web dev often has very short life cycles. But in a lot of other areas code is expected to just keep working like it always has. There will be new requirements as business change and new laws come into action. So you update those areas that gets affected. But there is no need to rewrite the other 99% of the system. It should just work as before.

11

u/[deleted] Apr 25 '19

Banks, Insurances and Governments got alot of stuff that is way over 10 Years old. I got a good friend who works for a big insurance company and works mostly with ancient COBOL code.

Never touch a running system i guess?

4

u/RailingRailRoad Apr 25 '19

Nearly every bank in Germany works with cobol

3

u/[deleted] Apr 25 '19

Lol, I worked in a procurement system that was already legacy when I joined and did maintenance and added features for at least another 5 years before it was replaced.

It's better to write stuff to last, you never know.

2

u/sonny1022 Apr 25 '19

I believe he was giving an example 🤷🏼‍♂️

5

u/[deleted] Apr 25 '19

Obviously. The exact number is irrelevant. Fine, what about 8 years? 7?

1

u/crobison Apr 25 '19

But you still have the code and need it to work despite considering it tech debt, therefore you need it to last that long.

Edit: Just saw what you replied to. The other comment seems odd. It’s not like python changes so much that stuff a few years old will just break.

1

u/TheIncorrigible1 Apr 26 '19

cough async/await

1

u/[deleted] Apr 25 '19

I work for a company that's still got some legacy code from nearly 8 years ago. We're a small team and there's got to be close to a million lines of code. I'm not planning on re-writing it anytime soon

0

u/lukasbuenger Apr 25 '19

I'm kind of glad you're not my boss.

4

u/jon0tr0n Apr 25 '19

Python 2 is EOL at the end of 2019. Going forward there won’t be the version compatibility schisms. So that will be one less negative for python.

14

u/Airith Apr 25 '19

Saying JS will work 10 years down the line is absurd.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features

https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/JavaScript#Cross-browser_JavaScript_problems

Between browsers changing or straight up dying (plus the above links) using JS as an example of a language that doesn't change is terrible.

All languages grow and change. The 2/3 change was completely necessary.

27

u/stringman5 Apr 25 '19

JS changes, but the changes are always backwards-compatible. New JavaScript doesn't always run on older browsers/Node environments, but old JS code will always run on future browsers. So it's not absurd at all to say that current (standards-compliant) JS will work 10 years down the line - it's part of TC39's mandate to ensure that this is so. This is why smooshgate happened.

4

u/Razvedka Apr 25 '19

JS is backwards compatible to a degree which is actually beginning to cause friction within the development community. I've heard some calls to begin 'modernizing' the language with all code stuffed in ES modules by way of example.

4

u/lukasbuenger Apr 25 '19 edited Apr 25 '19

That's just utter bullshit. Just take the module system »schism« as you call it. Runtimes doing their own thing because they can, all over the place. None of those fools was giving a flying fuck about specs for decades really. Node 12 got released this week and all you get is mjs without a flag. Come on now.

Also without babel which is a) a completely TC39-independent effort (thats The Language, as opposed to Node, which is a fucking opinionated runtime environment) and b) does actual fucking transpiling a language from a version of itself to another version of itself, the faster pace that implementors actually were able to pull off recently, would have never been possible.

And I'm not even talking about the fact that 99% of the JS ecosystem is hosted (some would say owned) by a private corp. Or the node/io bullcrap that went down couple of years ago.

If you wanted, you were perfectly able to ship python code that was compatible with 2 and 3 (six), but I bet you've never heard of that, because you spent your last couple of years setting up backwards-compatible webpack setups to get the latest hottest »language«. Transpiling is the JS word for backwards compatibility.

I really do love JS, the language and the madness that comes with it, but shitting on Python for what it is and how it manages transition is really not appropriate, especially coming from a JS perspective.

There will come a time, when Javascript has to deprecate stupid shit, just because it doesn't make sense anymore (e.g. the UTF-8 issue with strings in Python). And with it being the queen as it seems, that's not going to get any easier.

Edit: A lot of unnecessary swearing here, I'm sorry. Just read this again with a Samuel L. Jackson voice in mind.

1

u/KronktheKronk Apr 26 '19

JS holds itself back a lot for maintaining that backwards compatibility. Python decided it needed to make a change big enough to break that, but I think every expects it to only be one-time thing.

And it's easy enough. If you're writing python now, write python 3. If you're supporting legacy python, only update when the people who make decisions are convinced to invest in the effort.

1

u/norb_omg Apr 26 '19

If your code is python 2, stick with python 2 then.

The latest update for python 2 is from 02 March 2019, so still maintained id say.

-15

u/editor_of_the_beast Apr 25 '19

Wait are you being serious? Do you write Javascript without a transpiler? Almost certainly not right?

0

u/[deleted] Apr 25 '19

[deleted]

1

u/editor_of_the_beast Apr 25 '19

Old code runs fine. You’re definitely right there. But to say there’s not a schism in the JS community is not accurate. If you want to take advantage of new features you have to add a build system on top of what you were already doing, so theres most certainly a cost to it.

14

u/dotpan Apr 25 '19

I think Python and JS have done a great job at similar things. They've been robust tools strongly supported and expanded by a passionate community for a wide range of applications (JS this sub already knows, but Python has grown into almost every avenue, including the growth of things like CircuitPython). Beyond this both have a rather active community at getting people started using each, which means a lot of first time programmers are learning these languages and running with them.

4

u/SpaceHub Apr 26 '19

I agree, the only thing that really stood different is how the package management on the javascript side has been a disaster.

4

u/dotpan Apr 26 '19

I think that it just kinds of boils down to the environment provided. When you allow people to play fast and loose with a language/framework it allows a lot of creativity but it also allows for a lot of bad practices.

1

u/SpaceHub Apr 26 '19

It’s very easy to set up a python package, I personally maintains a pip package that barely anybody use. The question really lies in the dependency hell. JavaScript packages just can’t seem to be standalone, whether that’s by choice or design, or lack of decent standard library. It is plaguing the ecosystem

1

u/[deleted] Apr 26 '19

I think package selection is kind of a tradeoff, like real life.

Try to take the fast and cheap way to your goal, you'll be bombarded with bad surprises and probably fail.

Take your time with your options, and you probably get there, albeit slowly and painfully.

Gather a group of people, use some good known tools, and make most of it as a team, you'll get farther than you thought with the fewest headaches.

1

u/e111077 Apr 26 '19

It doesn't help that people almost immediately ignore or dismiss any new package manager / registry that is not NPM. See: yarn, bower, pikapkg

The network effect is strong and now everyone relies on a single entity which is a single point of failure for a lot of the web which is almost unprecedented. Even Cloud / hosting has options.

Though, I'll still throw my hat in for Pikapkg or Deno's decentralized package philosophy.

1

u/[deleted] Apr 26 '19

Bower is older than npm

1

u/e111077 Apr 26 '19

True, I should have said any other

1

u/[deleted] Apr 26 '19

The point is that people dropped Bower for npm

30

u/CrucibleOfLogic Apr 25 '19 edited Apr 25 '19

I switched from Python to Node for all development work that doesn't require raw speed (I use Rust for those problems). There are many reasons for this, but it boils down to these points:

  1. A much more coherent project management structure. Long before Guido stepped down, I had serious issues with how the 2/3 schism was handled. I easily moved my codebases to Python 3 and had no problem with the changes to the base language. However, the fact that I had to worry about it at all made me concerned. I watched as the Perl community dissolved when Perl tried the same thing. I was worried that Python would go down the same route. While that didn't happen, the fact that it's a decade or so later and we're STILL discussing the 2/3 schism shows the epic fail of breaking a language in widespread use. The current management of JavaScript has made guarantees that the language will support all code written in the past (even if that code contains deprecated features).

  2. And here's where I'll get into arguments with people (though I won't argue on this thread)... While both languages are basically "single threaded", JavaScript's async/await semantics are much more mature and performant that Python's methods. Also, worker threads in Node have just dropped their experimental flag, but have been usable for quite some time. Python has never, and I feel WILL never, have proper threading support due to the management's insane dedication to the global interpreter lock.

  3. Node is faster. Hands down. Faster in every way that matters to me. And with each release it gets faster still. There might be some edge cases for math-based libraries where Python might have an advantage, but I can get the same advantage in Node with the "ffi" interface if I ever need raw calculation performance. But as a database/front-end developer, I doubt that case will ever occur. (And if it did, I'd use "ffi"/Rust to solve it.)

  4. This is a small thing, and a personal thing (thus NOT objective)... I hate, hate, hate, hate, HATE Python decorators. I hate their syntax. I hate their use cases. I hate the people who put them into Python (yes, Guido, you too). I've found no instance where they helped me code more efficiently, and because I had to deal with them in seemingly EVERY SINGLE LIBRARY published for Python 3, I found myself grinding my teeth to the nub every time I coded in Python and had to use one of these libraries. Whomever thought of decorators should have half his life removed, because I feel like I spent my life dealing with this abortion of a concept. (Yes, I'm rant-y, but DAMN I hate decorators.) JavaScript's closures are 1000X more intuitive and useful.

I programmed nearly exclusively in Python since 1995. I switched to Node in August of 2018 (when JavaScript with ES6 finally became useful in general-purpose coding). For all those years, Python (warts, decorators, global interpreter lock and all...) was the best programming language I found. Now Node has that distinction.

To be clear, though I coded exclusively in Python, my college education (had a long career in coding before formalizing my credentials with a degree) was on the .NET stack, and I thought C# was pretty damned good. Before 1995, I was exclusively a C/C++ coder. Before that, Pascal... I've had a long career...

Other languages I've tried and discarded:

Perl - Uggh... special characters everywhere and completely unmaintainable code.

Ruby - A more maintainable Perl with proper Object Oriented ideas. But still a dumpster fire of "special characters".

PHP - More than one large-scale professional projects were done in PHP. If Python and Node didn't exist, I'd choose PHP. But only MODERN PHP 7.x+

Java - Whomever invented this language should burn in hell. It is simply the worst modern programming language ever designed. I honestly think it was designed by a sadist. The boilerplate you have to code to get ANYTHING running is beyond unimaginable. It's proof-positive that pure Object Oriented programming was never the way of the future. For years I wanted to do Android development. The fact that I'd have to do it in Java made me ragequit every time. Kotlin ain't much better.

Assembly Language - Motorola 6502/680x Assembly was a dream. 6502/680x went away. AMD64/Intel instruction set and memory management drove me mad. Stopped coding in Assembly Language in the early 1990s because C (and Pascal) could do everything I needed it to do, and it abstracted away any need to dive into the Lovecraftian Intel/AMD64 instruction set/memory management.

COBOL - If Java is bad... COBOL is the Adolf Hitler of languages. Anyone associated with designing this language should be neutered so they don't breed.

Edit--- Go - Everything bad about Java combined with everything bad about Perl. Though I never programmed anything significant in this language, I also never drove spikes through my testicles. In both cases, I think I avoided an uncomfortable situation.

13

u/LastOfTheMohawkians Apr 25 '19

I've found my spirit brother

4

u/undefinedNANString Apr 26 '19

Java - Whomever invented this language should burn in hell. It is simply the worst modern programming language ever designed. I honestly think it was designed by a sadist.

That's not fair, Objective C ...

2

u/CrucibleOfLogic Apr 26 '19

I was only speaking of languages that I have direct knowledge of. ie, languages that I've at least done some toy programs with. I've never done anything with Objective C (due to the fact that I try to avoid anything Apple-related). So I'll just take your word for it...

3

u/ElCthuluIncognito Apr 26 '19 edited Apr 26 '19

This is probably just me projecting my own biases, but it really sounds like what you like is functional languages/programming. They tend to remain consistent and have good user stories like you described because the language is the root of the power, not the compiler writers (a very sharp double edged sword, admittedly). Notably, language smells like decorators and annotations are nowhere to be found in my experience, for the aforementioned property of functional languages. (while python supports functional programming a lot of programmers come into it from OO, and stick with it mightily)

My running theory is really that python is as popular as it is because its first class functions give people a taste of functional programming. Many libraries like numpy derive their power from higher order functions.

JS really is the only mainstream language that seems to have organically nurtured people to code in functional ways. (In hindsight its probably because its creator actually wanted to create a Scheme interpreter for Netscape instead of JS, and subtly did so anyway).

If you ever get a chance, try out a Scheme (Racket is solid) or my own personal favorite Haskell. I think Haskell addresses all your concerns except the ecosystem, which I understand is a must. Yes, even speed

3

u/CrucibleOfLogic Apr 26 '19

I cut my teeth on Atari Basic in the early 80's. I moved on to 6502 Assembly due to my desire to create games. Then, for a job I lucked into (and was not qualified for), I did some mainframe programming in Pascal (which was popular in the late-80's). Then I moved to C as the "Object Oriented Revolution" was just getting into its stride. The very DNA of my coding preferences is functional programming-like (from my "C" days), and the reason I have great affinity for Rust is due to it being the spiritual successor to Pascal (though the syntaxes of both are VASTLY different, the goals of both are identical).

I had my "college-like experimentation" phase where I did all my coding in the OO style. And I still think that OO has its place. I even use ES6 "class"-es in preference to the long-in-the-tooth prototype method of old JavaScript. But, approaching my middle-years and knowing all to well the lesson of, "If all you have is a hammer, everything looks like a nail", I've grown into a "right tool for the right job" of picking and choosing where I code in functional style and where I use OO... often in the same software.

Python and JavaScript both allow for that flexibility of using different coding techniques within the same code base. I hate Java so much because it forced me to only code ONE way regardless of the problem I was trying to solve. This often led to huge code bloat and torturous internal code logic.

Before I tried out Scheme or Haskell, I'd probably want to learn LISP. But realistically, for my professional work, I must stick to learning those languages and dialects that will improve my chances of employment. Considering the statistics on this thread, it looks like I chose well when I chose to go first down a Python path, then a JavaScript path.

2

u/ElCthuluIncognito Apr 26 '19

That's refreshing to hear. I'm used to discussing with web devs who've never touched Assembly. Something about it just can't be taught in any other language.

To humor the conversation, Rusts type system is directly influenced (if not directly predecessed) by the Hindley-Milner type system, which is the big draw of Haskells power. Going further the first real implementation of object oriented programming by Alan Kay was in lisp. The language (and paradigm) was so powerful an entirely new paradigm emerged from within it. He had no need to write a compiler to begin meaningfully prototyping what would become the de-facto standard for OO, Smalltalk.

Of course, you've mentioned you're already very comfortable with functional programming, so if you're ever in the mood to try out a meaningfully different languages, try out Haskell as opposed to a Lisp. It's got strong purity, a state of the art type system (countless PhDs have and will continue to be thrown at it), lazy evaluation that rewards rather punishes true functional programming, and an ecosystem that lives and breathes functional programming (few Frankenstein hybrids of OO and FP to be found, a rumored problem in the Scala community). It's like a foreign immersion program for pure functional programming.

Oh and yeah, Java is hot garbage. To be fair, it was never expressly designed to be a good language. (seriously, the first requirements were basically everything except 'make it a good language to code in')

1

u/Hawxe Apr 27 '19

Honestly based on what you've mentioned in this and the above post, you should give Elixir a shot. Everything you've said seems to point towards you loving that.

1

u/[deleted] Apr 26 '19

Agree about Java. Not about Go.

0

u/[deleted] Apr 25 '19 edited Apr 25 '19

[removed] — view removed comment

2

u/AutoModerator Apr 25 '19

Hi /u/locksta7, this comment was removed because you used a URL shortener.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/[deleted] Apr 25 '19

So what is the king

1

u/[deleted] Apr 26 '19

C is the best programming language

1

u/[deleted] Apr 26 '19

Verilog

1

u/[deleted] May 17 '19

It's Clojure actually ;)

34

u/tightywhitey Apr 25 '19

Java can go die in a fire

0

u/[deleted] May 04 '19

[deleted]

1

u/tightywhitey May 04 '19

Mostly because it's very object oriented, which I don't really care for. I haven't written in Java myself, but worked on a project with it and, at least the code I had to read, was very un-fun. Perhaps there's options/extensions to write it in a more functional way that I'm unaware of?

3

u/devilmaydance Apr 25 '19

I use StackShare frequently to keep up with trends. It currently labels Python as the language with most active job postings. Is this accurate? (For example, I feel like they way underrepresent the amount of C# postings.) Is there a more accurate tool that measures job postings for any given language (as opposed to using, say, Github to measure a language’s popularity)

4

u/cinema-tech-on-call Apr 25 '19

Buddy of mine (who hates JavaScript) was trying to convince me that C# was going to take over everything. It was hard not to laugh.

2

u/PickledPokute Apr 26 '19

I liked C# enough, but eventually I ended up relying on peeking at the runtime type information. Additionally, when writing the umpteenth Tuple<Foobar<Blah, Kalaa<Blah>>, Xyzzy<Blah>> I finally said "Duck it!".

3

u/[deleted] Apr 26 '19

I too hate JavaScript and love C#. Someone saying any language will take over is hopefully hyperbolic. That said, JavaScript is all over the damn place now. C# is definitely growing, and the language is being actively improved. Unity, Xamarin, and .Net Core are greatly increasing its footprint. Also, we had async/await back in 2012

2

u/Bandude Apr 26 '19

Finally someone who agrees with me.

2

u/[deleted] Apr 26 '19

survey of 19,000+ developers

yup, definitely JS is the queen

2

u/wc3betterthansc2 May 01 '19

JavaScript is mandatory for front end developing and web apps are more popular than ever because of mobile. It's not a shock it's currently the most popular language.

3

u/real_kerim Apr 25 '19 edited Apr 25 '19

I got a possibly controversial question: Why would anybody pick Python over Node? I don't mean pip over npm or anything like that. I mean the actual interpreter/JIT implementations of (C)Python and Node(V8).

As far as I can tell, CPython is just painfully slow compared to V8. I know you can hook into C libs but you can do that with Node, as well.

6

u/darksparkone Apr 25 '19

Development often has nothing to do with performance. Do you want to spend 2 more month for a bit faster product or pay $10 more on servers and get dividends faster? In US it’s not a question,and if performance is critical it wouldn’t be js anyway - more likely cpp or golang.

0

u/[deleted] Apr 25 '19

[deleted]

1

u/darksparkone Apr 25 '19

Hey, no hard feelings. It’s the matter of preference and personal knowledge of the tooling, I’m sure there are guys who may pull products really fast in any language. I haven’t even use python for rapid prototyping on real world tasks, my choice is ruby and it feels several times faster than anything to bootstrap things, and then support them.

As for js I would consider debugging as the main disadvantage but with TS and async/await it should have become much more nice to deal with.

1

u/matjam Apr 26 '19

honestly I think with languages like python and golang, the time spent isn't actually writing code; it's reasoning about what you want to do. Writing the code isn't the time consuming part.

1

u/real_kerim Apr 25 '19

Hey, no hard feelings.

I don't have any. I genuinely wanted to know, since it was a fairly bold statement.

2

u/darksparkone Apr 25 '19

It really depends on your standpoint. If it’s genuine curiosity, the best you can do is to check your own productivity with two tools after you reseArched both well enough. Writing, debugging, deployment, ability to read and understand your code after a week, writing DB migrations, using RBAC and other basic tasks.

If you want a more theoretical answer, js still has a bunch of drawbacks on server side land: readability, tooling (gets much better later on), for me - lack of consolidation so you’ll have tens of half-backend libs with rather poor documentation instead of a couple polished ones. And you are probably still limited in orm’s for DBs when it’s not a Mongo.

If you come with “all hail js”, the only argument one may know it and not any other suitable language is already enough. When js is the tool you know the best and you have to dish a product here and now - there is exactly no reason to learn other languages.

2

u/theDarkAngle Apr 25 '19

well you can also compile python for better performance, right?

1

u/real_kerim Apr 25 '19

I think you can compile it to executable binaries but does it improve the performance?

6

u/status_quo69 Apr 25 '19

No because python isn't truly compile-able, those executables are basically just zip files. I mean, there's pyc files but those are only for parsing optimizations rather than runtime. But I'd pick python over node for a backend app for a few reasons, most of which is strong (not strict) typing which can help with a lot of api requests that can send you absolute garbage data. Plus, node might be fast because of v8, but nothing is going to be as slow as the network calls so it's not super relevant to bring in cpu performance in my experience. Ram usage is a much better indicator of things imo, but that usually depends on how you write your application anyways.

1

u/real_kerim Apr 25 '19

Plus, node might be fast because of v8, but nothing is going to be as slow as the network calls so it's not super relevant to bring in cpu performance in my experience.

Good point.

1

u/kteague Apr 25 '19

Libraries. Python integrates well with libraries implemented in system level languages (C/Fortran) so using libs like SciPy and NumPy are going to give you performance far greater than a kicking fast node.js interpreter. It also has certain well-designed, mature libraries that JavaScript may not have the equivalent of, having had the advantage of its library ecosystem existing over JavaScrpits. SQLAlchemy (ORM) or Pyramid (Web framework) don't have equivalents in JS AFAIK.

1

u/real_kerim Apr 25 '19

Libraries. Python integrates well with libraries implemented in system level languages

Node.js has those too. They're called native modules.

QLAlchemy (ORM) or Pyramid (Web framework) don't have equivalents in JS

What? I don't know the intricacies of QLAlchemy and Pyramid but there are plenty ORM's and web frameworks for Node. Koa, Express, Loopback, Sequelize, Mongoose, and more.

1

u/lexasp Apr 26 '19

Curious question based on the title.

What’s the king of programming language then?

1

u/nascenia Apr 26 '19

Vue.js was one of the most popular JavaScript libraries in 2018. Moreover, it's the main competitor to React for the popularity among web developers.

1

u/lechatsportif Apr 25 '19

Most people eat at McDs?

1

u/godless_communism Apr 26 '19

Honest question wrapped in triggering verbiage: how soon can we expect JavaScript to FOAD after Web Assembly is fully working?

3

u/PickledPokute Apr 26 '19 edited Apr 26 '19

I expect never. I find JavaScript as a language have a rich feature set which is rarely matched and have been part of the language since it's first versions. functions as first-class citizens, closures, prototype-based composition etc.

The fact that a ton of new javascript features could be seamlessly polyfilled for older runtimes during runtime is quite exceptional. Javascript is in the forefront in capabilities within the domains it occupies as a programming language.

There are a lot of features and capabilities missing in javascript when considering non-javascript domains like stronger typing, functional programming, and system programming. Extending to those domains be a tradeoff of distancing Javascript from other domains it currently excels at. The language has had new features added to it with keeping backwards compatibility which has hastened the adoption.

Javascript tooling ecosystem is rather unique, it's extremely fast-acting and has given birth to transpilers and compilers. Unlike many other languages, obsolete features and patterns are discouraged by the use of linters instead of removal from the language. These have allowed the JS ecosystem to grow both wide and tall. TypeScript and Svelte are examples of compilers that extend the javascript language to new domains. Critically they do it by extension, not by hiding and relegating the underlying programming language to a dark dungeon underneath as a second-class citizen while keeping it out of sight of the developers.

Examples of "improving" javascript by shrouding it under another language are CoffeeScript and Dart. Those reached some success, but there's no way they could be embraced by javascript ecosystem - they weren't javascript. Considering the hurdles, it's quite hard to see a new language grow a similar ecosystem.

1

u/DoYouHearThat Apr 26 '19

x86 Assembly

-15

u/vicodinchik Apr 25 '19

King*

8

u/aM3z Apr 25 '19

I'm obviously the only chess player here.

4

u/Firfi Apr 25 '19

PHP is the king

-4

u/jeremy1015 Apr 25 '19

He says about the results of a report in which two of the six sectors surveyed were about gender discrimination in tech.

-4

u/vicodinchik Apr 25 '19

So language is “she” now?

1

u/ForScale Apr 25 '19

Ship it!

0

u/[deleted] Apr 25 '19

[removed] — view removed comment

2

u/esr360 Apr 25 '19

Why is it either?

4

u/vicodinchik Apr 25 '19

Well, you won’t believe but in some languages noun “language” is masculine. In English it should be “it”, not “she”. But I am not a native English speaker, always thought that in such cases King is being used, not Queen 🤔

-2

u/rinko001 Apr 25 '19

King used with neuter objects in english implies "dominant" or "leading"

Queen is usually used to imply "troublesome" or "problematic".

For example: "Toyota is king of the car market, while Jaguars tend to be garage queens." "My daughter wont eat anything but cheese pizza, she is such a princess"

So maybe is is their underhanded way to attack JS...? More likely its just SJW nonsense.

4

u/Raze321 Apr 25 '19

Queen is usually used to imply "troublesome" or "problematic".

That's interesting, I've never heard this, or your example. Princess makes sense, for someone pouty and snobbish, but I've never heard Queen used in such a way.

Not to say that you're lying, I believe you, I just find that interesting.

5

u/Reashu Apr 25 '19

Drama queen vs king of the hill. But idk if it would actually stand up to scrutiny or if this is just an example of availability bias.

0

u/Raze321 Apr 25 '19

Drama queen

Good point, I totally forgot this saying existed. Haven't heard it in years haha, kind of feels like it died out in the 2000's

3

u/vicodinchik Apr 25 '19

This sjw stuff sometimes ridiculous and it’s actions lead to opposite results than equality IMO.

1

u/LetterBoxSnatch Apr 25 '19

That is very interesting to hear! I understand the connotations you use as examples here. In my locality however, "Queen" is usually used to imply "impetuous top of the social pecking order" while "King" is usually used to imply "disconnected/out-of-touch dictator." Both are commonly used, and both are generally negative, but the negative connotations with "Queen" are less than the negative connotations with "King."

"The Queen is dead! Long live the Queen." vs "The King is in his castle, again."

"Prince" and "Princess" seem to be on fairly equal footing, though, and both can be used to suggested parental adoration and/or snottiness.

2

u/rinko001 Apr 25 '19

"Prince" and "Princess" seem to be on fairly equal footing, though, and both can be used to suggested parental adoration and/or snottiness.

In most examples I can find, "prince" is used mainly to connote "selfless" and/or "diligent".

The language is somewhat asymmetric, at least in these gendered royalty terms in how they are used idiomatically.

0

u/[deleted] Apr 25 '19

[deleted]

2

u/rinko001 Apr 25 '19

Lol you literally argued in favor of social justice

How is that? I think you must be confused. I'm simply stating how the language works...

"Social Justice" is obviously nonsense as it is commonly used. Equality is the only real justice, not new forms of inequality.

0

u/[deleted] Apr 25 '19

[deleted]

1

u/rinko001 Apr 26 '19

The whole idea about social justice is correcting systemically entrenched biases and prejudices.

Isnt that presumptuous? What if the language biases are there for a reason? Its possible that boys have more fragile egos or something. Equality in language is allowing others to speak as they see fit. Forcing people to speak in a way you like is a bad thing. For example: firing people for "misgendering"

You even agreed with it under a different name...equality.

I'm my experience, social justice is the opposite of "equality". Its more like enforced bias. Introduction of biases using coercive force is not equality, its the opposite of that. For example: lowering physical standards for female firefighters, and docking SAT score value for asians. These are not equality, these things are biases.

focusing on the extremist outsiders.

Sorry, no. "equal opportunity" is fairly mainstream. It is government enforced racial bias. Thats the thing we should be fighting against, not entrenching.

I don’t want to paint all social justice as it’s currently used as a bad thing though.

It had a chance to be good in the early days, but discarded that sometime in the 60's. Real civil justice leaders were assassinated, new sleazy ones pushed, and now we have worse inequality than ever before. SJW is cancer.

→ More replies (0)

-18

u/Baryn Apr 25 '19

Don't feminists hate it when you refer to things as female?

10

u/[deleted] Apr 25 '19

Lol funny how such an innocuous word choice already attracted three whiners

4

u/Baryn Apr 25 '19

The real attraction is the whining about whining :P

0

u/gasolinewaltz Apr 25 '19

Same idiots who can't stand to hear about triggers and safe spaces

-3

u/[deleted] Apr 25 '19

Thats why I am focusing on JS and learning Python next.😁 #react #node #mashinelearning

-19

u/ForScale Apr 25 '19

Ooh... a lady! ladysman.gif

0

u/[deleted] Apr 25 '19

[deleted]

4

u/byeSpideR Apr 25 '19

As a Java developer, I'm genuinely curious why you say it is a gross development environment.

I work in a mostly enterprise setting with complex business logic and I still feel Java is a right fit for these kind of back-end applications.

We do use different JavaScript frontend frameworks, but our REST API and back-end is written in Java using Spring boot.

1

u/LastOfTheMohawkians Apr 25 '19

I have no issue with Java... But imagine if you used node is on backend. Then you wouldn't have such a duplication of effort, you could share code across tiers, you can align processes across tiers etc. Win win.

0

u/[deleted] Apr 25 '19

[deleted]

5

u/greymalik Apr 25 '19

it's the only thing you can choose when you're writing a web application

It will be interesting to see what WebAssembly does to the landscape in the upcoming years.

1

u/IceSentry Apr 27 '19

As long as companies and government refuse to leave IE webassembly will mean nothing.

1

u/greymalik Apr 27 '19

It can still mean something to the other 90% of the Internet.

-1

u/LowB0b Apr 25 '19

"it's the only thing you can choose when you're writing a web application"

If you want something that is interactive like a native app then yes, otherwise you can always go "old school" and use JSF, PHP or some c# (aspx, not sure what the framework is called), or even python