Live data from Hacker News

No longer writing my own damn HTML

claytonwramsey.com

41–50 of 98 posts

Re: No longer writing my own damn HTML

#41
post #32

Earlier quoted context omitted.

The ideal amount of JavaScript is zero.

I disagree. The gov.uk website completely eschews JavaScript at some usability cost, in particular form validation is delayed until way later than it would be if they added just a little JavaScript. It can be quite annoying.

> The gov.uk website completely eschews JavaScript at some usability cost

I would imagine this was mostly driven by accessibility requirements more so than some ideological rigidity.

Re: No longer writing my own damn HTML

#42
> handwriting HTML is honestly not that hard

proceeding with all the steps that make it hard...

> exercise in pointless manual labor

This is exactly correct! Let the tools do their job and insert all the spans/tags/etc. that a browser expects, devote your energy to the content!

Re: No longer writing my own damn HTML

#43

I don't understand your hangup about using JavaScript to accomplish tasks that JavaScript is extremely well-suited to do. The idea that you are somehow imposing a burden on your visitors is an imaginary constraint which is actively consuming the finite minutes you have on the planet. This is a pyrrhic victory. I am not advocating using SPAs of any kind, especially in a blog context. However, if there is a library whi…

But all the tasks in the article are totally straight-forward SSG stuff. Why would you do some processing in a build step, but then stop half-way and ship a bunch of JS to the client so they can finish it? That only makes sense if the work is dynamic in some way that it can only be done on the client-side.

Re: No longer writing my own damn HTML

#44

Earlier quoted context omitted.

Build times can be annoying. I have a bicycle shop's website in Hugo, full generation takes about a few dozen seconds, upload using rsync easily a minute because of many nested directories with images. I ended up writing a script to only upload changed html and new images unless needed.

You know there was a time when we had to wait dozens of seconds for the modem to finish its handshake before you could do anything.

80s or 70s geezer, huh?

60s grandgeezer here. try waiting a week or two, to find out that your punched card batch job didn't even compile, let alone run, because of a single character typo you made. back to square zero.

kids these days ...

Re: No longer writing my own damn HTML

#45
post #32

I don't understand your hangup about using JavaScript to accomplish tasks that JavaScript is extremely well-suited to do. The idea that you are somehow imposing a burden on your visitors is an imaginary constraint which is actively consuming the finite minutes you have on the planet. This is a pyrrhic victory. I am not advocating using SPAs of any kind, especially in a blog context. However, if there is a library whi…

The ideal amount of JavaScript is zero.

I agree and with small single page sites doable but when I need to put a navigation (plus language versions etc) of the site into a mobile layout I have to do the js toggle, or do I?

Re: No longer writing my own damn HTML

#48

Earlier quoted context omitted.

I disagree. The gov.uk website completely eschews JavaScript at some usability cost, in particular form validation is delayed until way later than it would be if they added just a little JavaScript. It can be quite annoying.

> The gov.uk website completely eschews JavaScript at some usability cost I would imagine this was mostly driven by accessibility requirements more so than some ideological rigidity.

a little bit of the right kind of JavaScript helps accessibility, so it's clearly not

Re: No longer writing my own damn HTML

#49

Earlier quoted context omitted.

I disagree. The gov.uk website completely eschews JavaScript at some usability cost, in particular form validation is delayed until way later than it would be if they added just a little JavaScript. It can be quite annoying.

> The gov.uk website completely eschews JavaScript at some usability cost I would imagine this was mostly driven by accessibility requirements more so than some ideological rigidity.

Unfortunately, some people view accessibility as an ideology.

Re: No longer writing my own damn HTML

#50
> handwriting HTML is honestly not that hard.

> To write a new article, I... [c]opy-paste an older article to get the correct headers and navbar.

This is kind of hilarious. Any parts that you copy-paste from your previous projects into your new one are almost by definition too hard to do from scratch every time. You don't normally copy-paste e.g. single words or phrases like "do from scratch" into your writing because simply writing them is quicker and less fiddly than copy-pasting them from somewhere else, right? Yet I've worked with a dyslexic programmer once, and he copy-pasted tons of single words and phrases around from his earlier messages when chatting, and code snippets when coding — because for him, it was indeed easier than writing it correctly from scratch.

So back to main original point: handwriting HTML may not be that hard, but it's still hard enough for almost anyone to make them evade it whenever they can.

Post reply on HN