andros, to web Spanish
@andros@hostux.social avatar

Mi consejo, cuando queráis aprender WebSockets no utilicéis un tutorial/libro/curso sobre Socket.IO. Es un framework, una capa de abstracción que te aisla de los fundamentos. Sería similar a aprender JavaScript utilizando JQuery.
Si vuestro objetivo es montaros vuestros propios servidores, Node y Django Channel lo hacen muy fácil.

schizanon, to random
@schizanon@mas.to avatar

I'm not rich, but I don't spend more than I earn in interest on my Bitcoin, so I'm having a hard time motivating myself to look for a job. I've been a web developer for about 25 years, and though I like the work, I can't stand the people. They are ego-maniacal, bad at communication, and humorless in general. There are exceptions, but they get cowed by louder more aggressive ones. "So contract" I hear you say; but here's the weird thing; I actually like working with people.

schizanon,
@schizanon@mas.to avatar

, , and open up so many possibilities too. I see so many hardware makers shipping web-based configuration tools these days and I'm HERE FOR IT! There's almost nothing the web can't do these days.

I'm also intensely interested in distributed programming with blockchains like and , and distributed hosting with things like and .

Kovah, to Laravel
@Kovah@mastodon.social avatar

Im about to implement achievements for @cloudhiker. Anyone know a great method to show toasts/popup notifications in the #frontend for unlock events, which do not involve setting up websockets with #Laravel Echo? 🥺

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

Kitten update: session IDs now available in the request.session objects you get in your routes.

Kitten lets you persist arbitrary data in session objects to make it easy to work with sessions but you cannot store custom objects (instances of custom classes) as Kitten’s default database is not aware of custom classes in your application. Now, keyed to the session id, you can store custom objects in your app’s own database.

https://codeberg.org/kitten/app#sessions

:kitten: 💕

aral,
@aral@mastodon.ar.al avatar

(The use case for this is pretty neat: keep your interface state in custom state class instances persisted in session objects and, using the Streaming HTML workflow*, send back pieces of the interface that take those state objects as their only prop. Quite a neat separation of concerns and state is maintained only on the server in those objects.)

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

almet, to random French
@almet@tutut.delire.party avatar
paulox, (edited ) to memes
@paulox@fosstodon.org avatar

RT @htmx_org

So is anyone actually using htmx or what?

paulox,
@paulox@fosstodon.org avatar

@andros In reality, HTMX is more than just fetch in Javascript 😅
The project goal from its website:
> "htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext"
https://htmx.org/

paulox, to webdev
@paulox@fosstodon.org avatar

HTMX 1.9.7 has been released 🎉

htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext :picklerick:

https://github.com/bigskysoftware/htmx/releases/tag/v1.9.7

[

sos, to random
@sos@mastodon.gamedev.place avatar

deleted_by_author

  • Loading...
  • fell,
    @fell@ma.fellr.net avatar

    @sos is the worst piece of library I have ever seen.

    I once wanted to make a teeny tiny tool that interfaced with a remote . And since I'm familiar with it, I decided to write it in C++. When looking for a library that can do and everyone recommended Boost.

    Yeah, I had to download 180 MB of source code(!) and spend several minutes building the damn thing just to integrate it into my single file program. It was so convoluted and complicated to use that I just gave up.

    On top of that the only promising part of Boost that I was actually interested in, Boost.UI, was removed from it years ago. Thanks for nothing.

    schizanon, to webdev
    @schizanon@mas.to avatar

    I feel like my entire career in there has always been the tools that I'm interested in learning, and the tools that someone wants to pay me to use, and the later is always five years behind the former.

    Just once I wish someone would let me skate to where the puck is going.

    Is anyone hiring for or ? I've been using these things for years now, surely it's time to start moving away from ReactJS now.

    thisismissem, to programming German
    @thisismissem@hachyderm.io avatar

    TIL: undici supports the WHATWG WebSocket API (client) and this is now experimentally exposed in Node.js v21

    schizanon, to webdev
    @schizanon@mas.to avatar

    How should you manage a connection in a Multi-page App? Say, one that needs to listen on all pages all the time like a chat widget?

    Do you connect in the main thread, and just reconnect on each page navigation?

    Or do you create the in a instead?

    shakthimaan, to web
    @shakthimaan@mastodon.social avatar

    Dream web framework feature-complete tutorial without boilerplate https://github.com/aantron/dream/tree/master/example#readme

    CakePHP, to random
    @CakePHP@phpc.social avatar

    Our final speaker of the day is Wim Godden (@wimgtr) with his highly anticipated talk on 🍰

    Zeronaut, to random
    @Zeronaut@fosstodon.org avatar

    on and the FediVerse:
    I use as my production RMM in my IT small biz.

    The issue's pattern: you have a DNS service routing traffic to your Meshcentral instance, often behind an reverse proxy. The main website works, but the remote connections start failing half the time. Now they always fail at a 0 sec timeout.

    It seems caused by a change in cloudflare likely with but possibly certs?
    Thoughts on this?
    https://github.com/Ylianst/MeshCentral/issues/5302

    schizanon, to webdev
    @schizanon@mas.to avatar

    Does include ? If so, how does one deliver over a ?

    schizanon,
    @schizanon@mas.to avatar

    @manlycoffee there's an extension for apparently! 's too!

    reconbot, to random
    @reconbot@toot.cafe avatar

    Pushpin decomposes real time web technologies (like into a request/response backend which works really well for and honestly most application stacks. Long lived connections are hard to manage near your app logic.

    The GRIP protocol is straightforward and lower level than you'd expect.

    Good read so far.

    https://pushpin.org/docs/usage/

    schizanon, to random
    @schizanon@mas.to avatar

    Y) use a ( supports these) new data as it arrive. If you're using supports you can also set up connections that stream new data from the origin servers in

    steely_glint, to ipv6
    @steely_glint@chaos.social avatar

    If a device has a publicly routable IPv6 interface, safari won't offer that address for a peer to use in a WebRTC call. Unless one of 2 seemingly unrelated things are true
    a) the page already has microphone permission or
    b) the page specifies an IPv6 capable STUN server.

    The whole point of IPv6 is that you don't need NAT to share scarce IPv4 addresses - and so STUN (which figures out what your public IP address is) would be irrelevant for IPv6

    rhianno,
    @rhianno@mastodon.social avatar
    CakePHP, to random
    @CakePHP@phpc.social avatar

    ❕MEET THE SPEAKERS❕

    🎤 Wim Godden - @wimgtr

    From beginner to advance, his talk will take a deep dive into all things .

    Join us! 🎟️ CakeFest.org
    Hotel special rates available 🛏️

    icing, to random
    @icing@chaos.social avatar

    In the next weeks I will be working on adding HTTP/2 WebSockets to Apache httpd, sponsored by the friendly people from https://www.axis.com/ 🎉

    paulox, to random
    @paulox@fosstodon.org avatar

    Raphael Michel is presenting the talk "Building and scaling a live event platform with django-channels" at the DjangoCon Europe 2023 in Edinburgh 🏴󠁧󠁢󠁳󠁣󠁴󠁿🦄🚀

    CC @djangoconeurope @rami

    https://pretalx.com/djangocon-europe-2023/talk/MYWHXB/

    smallcircles, to fediverse
    @smallcircles@social.coop avatar
  • 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