883 karma · joined July 29, 2021
b is for byte or buffer
c is for character
d is for destination
e is for event or error
f is for file
g is for graph
h is for handle
i is for index
j is also for index
k is for key
l is for length
m is for mode
n is for number-of
o is for object
p is for part
q is for queue or query
r is for reader
s is for source
t is for time
u is for user
v is for value
w is for word
x is for x component
y is for y component
z is for z component
namedtuple is widely used in Python code, especially before the introduction of dataclasses.
As someone else mentioned, SSE is a somewhat simpler protocol that achieves the same purpose. Same idea though.
Yes, that's basically the idea.
If you mean SSE, then yes that would work just as well (unless you need the bidirectionality for the client to modify some aspect of the connection after the page has loaded). There is an htmx-sse extension too.
I'm not sure how XHR alone would let you automatically get backend state changes reflected to the frontend. You can poll one or more endpoint, but that's more complicated to get right and less efficient.
What an odd statement. I appreciate the Cosmopolitan project, but these exaggerated claims of superiority are usually a pretty bad red flag.