pauleveritt, to random
@pauleveritt@fosstodon.org avatar

I'm doing a WebStorm livestream with Carson and on Tuesday. Topic: WebStorm debugging.

As a teaser, I wrote an article on what's we'll cover. https://www.jetbrains.com/guide/javascript/articles/debugging-livestream/

aral, (edited ) to SmallWeb
@aral@mastodon.ar.al avatar

Oh, by the way, since the optimisations I made on the bundle size, it now takes ~3.61 seconds to download and install Kitten¹ on my machine and ~1 second to update it (the initial install takes longer as Kitten downloads its own Node.js runtime and that takes the bulk of the time).

Every second you don’t spend waiting for something is a second you can spend doing something else 🤓

:kitten: 💕

¹ https://codeberg.org/kitten/app

#Kitten #SmallWeb #web #dev #server #framework #HTML #CSS #JavaScript #htmx

aral,
@aral@mastodon.ar.al avatar

(And remember, Kitten is a server. So you don’t have to download and install a framework every time you start a project ­– no npx this or that or anything. Just start writing your code and run kitten.)

https://codeberg.org/kitten/app

aral, to SmallWeb
@aral@mastodon.ar.al avatar

Heads up: if you were playing with Kitten¹ on macOS, you might have noticed that some of the commands were exiting with a truncated header.

This has now been fixed and all commands should look and work exactly the same on macOS as they do on Linux.

:kitten: 💕

¹ https://codeberg.org/kitten/app

davidbisset, to react
@davidbisset@phpc.social avatar
arfs6, to django
@arfs6@hachyderm.io avatar

I created a context processor to help me switch between full and partial templates in automatically. It sets my base template to a partial template if the request is a request.
https://arfs6.me/blog/python/django/2024/02/22/switching-between-partial-and-full-html-when-using-django-and-htmx.html

mblayman, to django
@mblayman@mastodon.social avatar

🐍 is a small JavaScript library that extends HTML markup to make web pages more dynamic. Check out how to add htmx to your project! https://www.mattlayman.com/blog/2021/how-to-htmx-django/

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

My dive into and its web ecosystem continues. This time, I'm using to serve HTML from an endpoint and sending static files from a directory.

The IDE I'm using is .

Note: Cool features from RustRover include automatic dependency refresh, HTML Language injection, and a built-in browser in the IDE (via plug-in), not to mention really good language support.

janekdererste,
@janekdererste@det.social avatar

@mo8it @khalidabuhakmeh. Just tinkered with , and while being sick at home. On the first impression askama works well for me.

timidak, to random
@timidak@mastodon.social avatar

I'm wondering if we'll get hmtaa someday... 🧐
https://leanrada.com/htmz/

moutansos, to random
@moutansos@mastodon.social avatar

College Prof: HATEOAS is how you should build on the web

Me in College: That’s lame and outdated. Frontend frameworks are the future.

Me now: He wasn’t wrong. He had it right all along.

I wasn’t able to see it then. It took writing complex frontend apps and managing tons of state on the client for me to realize that he was right. Always consider the point of view. Even if it seems dumb at first, upon reflection it might not be that dumb. The crowd isn’t always right.

kellogh, to random
@kellogh@hachyderm.io avatar

TIL about , a mini language meant to be used in conjunction with to chain together multiple actions. e.g. a modal that displays and then fetches its contents

my sense is that you should avoid using it. but when you need it, it’s very readable and easy to reason about
https://hyperscript.org/

alexzeitler, to dotnet
@alexzeitler@mastodon.social avatar

I know the term is coined already but recently it came to my mind more than once:

Code that fit's in your head.

That's what I love about vertical slice architecture (wrt coupling and cohesion).

HTMX and Alpine are a nice fit due to locality of behavior.

Paired together with Event Sourcing (not having to guess what might have happened to the state) it gives me some peace of mind I've missed for a long time.

jitterted, to Java
@jitterted@sfba.social avatar

On today's Solo stream, I'll be working on the and WebSocket portion of my Ensemble Rotation Timer.

Join me in about 25 minutes (11:30am PST | 7:30pm UTC) on Twitch: https://jitterted.stream

jitterted,
@jitterted@sfba.social avatar

Once again, #TDD and #HexagonalArchitecture meant that when I hooked up the "real" timer broadcaster (using WebSockets), everything just worked.

Only took 35 lines of WebSocket code and 10 lines of #SpringBoot configuration code and a few #htmx attributes on the HTML page. (Not counting the separate transformer code that generated the HTML.)

schizanon, to webdev
@schizanon@mas.to avatar
schizanon, to webdev
@schizanon@mas.to avatar

HTMX is just the "back to the land" movement, but for web hippies.

aral, to random
@aral@mastodon.ar.al avatar
DiazCarrete, to random
@DiazCarrete@hachyderm.io avatar

Typical mis-targeting bug.

rstevens, to random
@rstevens@mastodon.social avatar

i think i might get super into html tables this year

sergi,
@sergi@floss.social avatar

@rstevens I've build web "apps" that use tables with infinite scrolling and that allow toggling rows between view/edit modes thanks to #htmx and it is great.

paulox, (edited ) to CSS
@paulox@fosstodon.org avatar

Pico CSS v2 has been released! 🎉

A minimalist and lightweight starter kit that prioritizes semantic syntax, making every HTML element responsive and elegant by default. ✨

https://picocss.com/docs/v2

mborus,
@mborus@mastodon.social avatar

@paulox does this play well with ?

alexzeitler, to webdev
@alexzeitler@mastodon.social avatar
alcinnz, to random
@alcinnz@floss.social avatar

What to expect from your framework - Johan Halse:
https://johan.hal.se/wrote/2023/02/17/what-to-expect-from-your-framework/

benpate,
@benpate@mastodon.social avatar

@alcinnz Love this article. Thank you for sharing!

Under the “no solutions” section, I’ll suggest https://htmx.org as a potential option. Yes, socials are filled with silly memes, but that’s only to reinforce the point that today’s “front end” devs have taken themselves way too seriously.

The library itself has been a breath of fresh air for me, in an otherwise absurd world where simple things are obfuscated into oblivion by layers of meaningless abstractions.

schizanon, (edited ) to webdev
@schizanon@mas.to avatar

If there was an element that changes it's content when users interact with other elements on the page, what name would it have?

PLEASE NOTE: I am not suggesting that this element needs to exist; I am only asking what it would be called. I'm building a CustomElement, I just want it to have a name that makes sense.

Vote and suggest others in replies. Please boost for reach!

schizanon, (edited )
@schizanon@mas.to avatar

Round 2; because I've gotten some good suggestions

This <HTML> element updates itself with the result of an HTTP request that some other element on the page made. It can replace, append or prepend it's contents.

What should it be called?

schizanon, (edited )
@schizanon@mas.to avatar

Round 3:

An <HTML> element that updates with the result of an HTTP request that some other element on the page made.

Links and forms inside it may be changed so that they only update this element instead of the whole page; similarly to Hotwire: TurboFrames https://turbo.hotwired.dev/handbook/frames

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