Sverigetråden - webbutvecklare upplagan - /int/ (#212371133) [Archived: 712 hours ago]

Anonymous Sweden
7/3/2025, 11:37:26 AM No.212371133
htmx_thumb.jpg
htmx_thumb.jpg
md5: cbc80666e87a767f1b032ae5193468d4🔍
Replies: >>212371195
Anonymous United States
7/3/2025, 11:40:45 AM No.212371195
1740486373497
1740486373497
md5: ccac61dd7185398f4ce36d48d74e6f87🔍
>>212371133 (OP)
I assume the only people excited about this are those who don't already know JS? E.g. devs who haven't done web dev before, maybe their background is in C/C++ or Java etc. So they think "okay I'll just write some HTML and add HTMX for interactive stuff so I don't have to learn JS"

For anyone who already knows even a little bit of JS, surely using JS makes way more sense than adding the dependency of HTMX.
Replies: >>212371360
Anonymous Sweden
7/3/2025, 11:49:06 AM No.212371360
>>212371195
>I assume the only people excited about this are those who don't already know JS
It means that you can write less JS (including fewer tests), but you'll still have to write some JS to handle local state. It doesn't make sense to save everything server side, e.g. light/dark mode.

>adding the dependency of HTMX
It's not a big dependency. Check out fixi.js if you think HTMX is too heavy.
https://github.com/bigskysoftware/fixi
Anonymous Sweden
7/3/2025, 11:49:49 AM No.212371375
>>212371138

>>212371138

>>212371138

>>212371138

>>212371138