Re:Size of node_modules folder when installing the top 100 p...
by pixelbath on Thursday January 09, 2020 @05:29PM
(#22006588)
I find this post a bit ironic considering you built a 1.1 MB React app to display an image and a bit of text (and the image itself isn't even included in the repository).
[ Parent
| on HN ]
Re:Size of node_modules folder when installing the top 100 p...
by zamadatix on Thursday January 09, 2020 @06:03PM
(#22006824)
Dear lord it even loads a service worker so it can cache the app.
Re:Size of node_modules folder when installing the top 100 p...
by dwaltrip on Thursday January 09, 2020 @11:03PM
(#22008224)
That is included by default in create-react-app.
Re:Size of node_modules folder when installing the top 100 p...
by sondr3 on Friday January 10, 2020 @03:19AM
(#22009340)
It is included but disabled by default[0].
[0]: https://create-react-app.dev/docs/making-a-progressive-web-a...
Re:Size of node_modules folder when installing the top 100 p...
by Dockson on Friday January 10, 2020 @06:39AM
(#22010282)
Where are you getting 1.1 MB from? I'm getting 223 KB over the wire, which includes a 100 KB image.
Re:Size of node_modules folder when installing the top 100 p...
by pixelbath on Friday January 10, 2020 @01:55PM
(#22013948)
I cloned the repository for the site. Over-the-wire, though, I do get around 227 KB.
Re:Size of node_modules folder when installing the top 100 p...
by Frost1x on Thursday January 09, 2020 @06:54PM
(#22007163)
I don't find it ironic anymore, I find it the state of affairs in modern development environments. I'm always surprised how quickly people jump to using massive scaffolding, systems, or systems of systems to accomplish things that need about two orders of magnitude less complexity.
Then again, it seems people that develop these monstrosities are never the ones to maintain them.
Re:Size of node_modules folder when installing the top 100 p...
by ttty on Friday January 10, 2020 @05:00AM
(#22009830)
You're missing out the bug picture. All my projects started small. But day after day, you need a be feature and a new thing. It will grow. At that point you need to add these tools yourself, manually.
I rather have a standard baseline to be up to speed and don't get bothered with this on each app.
Re:Size of node_modules folder when installing the top 100 p...
by mark_and_sweep on Friday January 10, 2020 @06:20AM
(#22010205)
> You're missing out the bug picture.
Is this a Freudian slip? The amount of bugs in "modern web apps" seems rather huge indeed.
> I rather have a standard baseline to be up to speed
To me, the baseline for any kind of website or web app is, you know, HTML. When authoring static HTML or rendering it dynamically on the server, I'm up to speed instantly.
Re:Size of node_modules folder when installing the top 100 p...
by rhizome on Friday January 17, 2020 @03:31PM
(#22078903)
The graybeards called that "creeping featuritis."
Re:Size of node_modules folder when installing the top 100 p...
by sidlls on Friday January 10, 2020 @01:06AM
(#22008700)
Don't underestimate managers who "encourage" unnecessary complexity to boost their own profile. Their direct reports have to "design" and then implement and maintain them. Then the manager gets a higher profile for managing teams that build and design "critical", complex systems.
There is a lot of blame to go around in this industry--it isn't just individual engineers acting out of ignorance or resume building.