r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

256

u/swegj Jan 28 '23

“JavaScript is Powerful”. Oxymoron

110

u/tylerr514 Jan 28 '23

It is incredibly powerful in the sense of its ecosystem, but yeah, not in performance.

108

u/Sir_IGetBannedAlot Jan 28 '23

It's powerful in the sense of how much it makes me want to die.

0

u/[deleted] Jan 28 '23

[deleted]

2

u/JuicyBeefBiggestBeef Jan 28 '23

If youre using JS, you're clearly not in a good headspace to begin with

6

u/metaglot Jan 28 '23

Performance isnt bad for js all things considered.

15

u/Sinomsinom Jan 28 '23

Compared to a lot of other scripting languages (like python or Lua) it's a lot faster

10

u/visvis Jan 28 '23

Compared to others, its engines are more optimized. I doubt the better performance is inherent to the language.

24

u/HermitBee Jan 28 '23

Entirely true. But since code has to run somewhere that's what matters.

9

u/silver_enemy Jan 28 '23

Yeah my pen and paper JS engine performs absolutely terribly

→ More replies (1)

4

u/DudeValenzetti Jan 28 '23

Compared to Python, absolutely, but don't go around calling Lua slower than JavaScript when LuaJIT is a thing.

2

u/T0biasCZE Jan 28 '23

Lua is fastest interpreted language that exists, its only 3x slower than compiled C code

0

u/[deleted] Jan 28 '23

[deleted]

24

u/5plicer Jan 28 '23

Drains your phone's battery quickly.

4

u/noman2561 Jan 28 '23

I take it to mean you can do a lot with it without much effort. That it's got a lot of readily accessible uses.

2

u/Harmonic_Gear Jan 28 '23

it can lift a rock

2

u/nnog Jan 28 '23

Like it's a powerful laxative

0

u/[deleted] Jan 28 '23

[deleted]

3

u/DoNotMakeEmpty Jan 28 '23

If that's what powerful is, Haskell or OcaML are probably the strongest languages with C# not far behind. Also, probably with just a single C or C++ library you can make these languages more "powerful" than Python. You can create an array library in C++ that can be used as easily as Python lists etc. Don't forget that in Lisp the code is literally what the language is all about, i.e. LISts.

8

u/Dizzfizz Jan 28 '23

As the other comment said, it’s powerful in the context it’s commonly used in - you can easily make a browser do anything you want with JavaScript.

6

u/Thue Jan 28 '23 edited Jan 28 '23

But that is not really about the quality of the JavaScript language as such, is just first mover advantage. Make Python supported in all browsers, and it would be powerful too. While you will never make JavaScript as easy to use as Python just by doing the reverse.

2

u/MooseBoys Jan 28 '23

What are you talking about? In terms of joules per instruction it’s one of the highest!

2

u/adrr Jan 28 '23

So powerful you need to do === instead of == for comparison.

1

u/Shehzman Jan 28 '23

Genuine question. Isn’t nodejs pretty fast? Or is that considered an entirely different beast to JavaScript?

→ More replies (2)
→ More replies (6)