👨💻 Unemployed, exploring everything.
🎼 Currently building https://github.com/thegedge/m8t
📽️ Live coding here: https://www.twitch.tv/thegedge
🕸️ Subscribe to my feed @ https://gedge.ca
📈 Be a little better each day
Happy holidays! 🎄⛄️
Happy holidays! 🎄⛄️
I had a bug where the last epoch of a component would not render when there were two adjacent yields in an async generator with no `await` in between.
I had a bug where the last epoch of a component would not render when there were two adjacent yields in an async generator with no `await` in between.
I basically want this:
• `yield Promise<T>` is `T`
• otherwise, `yield` is `SomeOtherT`
I basically want this:
• `yield Promise<T>` is `T`
• otherwise, `yield` is `SomeOtherT`
Just gonna stream of consciousness some thoughts (no spoilers).
Just gonna stream of consciousness some thoughts (no spoilers).
```
const value = yield* Input("Enter your name");
```
`Input` is the component, takes placeholder text as an arg. It returns the text after user presses `Enter`.
```
const value = yield* Input("Enter your name");
```
`Input` is the component, takes placeholder text as an arg. It returns the text after user presses `Enter`.
"Nature does not hurry, yet everything is accomplished." — Lao Tzu
"Nature does not hurry, yet everything is accomplished." — Lao Tzu
I'm gonna pull out some interesting bits of it to me.
I'm gonna pull out some interesting bits of it to me.
You CANNOT `bigints.sort()`, because it will compare strings, not numbers. How ridiculous is that? This language was designed by MISANTHROPIC MONSTERS.
(╯°□°)╯ ︵ ┻━┻
You CANNOT `bigints.sort()`, because it will compare strings, not numbers. How ridiculous is that? This language was designed by MISANTHROPIC MONSTERS.
(╯°□°)╯ ︵ ┻━┻
I try to document tricky bits, but am happy to explain anything in more detail. Just throw me an issue!
I try to document tricky bits, but am happy to explain anything in more detail. Just throw me an issue!
github.com/mozilla-fire... is a good example of an unnecessary comment that wastes energy (many devs _will_ read it)
github.com/mozilla-fire... is a good example of an unnecessary comment that wastes energy (many devs _will_ read it)
You put any hubris aside and say "there are things I don't know about this space", pushing forward, often discovering many "unknown unknowns".
You'll get better software at the end.
1. kludge a working prototype together, don’t worry about the code AT ALL. the point is understanding how the requirements function in reality
2. destroy the prototype completely. build the app for real using my better mental model
You put any hubris aside and say "there are things I don't know about this space", pushing forward, often discovering many "unknown unknowns".
You'll get better software at the end.
Makes sense, but not necessarily my immediate thought that that would happen (but I've been deep into flex lately and know there are quirks in there)
Makes sense, but not necessarily my immediate thought that that would happen (but I've been deep into flex lately and know there are quirks in there)
😭
😭
I think we're now in a better place moving forward :)
I think we're now in a better place moving forward :)