Patrick G
relevantelement.bsky.social
Patrick G
@relevantelement.bsky.social
Web Dev, Data, Marketing
This is the same pattern used by:
- Redux-Saga for side effects
- Effect for ctx / effects
- Koa for middleware

Benefits:
✓ No dependency passing through layers
✓ Test with simple mock objects
✓ Add new dependencies without touching existing functions
✓ See dependencies at point of use
July 21, 2025 at 2:53 PM
Complete working example:
July 21, 2025 at 2:53 PM
The runtime that makes this work:
July 21, 2025 at 2:53 PM
JavaScript generators let us flip this: instead of passing dependencies down, functions pull what they need:
July 21, 2025 at 2:53 PM
The problem: dependency passing through function chains
July 21, 2025 at 2:53 PM
Reposted by Patrick G
My book "The Well-Grounded Data Analyst" is out early 2025!

It is a collection of real-world data analysis projects to level up your skills and you can already get it in early access.

Use the code au35asb to get 35% off (on any Manning title, not just mine!)

www.manning.com/books/the-we...
The Well-Grounded Data Analyst
Complete eight data science projects that lock in important real world skills–along with a practical process you can use to learn any new technique quickly and efficiently.</b> The Well-Grounded Data...
www.manning.com
November 27, 2024 at 7:52 AM
Exciting!
December 11, 2024 at 10:53 PM
What sort of code/commands? Could you give an example of what you're looking for?
December 5, 2024 at 9:21 PM
I'm watching the talk and saw that you're planning on using TypeScript types to aid in performance, that reminds me of kaleidawave.github.io/posts/a-prev... which you might find interesting.
A preview of Ezno's checker
Try it out today, what it does and more!
kaleidawave.github.io
December 4, 2024 at 1:27 AM
Is node.js compatibility on the distant future roadmap? If so, will it have to be done from scratch, or do you think it'll be possible to steal most of the code?
December 4, 2024 at 1:17 AM
Also, is it possible to make syscalls or have embedded C with porfor?
December 4, 2024 at 1:12 AM
It's still possible to use eval, you'd just have to bundle the entire compiler, right?
December 4, 2024 at 1:12 AM
🦋
December 1, 2024 at 4:11 AM
Or Rescript
November 15, 2024 at 10:11 PM
On my list: Swift, Odin, or Roc
November 15, 2024 at 10:11 PM