Lurker News

Comments (190) 48 threads

Earlier comments
hit8run4 replies#
Looking at the bloated and checked in node_modules folder makes me wanna cry. Yah it's probably all just dev dependencies but building a static website shouldn’t feel like rocket science. People were creating wedding websites in the 90s with just one html file and that’s it. Welcome to the age of total bloat.
andrewguenther1 reply#
The package.json declares 4 build dependencies and 3 runtime.

Most of that bloat probably comes from Gulp, which is one of the most ridiculously bloated tools I've ever seen.

ptd2 replies#
What is the alternative to tools like Gulp or Gatsby for those of us who want to make (fairly)simple websites?

In my case, I’m a Data Scientist looking to make a portfolio website. Nothing too crazy but more than hello world.
Should we just work with HTML? Materialize CSS? GitHub pages w/ Jekyll? Nextjs? Bootstrap?
Should we just head back to Wordpress and Wix? Wixcode? Is Gulp the best option?
Is it worth paying a professional to create the site for me?
I’m very intereted in developer opinions. Any feedback is much appreciated. Thank you.

austincheney#
One alternative is to not use them. If your target website actually is simple then prove it by not imposing a slow bloated architectural failure.
andrewguenther#
> What is the alternative to tools like Gulp or Gatsby for those of us who want to make (fairly)simple websites?

Gulp has nothing directly to do with building a website, it is a compilation tool of sorts that allows you to transform your source files into something you'll end up deploying via various plugins. For example, you can use gulp to collapse all your JS source files into one or to transpile it into something more cross browser compatible.
The reason I dislike Gulp is that it has a massive number of dependencies and really is just an overcomplicated reimplementation of pipes. Personally, I prefer Webpack. It is also a fairly large tool, but at the very least it actually does something useful out of the box. When I migrated our projects from Gulp to Webpack, I replaced a over 500 lines of gulp code with about 50 lines of config and a small bash script.

austincheney2 replies#
Taken from your link:

> When something isn't good, you needn't pretend that it is. But don't be gratuitously negative.
The comment you replied to is accurate and not gratuitously negative.

xeromal#
The OP said they wanted to cry and crying is reserved for pretty sad things. Seems over-the-top negative to me
dang#
Reasonable people interpret these things differently, but I'd say there were two gratuitous negativities: its snark, and venting an internet trope like "bloat on the web". I don't like bloat on the web either, but we've all heard countless rants about this already, and it's mean-spirited to haul out the artillery in this context.
vedantroy1 reply#
You sound like a "get off my lawn type of person"... let's take a look at the dependencies:

"animate.css" - as the name would imply, this is for css animations.
"font-awesome" - provides icons for vector graphics
"waypoints" - a easy way to trigger a function when you scroll to an element
This doesn't seem like "bloat". It's not like they used a full fledged framework like React. And, I think it would be pretty hard to replicate this site with "just one html file".
I'm sure its possible to make something similar without these 3 dependencies, but it would
1] be a lot harder
and
2] probably not look as good

dang#
> You sound like a "get off my lawn type of person"

I appreciate your standing up for the OP, but please don't be mean even if someone else was mean. That only makes this place worse.
Your comment would be much better without that swipe.

rampatra#
The only reason node_modules is there in the repo is because I have hosted the website on github (via github pages) no personal server. And github pages doesn't support `npm install` if you know what I mean. So I need to have all the files in the repo for github to serve my website.

If you have a personal server then you do not need node_modules folder in your repo. You can just do `npm install` in your server.

Load more comments