Ryan Day

3.7K posts

Ryan Day banner
Ryan Day

Ryan Day

@soldair

https://t.co/nhH8EK5Z0J

Occupied Ohlone Tamien Katılım Ekim 2008
575 Takip Edilen549 Takipçiler
Ryan Day
Ryan Day@soldair·
Hey all! My team is hiring. 😃 Come work on wasm at Google goo.gle/4dcyVCL
English
1
5
13
3.9K
Ryan Day
Ryan Day@soldair·
@MylesBorins Thanks Myles! Excited for you to keep doing you. Kittens and rainbows 🐱🌈
English
0
0
1
24
sMyle (🦋 @myles.dev)
sMyle (🦋 @myles.dev)@MylesBorins·
Today I stepped down from all existing Node.js and TC39 commitments. No drama, no blog post, just no time. So long, Thanks for All the Packages.
English
53
5
552
45.6K
Ryan Day
Ryan Day@soldair·
@caraesten I've been shopping for bay kayaking as well. Ty!
English
0
0
1
86
Ryan Day
Ryan Day@soldair·
@caraesten What kind of kayak do you have? I may have missed the post. 😃
English
1
0
1
109
Ryan Day
Ryan Day@soldair·
@evenstensberg "data at rest should match the access pattern" is great advice for this problem space.
English
0
0
1
30
Even Stensberg
Even Stensberg@evenstensberg·
@soldair Yea that works. Ideally I want to have the time series for a table in a column, not more tables for the relation.
English
1
0
0
47
Even Stensberg
Even Stensberg@evenstensberg·
How do you implement time series in a db? For instance, you store some variable, number of purchased in a month. It should be reset each month, but I want to store the previous month to have for stats
English
2
0
1
337
Ryan Day
Ryan Day@soldair·
Anyone know what this is? They ate all the algae in an experiment I was doing :)
English
1
0
0
237
Ryan Day
Ryan Day@soldair·
@sebmck @wesleytodd EventEmitter is a decent thing to use if you want to compose requirements as you build it. 😀 It's a node process, so your async lock is probably already any variable in scope of the emitter. And the var could be a map for your cache! Anyway. Good luck! These are fun choices.
English
0
0
2
27
Sebastian
Sebastian@sebmck·
@soldair @wesleytodd Very true! I guess I'm not really sure what I want. I just know that a basic EventEmitter is not it.
English
2
0
1
46
Ryan Day
Ryan Day@soldair·
@sebmck @wesleytodd Decent is carrying a really heavy load of otherwise unspecified requirements there 😅
English
1
0
2
55
Sebastian
Sebastian@sebmck·
@wesleytodd Yeah it's standard but I'd hardly call it decent. I think I just want an async store that I can subscribe to. Maybe some async locks or cache management too.
English
1
0
1
57
Ryan Day
Ryan Day@soldair·
Monday I start working on wasm at google. Nice to start a new adventure.
English
0
0
7
154
Ryan Day
Ryan Day@soldair·
@MagicznySzymek @matteocollina DI is just fancy arg passing haha. And the more automated the container the more you either depend on a build step or instantiation complexity. That complexity is harder and harder to test by nature and scales up. You need to track all the edges, the less magic it is the better.
English
0
0
0
133
Szymek
Szymek@MagicznySzymek·
@soldair @matteocollina so basically a dependency injection, but with manual work instead of an automated container
English
1
0
0
205
Matteo Collina
Matteo Collina@matteocollina·
One of the primary reasons of spaghetti code & unmaintanable codebases are… SINGLETONS. They block future evolution of your codebase and make testing harder. STOP USING THEM NOW
English
26
17
164
56.6K
Ryan Day
Ryan Day@soldair·
@MagicznySzymek @matteocollina It doesn't. just make your state instantiatable. :shrug: this is about how you feel like passing arguments to the functions in your program. You pass state in as an arg, you make objects with a factory that injects state, or you put it in the vm somewhere where you can get it.
English
1
0
1
270
Szymek
Szymek@MagicznySzymek·
@soldair @matteocollina jesus christ it makes the state a singleton and you have the same problems
English
1
0
0
333
Ryan Day
Ryan Day@soldair·
@matteocollina Export the state. Make your state mockable. Solve it in one spot. Making local changes in code bases like this is usually way easier than any other form of advanced di or additional positional arguments. Nike code ;)
English
1
0
0
506
Matteo Collina
Matteo Collina@matteocollina·
@littledan Those tend to create the same problems if they contain state. Global state makes isolated testing hard/impossible. Example: setting the “db” of the process prevent that process to connect to two dbs.
Milan, Lombardy 🇮🇹 English
2
0
3
2.3K
Ryan Day
Ryan Day@soldair·
@mountain_ghosts You can redirect it for everything in the whole script but that's often solving a different problem
English
0
0
0
66
Ryan Day
Ryan Day@soldair·
@JPMajor @quephird My dad worked on this. I saw it take off at the cape, and was there in viewing at cal tech when they burned it up. Always makes me smile seeing through it's lens. Ty!
English
0
0
1
63
Jason Major
Jason Major@JPMajor·
This is a view of Earth and the Moon captured from Saturn by the Cassini spacecraft on April 12, 2017 #OTD That's all of us from 1.43 billion kilometers away—specks of light inside the gap between two of Saturn's rings.📷🪐🌎🌕
Jason Major tweet media
English
10
56
180
8.9K
Ryan Day
Ryan Day@soldair·
@jfhbrook Seems like the only way is to make a sh wrapper for the node binary. Once something is a process it only really knows it's path env and args. Can snoop around in /proc/pid and see. Or just use "node" if it's resolved by which
English
0
0
1
22
Josh Holbrook
Josh Holbrook@jfhbrook·
Update, node is not designed to be embedded and it's totally not worth it - yuck.
English
1
0
1
87
Josh Holbrook
Josh Holbrook@jfhbrook·
I have a need to get at the equivalent of Bash's "$0" in Node: - `bash` -> $0 is "bash" - `$(which bash)` -> $0 is "/opt/homebrew/bin/bash" - "my-cli", located at "./node_modules/.bin/my-cli" -> process.argv is ["node", "/path/to/node_modules/.bin/my-cli"] Any ideas?
English
2
0
0
347