rosszurowski

Joined 9 years ago

Karma
138
Submissions
16
Member since
Dec 16
Designer + Developer https://rosszurowski.com
View on Hacker News

Recent submissions

Comment · 3 years ago
Comment · 3 years ago
I did! I actually forgot about that feature when making the parent comment. It was a useful addition to a degree.

I used it for more complicated components like a mobile nav with animations, and for some re-usable pieces like a subscribe form. The downside with Alpine.data is that it splits the HTML from the JS, so developing and refactoring was a bit of a pain, and caused errors because of old variables I accidentally left in the HTML (whereas Preact/TSX would give me an in-editor error).

It also didn't really mitigate the need to wire up all the pieces your data component exposes into an HTML correctly. Though, this was working inside a simple PHP-based templating engine — maybe one that supports better snippets with parameters would make that part of the experience better.

Comment · 3 years ago
I'm glad alternatives like Alpine exist for small sites that don't need many additional behaviours. But having used Alpine for a medium-sized art gallery website last year, I can't really recommend it for anything larger than a very simple site. The fact that all your code is scattered as strings everywhere without error checking or types makes it really hard to debug and work with long-term.

For lightweight front-end tooling, nothing has unseated the ease of Preact for me.

Comment · 3 years ago
Comment · 4 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 7 years ago
Ah, that makes sense. Thanks!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton