Comment

Comment by ArizonaJoe

Thanks for the writeup. I had the opportunity to use StimulusJS at a recent opportunity and couldn't agree with it. I found several issues with the patterns it encourages, such as:

-magic variable transformed from props, lots of uncertainty between the HTML attributes I typed and the actual name of the JS variable -have to now define these magic variables in typescript -defining values and automatically converting strings / numbers magically seems hacky - why does it ask to separate CSS classes into it's own special attribute and magic variable?

I feel like I'm speaking crazy when I see anyone recommend Stimulus and from my experience I'd much rather just use web components without shadow DOM. Seriously, EVERYTHING Stimulus does web components do 10x better and cleaner. They both try to do the same thing but the Stimulus approach honestly came across as a high school final project taken too far.

parent ArizonaJoe 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton