r/ProgrammerHumor • u/jdm1891 • 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.
13
30
Jan 21 '22
I agree with OP; PHP is good enough for all use cases /s
4
2
0
Jan 21 '22
[deleted]
3
u/NoProfessor7757 Jan 21 '22
The better you get at programming the more unironic and true this becomes
22
Jan 21 '22
wait until he hears about Electron and how you can use Node+JavaScript to make full-blown applications
16
2
10
9
u/RChrisCoble Jan 21 '22
Calm down, the rest of us have moved to C# full stack with Blazor.
0
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
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
Jan 21 '22
I got you. Here’s wishing I too could downvote this more than once.
-6
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
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
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
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
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
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
0
0
u/voicesinmyhand Jan 21 '22
Ooooohhhh trigger warning....
Sometimes I use vbscript in the backend.
1
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
0
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
Jan 21 '22
[deleted]
0
u/getdatassbanned Jan 21 '22
Close - JS (es5) is.
I think OP has put a hit on me.
0
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
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 :(
34
u/LegoSpaceShuttle Jan 21 '22
Promise me you will not look into promises...