I bought a HTML template for a site I'm making. Typically I just pull the compiled html files out and make a standalone project which I maintain in a text editor. But, this time I figured it's time to learn modern web development so I tried using the toolchain it came with.
The toolchain consists of 3,446 dependencies, runs 15 processes, and uses 3 GB of ram. Unfortunately I can't run for president, but if I could I would run on the platform of making Node.js illegal.
hackbyte (friendica) 13HB1 likes this.
reshared this
Internet Hedgehog 🦔
in reply to Marcus Hutchins • • •lampsofgold
in reply to Marcus Hutchins • • •gary
in reply to Marcus Hutchins • • •autoiue
in reply to Marcus Hutchins • • •Stephan
in reply to Marcus Hutchins • • •CatSalad🐈🥗 (D.Burch)
in reply to Marcus Hutchins • • •@infosec_jcp 🐈🃏 done differently
in reply to Marcus Hutchins • • •They got a node.js mastodon also I saw recently! 🐘.js
Citation:
infosec.exchange/@shanmukhatej…
Surya Teja K
2024-09-29 18:17:16
Jeremy Baumgartner
in reply to Marcus Hutchins • • •I had a vendor give us instructions on how to deploy a product from a Github repo once. It was a Node.js app. I spent a day or two learning Docker so that I could put it in a container and not have it completely shit on our system.
And, of course, it was an old, out of date version of Node.js that was required.
silverwizard
in reply to Jeremy Baumgartner • •Where Chuck once stood, only I will remain.
in reply to Marcus Hutchins • • •Yeah I had the same experience using Node to do React stuff. I spent 6 months with it, hated it for exactly that reason, understood all at once why we have toolchain vulns, and then ditched it (was going to see if I wanted to write a phone app in React native- Narrator: "he didn't").
I actually returned to Kotlin as my safety position (!), which blew my mind, since I was fleeing Java/Kotlin because "too bloated man".
Alan Dalton
in reply to Marcus Hutchins • • •bradfrost.com/blog/post/raw-do…
Raw-dogging websites
Brad FrostKartik
in reply to Marcus Hutchins • • •NodeJS Is a Monstrosity · Kartik's blog
blog.sanvira.netgauche
in reply to Marcus Hutchins • • •“Extracting compiled html from a template with 3446 dependencies”
I haven’t paid much attention to front end development these past few years but I see the demonic rituals are progressing well and the pact has been sealed.
That’s nice.
VessOnSecurity
in reply to Marcus Hutchins • • •Elsie!
in reply to Marcus Hutchins • • •modulojs
in reply to Marcus Hutchins • • •This is my main motivation for developing Modulo JS - a one-file, zero-dependency micro-framework: modulojs.org/
I currently use it in my day-to-day work to develop over the file:// protocol directly in the browser, so there's no need for Node.js, node_modules... or anything, not even a web server!
Modulo
modulojs.orgMx Amber Alex (she/it)
in reply to Marcus Hutchins • • •Erik Ableson
in reply to Marcus Hutchins • • •This is why I end up running screaming from my computer every time I start poking into any modern front end dev toolchains.
I mostly end up with a .css file with about 20 entries and some tables
Flaky :blue_jay:
in reply to Marcus Hutchins • • •My main language of choice is Python. It's good for getting things done quick and dirty.
I tried Node.js for a project I wanted to work on... and got really confused with npm and didn't go back.
Bryan Redeagle
in reply to Marcus Hutchins • • •Train YIMBY 🚂
in reply to Marcus Hutchins • • •Negative12DollarBill
in reply to Marcus Hutchins • • •hackbyte (friendica) 13HB1 likes this.
SpaceLifeForm
in reply to Marcus Hutchins • • •You had me at 3,446 dependencies.
I immediately knew it was NodeJS and did not have to read more, but I did just for the confirmation.
Jacques Chester
in reply to Marcus Hutchins • • •Dan Morris
in reply to Marcus Hutchins • • •Tariq
in reply to Marcus Hutchins • • •i've been programming as an amateur since 1988 ish.
the only thing that defeated me was .. "modern web development"
it would be more pleasant to rip my very soul from my body, pass it through a pasta grinder, and re-assemble it with shoe glue, and stuff it back inside my body
how did this happen?
controversial - some say it happened because web devs aren't engineers by mindset - but instead tech enthusiasts - so blind to that mountain of tech junk aka dependencies?
hackbyte (friendica) 13HB1 likes this.
stony kark
in reply to Marcus Hutchins • • •Анатолий Богомолов
in reply to Marcus Hutchins • • •How did you do this? Mine projects have never been bigger than 400 mb. Usually it's around 90-100Mb.
If we going beyond web development, I have one big project using tauri, however 4GB weight comes from rust dependencies. And the frontend dependencies only weigh 120 mb (keep in mind that most of my code is exactly on the frontend since it is a custom viewer for interactive instructions)
I'm just curious, how do you get your hands on one of these? I really want to see these mythical "node_modules are heavier than a black hole".
(I'm using sveltkit btw)
Bobbi Towers
in reply to Marcus Hutchins • • •Lapo Luchini
in reply to Marcus Hutchins • • •Claus Cramon Houmann
in reply to Marcus Hutchins • • •Ollie
in reply to Marcus Hutchins • • •What were they doing that couldn't be done with Perl/CGI?
Yes, that dates me. Modern web is just reinventing the wheel in increasingly inefficient ways.
Morpheus Being
in reply to Marcus Hutchins • • •Jurarigo
in reply to Marcus Hutchins • • •Lukas 🛠️
in reply to Marcus Hutchins • • •errorquark
in reply to Marcus Hutchins • • •Needless complexity == lack of understanding. I deeply disliked Node from the start. When coding HTML/CSS templates I went back to the fundamentals, even dropping LESS in favor of well structured plain old CSS. Just a good editor and my experience and knowledge.
In the end all those needless tools/helpers simply create more work and a mess of unwanted dependencies. Fully agree with you, you have my vote.
Tom Walker
in reply to Marcus Hutchins • • •hackbyte (friendica) 13HB1 likes this.