News for hackers. Stuff that matters.
Re:HTML First – Six principles for building simple, maintain... by anon23432343 on Sunday November 12, 2023 @02:14PM (#38243199)
I'm not a big fan of JSX...

But that trend to put everything back into HTML were possible is also wrong...

Yeah this may work for static websites with some forms but I don't see Discord being build like that or any other bigger app.

Its like people want back the HTML version of Gmail. Its a nice experience when a big part of your screen flashes /s

What about i18n? or a10y? The examples of the form don't support any of that.

Have fun writing the right input every time without a well abstracted text input that does the hard and annoying stuff for you.

We switched to components for a reason but it seams like people forgot.

And yes not every blog or form needs to be writen in nuxt or some other big framework.

Re:HTML First – Six principles for building simple, maintain... by mock-possum on Sunday November 12, 2023 @02:17PM (#38243233)
Also not a fan of JSX. VUE’s component definitions are slightly better - at least it’s using actually HRML tags and <template>s. Personally, my favorite is Lit’s approach, writing HTML in tagged template literals. It’s still mixing your HTML with your JavaScript, but it feels much cleaner, closer to the vanilla experience of marking up content.
Re:HTML First – Six principles for building simple, maintain... by c-cube on Sunday November 12, 2023 @07:50PM (#38245698)
I have to use gmail for work, and I use the html version. It doesn't eat hundreds of MBs of ram or slow down my browser like, say, Google cloud's UI does. Ymmv.

(of course the html version is not as good as a non webmail would be. Such is life I guess.)