I generally haven't had much issue with local CF DX. Pretty wild that it works as well as it does TBH...
I generally haven't had much issue with local CF DX. Pretty wild that it works as well as it does TBH...
1. Every route can take N handlers. Each can return or not return (middleware)
2. Every handler is automatically awaited
3. The request itself is a transport, since it's always available
4. "Just returning" is the easiest pattern, since we do this the most
1. Every route can take N handlers. Each can return or not return (middleware)
2. Every handler is automatically awaited
3. The request itself is a transport, since it's always available
4. "Just returning" is the easiest pattern, since we do this the most
Why?
Any latency adds overhead to your system, and this is nowhere close to as fast as just including your chosen uuid/id generator into your code!
Why?
Any latency adds overhead to your system, and this is nowhere close to as fast as just including your chosen uuid/id generator into your code!
One could say the same for any of my byte-optimized libs... in a world where devs don't seem to care about bundle size, one could always ask: who cares?
A few do! :)
One could say the same for any of my byte-optimized libs... in a world where devs don't seem to care about bundle size, one could always ask: who cares?
A few do! :)
IMO it solves an edge case problem that I don't think stresses the majority of devs out (we expect *any* function to be able to throw)
...by converting arguably readable code into symbol soup, with added bloat per function.
By their own example:
IMO it solves an edge case problem that I don't think stresses the majority of devs out (we expect *any* function to be able to throw)
...by converting arguably readable code into symbol soup, with added bloat per function.
By their own example:
I fully believe the answer is to overwhelm each other (the good and the bad) with compassion.
It’s really hard to be shitty to a person who truly cares for you and shows you kindness.
I fully believe the answer is to overwhelm each other (the good and the bad) with compassion.
It’s really hard to be shitty to a person who truly cares for you and shows you kindness.
ittysockets.io
The client is tiny (<500 bytes), and uses a standardized public backend. You can send/receive any message format you need (within reason) for your app!
Go check it out!
ittysockets.io
The client is tiny (<500 bytes), and uses a standardized public backend. You can send/receive any message format you need (within reason) for your app!
Go check it out!
All in all, a typical time from component mount to fully synced takes between >100ms. This is often WAY faster than a round trip to some sort of API layer.
All in all, a typical time from component mount to fully synced takes between >100ms. This is often WAY faster than a round trip to some sort of API layer.
4. That user listens for welcome messages, and responds to the first one (fastest), asking for the board state.
4. That user listens for welcome messages, and responds to the first one (fastest), asking for the board state.
1. You join.
You as the joiner have no idea who is in the channel (just the number of players).
2. However, when you join, everyone in the channel is notified of this (standard event in ittysockets.io).
1. You join.
You as the joiner have no idea who is in the channel (just the number of players).
2. However, when you join, everyone in the channel is notified of this (standard event in ittysockets.io).
It's like our brains now just process one side of an equation and ignore the mismatch... :(
It's like our brains now just process one side of an equation and ignore the mismatch... :(