logoalt Hacker News

prisencolast Sunday at 10:20 PM10 repliesview on HN

I'm a fan of anything that allows me to build with javascript that doesn't require a build step.

Modern HTML/CSS with Web Components and JSDoc is underrated. Not for everyone but should be more in the running for a modern frontend stack than it is.


Replies

bobbylarrybobbylast Sunday at 11:23 PM

On the one hand I can see the appeal of not having a build step. On the other, given how many different parts of the web dev pipeline require one, it seems very tricky to get all of your dependencies to be build-step-free. And with things like HMR the cost of a build step is much ameliorated.

show 1 reply
odie5533yesterday at 3:27 AM

I have not written a line of JavaScript that got shipped as-is in probably a decade. It always goes through Vite or Webpack. So the benefit of JS without a build step is of no benefit to me.

show 1 reply
junonlast Sunday at 11:30 PM

Webcomponents are a pain in the ass to make, though. That is, sufficiently complex ones. I wish there was an easier way.

show 4 replies
auxiliarymooselast Sunday at 11:22 PM

Agreed on native HTML+CSS+JSDoc. An advantage in my use-cases is that built-in browser dev tools become fluid to use. View a network request, click to the initiator directly in your source code, add breakpoints and step without getting thrown into library internals, edit code and data in memory to verify assumptions & fixes, etc.

Especially helpful as applications become larger and a debugger becomes necessary to efficiently track down and fix problems.

fergieyesterday at 3:04 PM

> Modern HTML/CSS with Web Components and JSDoc is underrated.

I've been a front end developer for 25 years. This is also my opinion.

mb2100yesterday at 10:06 AM

This. Or use ts-blank-space if you prefer TypeScript over JSDoc. That's what we do in https://mastrojs.github.io

pjmlpyesterday at 9:31 AM

I was already doing that in 2010, with the JSDoc tooling in Eclipse and Netbeans back then.

However I don't get to dictate fashion in developer stacks.

kellengreenyesterday at 6:20 PM

Came here to write this exact sentiment. Not everything needs a massive build pipeline.

winridyesterday at 3:41 AM

TS is worth the build step.

show 1 reply
mmcrompyesterday at 2:46 AM

Why? The half a second for the HMR is taking up too much your day?

show 2 replies