News for hackers. Stuff that matters.
Re:Size of node_modules folder when installing the top 100 p... by ezramorse on Thursday January 09, 2020 @09:35PM (#22007935)
Awesome until you look around and notice you’ve fallen into a pit of despair (tech debt) and have no ecosystem to leverage your way out of it or people you can hire that want anything to do with it :)

There needs to be concerns beyond pure speed and package size to dictate tools. Sometimes real world practical constraints must be considered

Re:Size of node_modules folder when installing the top 100 p... by brlewis on Friday January 10, 2020 @08:10AM (#22010662)
> you’ve fallen into a pit of despair (tech debt) and have no ecosystem to leverage your way out of it or people you can hire that want anything to do with it

It sounds like you're saying that the way out of tech debt is to install more 3rd-party packages and/or hire more people, I hope you meant something else.

I use and recommend React at work because of the hiring thing, but for my own personal projects I stick with Mithril. With JSX it's not hard to switch back and forth between the two, at least with TypeScript there to tell me when I accidentally use HTML in my React JSX, e.g. the class attribute when React wants the className property. (With Mithril you use attributes that map exactly to HTML attributes)

Re:Size of node_modules folder when installing the top 100 p... by pier25 on Thursday January 09, 2020 @10:41PM (#22008145)
You don't need much else besides Mithril and maybe a css library.

As for hiring I agree somewhat but anyone with a couple of years of front end experience should be able to pick it up in a matter of hours.

Re:Size of node_modules folder when installing the top 100 p... by jnwatson on Thursday January 09, 2020 @09:44PM (#22007961)
You’re saying people don’t want to work on vanilla JavaScript? Really?
Re:Size of node_modules folder when installing the top 100 p... by ezramorse on Friday January 10, 2020 @12:04AM (#22008447)
I’m saying check Mithril npm packages vs react/vue packages, contributed by the people who wanted to work with each framework. Some ecosystems have more work to pull from, more people active and experienced, and more established patterns & tools.
Re:Size of node_modules folder when installing the top 100 p... by dividuum on Friday January 10, 2020 @10:48AM (#22011768)
I've been very happy recently with using the Vue.js ecosystem with the standalone vue.js and a few others directly <script>'ed from my applications. Usually vue.js, vuex.js, vue-resource.js and maybe vue-router.js are all dependencies I'll have to add. This avoids the npm circus with the (from my point of view acceptable) downside of, for example, not having single file components. The advantage is a minimal set of dependencies of ~70kb compressed JS added in total and a community where most of the question I had are answered somewhere.
Re:Size of node_modules folder when installing the top 100 p... by nwmcsween on Friday January 10, 2020 @02:00PM (#22014010)
Eh, I wouldn't qualify technical debt as having less mind share. This is like saying code is worse because it's more concise and has less moving parts.