pbx, to random
@pbx@fosstodon.org avatar

This is a great rapid-fire intro to #HTMX. Too fast for good retention of course, but a great way to survey HTMX capabilities and style in 8 minutes. https://www.youtube.com/watch?v=TT7SV-bAZyA

kerfuffle, to Java
@kerfuffle@mastodon.online avatar

Who here knows a CDN that offers edge computing capability for the JVM / GraalVM?

AWS Lambda@Edge only supports JavaScript and Python.
Cloudflare only supports JavaScript.
Fastly supports WebAssembly.

kerfuffle,
@kerfuffle@mastodon.online avatar

Actually, it may be soon that #WebAssembly with WASI support as offered by Fastly can be targeted from #Kotlin / #Java. Nice article on the development by @sdeleuze at https://seb.deleuze.fr/introducing-kotlin-wasm/

Would be sweet if I can have a static #HTML / #CSS website that uses #HTMX for interaction with a backend written in Kotlin and compiled to #wasm running on an edge location using #wasi .

anze3db, to random
@anze3db@fosstodon.org avatar

One thing that I'm missing with HTMX and Django is proper error handling.

By default HTMX swallows any response that is not a 2xx, which might leave your users hanging on an endless loading state.

Does anyone have a good solution for this that can be reused between projects?

video/mp4

aral,
@aral@mastodon.ar.al avatar

Also, not immediately relevant to your current issue but something that might be worth considering for the future: using the htmx websocket extension, you can basically implement a streaming HTML approach (example using Kitten: https://ar.al/2024/03/08/streaming-html/) where you can just stream errors to the page as they happen.

(2/2)

danjac, to random
@danjac@masto.ai avatar

#htmx tip: if using "htmx.ajax()" API call to trigger an HTMX request, and you need to push the URL to your history, return response with "HX-Push-URL". (django-htmx has a handy "push_url()" function for this).

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

I made a ServiceWorker intercept #HTMX calls and manage state inside of the ServiceWorker process all in-browser.

The downside is it takes a few seconds for the service worker lifecycle to start, so it's likely only available on page refreshes. Still a neat concept.

Service worker handling click events for HTMX with count going up on each click.

jjude, to random
@jjude@mastodon.world avatar

Is it possible to create audio recorder kind of web apps using #htmx ?

_chrismay,
@_chrismay@fosstodon.org avatar

@jjude One could create an audio app that leverages #htmx.

You would need to leverage in-browser JavaScript to capture the audio, using the MediaRecorder API (or a library), but the app can use Htmx for the rest.

docs: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder#browser_compatibility

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Every few months, I come back to rewriting a app in , sometimes it's with Blazor, sometimes it's Razor Pages, and this time with (although I may have already done HTMX 😅)

I got some quality-of-life improvement issues entered to help make better, too. So that's a win!

Htmx-powered todo app.

brutella, to webdev
@brutella@mastodon.world avatar

A big advantage when working with web technology is that you can easily deploy your product on your own server. http://hkknx.hochgatterer.me

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

This a question I have for #htmx #aspnetcore users ( @alexzeitler and @egil) who are attempting to reduce repetition with components.

Do you think less components and more reusability is better, or are you losing some benefits of breaking down the UI into optimized functions?

I thought about this building my JetBrains store sample, too. I'm unsure where to draw the line of reuse vs. bespoke endpoints.

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

I’m looking at @egil HTMXOR library that combines and in a very sensible solution.

If you're a dev, I think there's something here you should take a look at.

http://github.com/egil/htmxor/

kellogh, to rust
@kellogh@hachyderm.io avatar

ooo promising new #rust #htmx framework. Check out the ad! 😂 https://youtu.be/YpHFthVa7nU?si=QCJHyg7_dEmBeGTu #rustlang

egil, to blazor
@egil@mastodon.social avatar

Continuing experiments with #htmxor, aka. #htmx + #Blazor. Working on enabling support for template fragments.

Input, feedback, suggestions are very welcome indeed: https://github.com/egil/Htmxor/discussions/37

natera, to random
@natera@fosstodon.org avatar

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

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

Zearin, to 11ty
@Zearin@mastodon.social avatar

@zachleat Suppose I wanted to run using its own dev server, but I also wanted to tinker with (https://htmx.org) to learn about it.

Q1: Is this possible now?

Q2: Will this be possible in the not-too-distant future?

nhoizey, to react French
@nhoizey@mamot.fr avatar

“React, Solid, htmx” by Bobae Kang

🔗 https://bobaekang.com/blog/react-solid-htmx/

> [HTMX] can get you 80% there with radically less complexity. No extra dependencies, no build step, no advanced tooling (now re-written in Rust!), no complicated state management, no “double data” problem, no hydration mismatch… Just write your HTTP server and return HTML!

⚓️ https://nicolas-hoizey.com/links/2024/04/17/react-solid-htmx/

jitterted, to Java
@jitterted@sfba.social avatar

🚨 #LiveCoding Alert 🚨

Working solo on some final Ensemble Timer features using #Java #SpringBoot and a bit of #htmx.

Join me now on Twitch at https://jitterted.stream

jitterted,
@jitterted@sfba.social avatar

Finished the "Reset Timer" feature as well as adding sounds for "Pause" and "Resume" (that way you can hear when the timer is paused without having to look at it all the time).

With the help of a viewer, was able to DELETE the kludgey JavaScript code and let #htmx handle all of the work of playing audio. Sending an <audio> element over the WebSocket with autoplay worked as desired!

ntha, to php
@ntha@mastodon.social avatar

Modern React.js with Vite is really nice, with out of the box TypeScript support and all, but by far my favourite text stack is most likely with . It's the simplicity that gets me.

carlton, (edited ) to django
@carlton@fosstodon.org avatar

Some nice feedback on django-template-partials on the hellsite.

Translated from the French:

> A package that helps me organize my templates in my and projects is django-template-partials from @carlton. This is the library that has had the most influence on my code in a long time.

That's what we were hoping for. 🥰

https://github.com/carltongibson/django-template-partials

cwoodruff, to random
@cwoodruff@mastodon.social avatar

Doing a talk at lunch today covering how to improve with . I have to give this talk a few times in 2024 at conferences, so it's a great way to improve the content before then. Wish me luck!

egil, to blazor
@egil@mastodon.social avatar

Usssh, now I’ve done it. I actually have to talk about htmx and blazor next monday. So I need all you folks help, what are the libraries you are using? What are the good and bad things about that combo?

https://www.youtube.com/live/-Mc9pROA0Ho?si=mpxSGkSTVV2MJT5_

Pinging @khalidabuhakmeh and my and friends!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@brtkdotse @egil This might be controversial, but here are my thoughts on why you technically may want to use and together and why you wouldn't.

I have social reasons why you may want to prefer one over the other, too. But that's more opinion ;)

https://gist.github.com/khalidabuhakmeh/84beff0adf2d49092a9a7769207d4084

quii, to random

I've been playing around with HTMX for the past 6 months or so and it's flipping fantastic.

Here's a post where I describe why I think you should look into it https://quii.dev/HTMX_is_the_Future

You don't have to go through hell to build great web applications

kerfuffle,
@kerfuffle@mastodon.online avatar

@quii Just stumbled on your post and found you on Mastodon. Excellent write-up!

I remember visiting frontend conferences where people were struggling to explain the value of progressive enhancement. Then one year, the frontend movement discovered AngularJS and from there every few months a new SPA thing emerged to solve the mess the previous incarnation left behind.

I am so glad is catching on with full stack developers.

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