natera,
@natera@fosstodon.org avatar

It's incredible the ammount of code needed for simple stuff using React. Glad that I get to work with

pierstoval,
@pierstoval@mastodon.social avatar

@natera That's why I love Svelte: all the business code lies in the business, being normal JS or TS, and Svelte templates are what they're called: templates
(well, actually, they're called components, but just like with Vue3, there's a clear separation between the JS/TS code, the HTML template, and the CSS code, and it's amazing)

Another advantage of Svelte is that there is not a big amount of "custom HTML components". Either a ":" and it's visibly svelte-specific, all the rest is pure HTML.

pierstoval,
@pierstoval@mastodon.social avatar

@natera That's something I didn't really like with Vue or Angular (and that I don't like with htmx): the "classic" prefixing of HTML attributes IMO prevents the clear JS interaction we need with our components, and it implies "eval"-ing the statements in our heads, while old-school templating is just easier to read.

Svelte is a good compromise between templates in full-TS/TSX (React) and full-HTML (Vue, Angular, or htmx)

doublebyte,
@doublebyte@noc.social avatar

@natera You got me curious on that!

natera,
@natera@fosstodon.org avatar

@doublebyte Give it a look, for me the combo of #Django and #HTMX is a great one, extend HTML and gets rid of the complex JavaScript React combo

doublebyte,
@doublebyte@noc.social avatar

@natera is this the best place to get started? https://htmx.org/ 👍

natera,
@natera@fosstodon.org avatar

@doublebyte Yes, also you can follow along one of the YouTube tutorials from BugBytes here: https://youtube.com/@bugbytes3923

doublebyte,
@doublebyte@noc.social avatar

@natera will do, thank you! 🙏

pythonbynight,
@pythonbynight@fosstodon.org avatar

@doublebyte @natera You can also find a lot of htmx resources here, which may include some other tutorials, articles, and examples:

https://github.com/PyHAT-stack/awesome-python-htmx

pheonix,
@pheonix@fosstodon.org avatar

@natera I hope react and all these convoluted messy bloated frameworks slowly wither off.

natera,
@natera@fosstodon.org avatar

@pheonix Yes! And when I mentioned HTMX and Django to one guy at work, he said “looks nice for a personal project, I don’t think it would work for something big and serious” I feel that at some point we confused complexity with seriousness 🤷‍♂️

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • anitta
  • DreamBathrooms
  • osvaldo12
  • mdbf
  • everett
  • magazineikmin
  • khanakhh
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • tacticalgear
  • ngwrru68w68
  • JUstTest
  • thenastyranch
  • cisconetworking
  • Durango
  • ethstaker
  • InstantRegret
  • Leos
  • provamag3
  • GTA5RPClips
  • tester
  • cubers
  • megavids
  • normalnudes
  • lostlight
  • All magazines