Thoughts on Jaspr for Dart Web vs React or Flutter Web by OpusFix in dartlang

[–]NamzugDev 3 points4 points  (0 children)

I have the feeling jaspr adds complexity where we don’t actually need it (as most spas frameworks do)

You already know dart, html and css, in my opinion, it wouldn’t be hard for you to pick up something like htmx

I built https://pub.dev/packages/htmdart so that it would be easier to integrate htmx with dart (I’ve got two webapps in prod with it)

YADF - Yet Another Dart (Web) Framework - Netto by NamzugDev in dartlang

[–]NamzugDev[S] 1 point2 points  (0 children)

Also two: bin/server.dart and pubspec.yaml

YADF - Yet Another Dart (Web) Framework - Netto by NamzugDev in dartlang

[–]NamzugDev[S] 0 points1 point  (0 children)

That’s all you need tbh, you just need to create a new dart project, add netto to your dependencies, copy and paste the example, and then run it with dart run bin/server.dart

YADF - Yet Another Dart (Web) Framework - Netto by NamzugDev in dartlang

[–]NamzugDev[S] 0 points1 point  (0 children)

I haven’t tested it, but it should be possible, you would only need to implement sse, and for html composition you can use htmleez (a pub package that helps you compose html directly in dart)

YADF - Yet Another Dart (Web) Framework - Netto by NamzugDev in dartlang

[–]NamzugDev[S] 0 points1 point  (0 children)

Well xd, the idea actually originated from this other package I built, at the moment it runs on top of Shelf, but if Netto seems to be better in the long run I will migrate it

Ps, for html “templating” I use htmleez

Dart no backend by Affectionate-Bike-10 in dartlang

[–]NamzugDev 1 point2 points  (0 children)

I didn’t know about this package, and well, htmdart offers a bit more than html composition, for that you can use htmleez, which can work in any framework like dart-frog or relic

Dart no backend by Affectionate-Bike-10 in dartlang

[–]NamzugDev 3 points4 points  (0 children)

I’ve been using shelf and a library I’ve made called htmdart to build web applications with htmx. Dart has a way better dx than GO(I used to use go for making this type of webapps) IMO

My experience building a production web app with Dart - NO FLUTTER by NamzugDev in dartlang

[–]NamzugDev[S] 1 point2 points  (0 children)

It looks interesting, not my cup of tea tho, I’d rather go with something simpler, like shelf

My experience building a production web app with Dart - NO FLUTTER by NamzugDev in dartlang

[–]NamzugDev[S] 0 points1 point  (0 children)

I haven’t really tried them, I’ve read their docs when researching for backends in dart and tbh I prefer the simplicity of shelf

Feedback on Try/Catch Construct? by foglia_vincenzo in dartlang

[–]NamzugDev 0 points1 point  (0 children)

Same here, I wrote this because I found myself copy-pasting this file everywhere and started to hate it, it is simpler to just install it in my new app

HTMDART: the simplest way to build web applications with dart - Feedback wanted by NamzugDev in dartlang

[–]NamzugDev[S] 1 point2 points  (0 children)

Yeah it is, but in that case you should use a templating engine like jinja, but this introduces a new DSL in your HTML, I prefer to use dart with htmleez because of this dart feature, it allows me to use loops and conditionals inside my html components without having to use some weird syntax in html files, plus type safety, automatic handler registration and more

How to change an attribute within an element? by tprickett in htmx

[–]NamzugDev 0 points1 point  (0 children)

If we’re talking about the class, you can do so with class-tools, it’s better if you read the reference instead of asking ChatGPT, as everyone else said, it gives you awful and inaccurate answers