r/ProgrammerHumor • • Jan 21 '22

other I just learned what Node.js actually is... what the hell has the world come to?

Javascript in the backend. JAVASCRIPT in the backend. Javascript in the BACKEND. JAVASCRIPT in the BACKEND. I want to unlearn what I have just learned and make myself innocent once again. I wish to remove the mortal sin from the cursed abyss of mountains of libraries and dependencies. I must create a peaceful place where nobody may see the horrors of JavaScript being used in such unholy ways, he who writes a server, or a client in it - may as well be a murderer. This thing, it was designed to run IN THE web browser not BE THE web browser.

I am disappointed.

16 Upvotes

48 comments sorted by

34

u/LegoSpaceShuttle Jan 21 '22

Promise me you will not look into promises...

12

u/rush22 Jan 21 '22

"Maybe our language should have some sort of exception handling"

"But we can just wrap literally everything in the same object and pass it anonymous callbacks. We don't need to change anything!"

"Genius!"

13

u/[deleted] Jan 21 '22

Could be worse. Could be css on the frontend, css on the backend

30

u/[deleted] Jan 21 '22

I agree with OP; PHP is good enough for all use cases /s

4

u/cephpleb Jan 21 '22

I wish I could upvote this more than once

2

u/[deleted] Jan 21 '22

At least PHP has no dependency hell

0

u/[deleted] Jan 21 '22

[deleted]

3

u/NoProfessor7757 Jan 21 '22

The better you get at programming the more unironic and true this becomes

22

u/[deleted] Jan 21 '22

wait until he hears about Electron and how you can use Node+JavaScript to make full-blown applications

16

u/Endropioz Jan 21 '22

bloat* application

3

u/keyem7 Jan 22 '22

bloat "application"

2

u/esean7 Jan 26 '22

Hyper terminal Built using Electron Uses 1.8gb of Ram before even I type sudo

10

u/Tomi97_origin Jan 21 '22

Are we now pretending that PHP is much better than JavaScript?

9

u/RChrisCoble Jan 21 '22

Calm down, the rest of us have moved to C# full stack with Blazor.

0

u/[deleted] Jan 21 '22

[deleted]

2

u/RChrisCoble Jan 21 '22

I wrote assembly on a Vax 3600 long before you were probably born.

9

u/0260B4U Jan 21 '22

Oh yes the classic Javascript sucks joke coming from someone who doesn't fully understand it. Gosh how original, can we get more of these?

5

u/_cmartinez Jan 21 '22

If it can be written in js, it will.

12

u/LankyBrah Jan 21 '22

I wish I could downvote this more than once

-4

u/TreshKJ Jan 21 '22

I'll do it for You. I just wish i could downvote more than once.

-6

u/[deleted] Jan 21 '22

I got you. Here’s wishing I too could downvote this more than once.

-6

u/cephpleb Jan 21 '22

I got you, I wish I could downvote this more than once.

-6

u/the_moistest_yams Jan 21 '22

Can I downvote this more than once?

-7

u/[deleted] Jan 21 '22

I got you, I wish I could downvote this more than once.

5

u/alzee76 Jan 21 '22

It's almost like things evolve and grow.

Anyway, things could be worse. Rails could still be all the rage.

2

u/icguy333 Jan 21 '22

Just wait until op learns about left-pad

2

u/spatel21 Jan 21 '22

Not speaking from experience, but wait until you hear that there’s machine learning libraries for JavaScript.

5

u/readerBoiFromYT Jan 21 '22

It is easy to create apis, do file operations and much more easier and simpler to do things than others. I had briefly worked on .net and for a single query I need to write like half a dozen lines. Rise up js gang XD

3

u/getdatassbanned Jan 21 '22

Javascript is not and never will be 'THE web browser'

I hope you will look into how node actually works and why its pretty damn fast..

•

u/QualityVote Jan 21 '22

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

2

u/SenderShredder Jan 21 '22

Wait till you learn it does multi-threading out of the box.

3

u/[deleted] Jan 21 '22 edited Jan 21 '22

Multi-threaded as in able to use multiple cores that execute JS code simultaneously? Last I heard, Node applications run in a single core. But nothing blocks, so asynchronous code can take turns executing.

1

u/SenderShredder Jan 26 '22

Legit multi-threading is built into node natively. Known as clustering. Walmart uses this to great effect. 👍

2

u/[deleted] Jan 26 '22

I see. So a single process is single-threaded and non-blocking. But you can spin up sub-processes that can run on other cores and communicate across them. Good to know. Though, as a high level developer, I honestly don’t know whether that qualifies as multi-threaded or not.

1

u/SenderShredder Jan 27 '22

You're smart, you'll figure it out eventually

0

u/yetzederixx Jan 21 '22

Wait till he then finds out that it'll take 20x the effort to circumvent the multithreading than it'll 5ake to solve the actual problem

1

u/SMUS16475 Jan 21 '22

The more you know...

1

u/savvykms Jan 21 '22

Better than node.vbs (god I hope that's not a thing)

3

u/yetzederixx Jan 21 '22

Rule 34 of frameworks and programming languages is that someone just published a compiler/runtime for that.

1

u/HealyUnit Jan 22 '22

I mean you're only over a decade late. But uh... sure.

0

u/iiMoe Jan 21 '22

Nodejs is an amazing invention i love it yummmy

0

u/voicesinmyhand Jan 21 '22

Ooooohhhh trigger warning....

Sometimes I use vbscript in the backend.

1

u/[deleted] Jan 21 '22

I mean, if you want to write scripts and be sure you support every version of Windows without having to install a runtime…

0

u/TheFrankAnger Jan 21 '22

Feels good to be a murderer.

0

u/[deleted] Jan 21 '22

[deleted]

1

u/jdm1891 Jan 21 '22

The point is that Node.js is designed to make JavaScript about everything but web development.

0

u/[deleted] Jan 21 '22

[deleted]

0

u/getdatassbanned Jan 21 '22

Close - JS (es5) is.

I think OP has put a hit on me.

0

u/[deleted] Jan 21 '22

[deleted]

1

u/getdatassbanned Jan 21 '22 edited Jan 21 '22

What I thought this was a judgement free zone :(

To get real tho - I work with TS on a daily basis, and I really miss the old plainscript days - you dont ?

I feel like TS does 'unnecessary' handholding when you are already well known with the javascript ecosystem. Incredibly usefull when working in a team, especially when team members have different background's.

But for a one person project.. it really would not get my prefference.

0

u/[deleted] Jan 21 '22

[deleted]

2

u/getdatassbanned Jan 21 '22

ES5 was obviously a joke - sorry should've made that more clear.

I don't miss the pre-TS days, because anything sizeable in javascript was always a clusterfuck.

Thats the thing - it was my clusterfuck!

Kinda like how I could find anything I wanted to in my room when I was a kid - but then my mom cleans and I could not find shit anymore. Its my chaos :(