schizanon,

Thinking about #htmx:

👍 all the #HTML gets generated on the server; the source of truth.

👎 every #DOM manipulation requires a network request.

👍 #declarative easier to reason about.

👎 app behavior declared in bespoke attribute DSL; harder to reason about.

👍 no need to duplicate #backend state on the #frontend.

👎 no offline support.

#webDev #web #webDevelopment #hypermedia #hateoas

jamienk,

@schizanon Explain whet you mean here please

👎 every #DOM manipulation requires a network request.

schizanon,

@jamienk In #HTMX you can manipulate the DOM by simply adding attrs to your HTML.

For example:

<button hx-post="/clicked" hx-swap="outerHTML">  
 Click Me  
 </button>  

This button will trigger a POST request, and then rep[lace the button with whatever HTML is in the response.

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