4 ms·
I... really don't like this. For a small personal project to tinker with, fine, but if you stop and think: this is a lot of additional complexity to partially s
by RadiozRadioz 3y ago
I... really don't like this. For a small personal project to tinker with, fine, but if you stop and think: this is a lot of additional complexity to partially sidestep some extremely trivial problems.
If the goal were to generate pages from a document DSL like Markdown I'd understand the need for a transpiler. But here the author's done it to make the HTML "look cleaner".
Boilerplate is barely reduced, it's mostly been replaced with different symbols and words. Now instead of some extra characters, you've got an additional build step and a new suite of tokens to learn.
And sure that code looks "clean", but it's much less clear than the original source would be. Whitespace is syntax, the delineation between tag & content is much less clear, you can no longer see where tags end without carefully following the indentation or using editor highlights. Then you've got HTML & CSS semantics in a YAML-but-not-quite presentation with both CoffeeScript (javascript-but-not-quite) AND Python, all right next to each other, with the only separation at the bottom end being a line break.
I just fundamentally don't understand it. I suppose it's not aimed at me.
- mattgreenrocks 3y agoAngle brackets are merely verbose sexpr's. And syntax is both meaningless and hugely impactful: semantics are the most important thing, but we spend all our time interacting with the syntax, so it makes sense to optimize for it. Webdev is mired in non-essential complexity still. Small, focused tools that let you enjoy working on the web should be celebrated. Besides, HTML is merely an agreed-upon protocol for distributing hypertext. The workflow for authoring it is bound to be very personal.
- alin23 3y agoAuthor here ^_^ for me it's much more important to be easy to write, than easy to read, and it accomplished that goal. I almost never revisit parts of the page I've already written, they may sit there for years untouched, or I may delete them and do a whole different layout from time to time. It's definitely painful to edit small details after months of not seeing the code, so it's not for people that need to do that often. I also understand that for most people, indentation is not a good separator. I worked with Python for so many years, that I probably view white space differently than others. Symbols are visual overload for me, I just need 4 spaces to see structure and separation.
- ryaneager 3y agoSo, HTML was too cumbersome to write because of the </> symbols so instead you created an entire toolchain to compile it, based off some arbitrary HTML like language. That isn’t cumbersome…? Just write HTML my man.
- alin23 3y agoI don't like it. It gives me pain in my hand muscles to have to hold Shift and write those symbols all the time. It also bores me and annoys me. We're different my man.
- lelanthran 3y ago> I don't like it. I agree. I don't like writing HTML either. That being said .... > It gives me pain in my hand muscles to have to hold Shift and write those symbols all the time. It also bores me and annoys me. I use vim, and with some macros and vimscript in my config, tags are not hard to write (especially if you're willing to make a ftplugin abusing the leader key + first letter of tag to automatically write the common tags). Even without vim, I was pleasantly surprised at how VSCode (using some HTML plugin) handled raw HTML editing. You don't need to ever hit the shift key if using vim, and you get pretty similar autocomplete in VSCode (and I assume other editors too).
- alin23 3y agoUnfortunately I did not start with vim, and when I tried to learn vim (and a few years after, kakoune), I had already created a strong muscle memory for Sublime Text and it was frustrating to start from scratch. I agree that there are editor solutions for this, but I also write and edit websites on my iPhone sometimes. As you can imagine, it's a day and night difference between editing Plim and editing HTML on a phone.
- cutler 3y agoVS Code is fine for creating HTML but a pain in the ass for editing existing tag pairs.
- tjrgergw 3y agoSome people just enjoy complexity for the sake of complexity. However if you try and convince them they're over-complicating, they'll fight you on that point. I agree with your take, but I also think it's wasted effort.
- deleted 3y ago[deleted]