Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jkoudys
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
jkoudys
7y ago
I'm starting to see the backend/frontend separation as being much less meaningful than it used to be. Plenty of technically client-side code that has incredibly sophisticated data architecture, and server-side code that's foc
182.
▲
by
jkoudys
7y ago
Rust people will talk about ownership, because when you work with the language you learn to appreciate what it implies. Rust code for ml can be fairly effortlessly compiled to any target - including wasm. Not so for python running over c-co
183.
▲
by
jkoudys
7y ago
Aha! It was the powerful hat lobby all along!
184.
▲
by
jkoudys
7y ago
Yep - play outside, but wear sunscreen.
185.
▲
by
jkoudys
7y ago
Love love love this article. I'm so tired of hearing lazy, unskilled, disorganized, mismanaged, etc. companies handwave the shit they write as simply being "tech debt". Sticking 50ms waits throughout your code, because you&#x
186.
▲
by
jkoudys
7y ago
Mesh networks can still connect up to the internet. "The internet" is a concept and isn't really owned or controlled by anyone. It's more about the ledger itself being distributed. It'll definitely be much slower. t
187.
▲
by
jkoudys
7y ago
Easy solution: close your eyes.
188.
▲
by
jkoudys
7y ago
Same! As a teenager I was finishing up my final grade in piano before leaving my (now dearly departed) piano teacher behind and going off to uni. I dedicated a year of my life to learning that piece. In hindsight it was one of the best deci
189.
▲
by
jkoudys
7y ago
One of my favourite CD-sets I'd ever bought back in the day was the complete Rachmaninoff recordings. He's an amazing composer and great performer, but I'd shy away from saying any recording of his works is the "real one
190.
▲
by
jkoudys
7y ago
At least not centralised cashless transactions. A mesh network using some kind of crypto is even better at avoiding government interference than cash.
191.
▲
by
jkoudys
7y ago
A related (but less automated) advantage is if you're building react components that render SVG, this minified output will be much shorter and hopefully easier to reach through and figure out where you want to insert your own colours&#
192.
▲
by
jkoudys
7y ago
You're telling someone who saw years of work amount to only $96 that they only deserve 20% of that?
193.
▲
by
jkoudys
7y ago
Truth. It's especially stressful, because too many will value your time as much as they pay for it. If you work on a team doing some big $10M deploy for an enterprise client, that client will be buying you dinners and setting you up in
194.
▲
by
jkoudys
7y ago
10% sound fair? Split it 20 ways for each lib. I'm sure they'd all enjoy their 47 cents.
195.
▲
by
jkoudys
7y ago
It's not a bubble, it's a model for paying for things you value. People used to pay a lot for their TV, satellite dish, VHS tapes, all the space to store them, newspaper subscriptions, 3+ magazine subscriptions, phones (which were
196.
▲
by
jkoudys
7y ago
Yeah and this is huge. Not something I realised I needed coming from my experience in js, but it's a big deal in rust. It's not that different from needing to manually branch match arms and `into` your errors back for `Result`s, w
197.
▲
by
jkoudys
7y ago
But it does require knowledge of generators. You're suspending a function during execution; that's what a generator is. We could've just named a global `async` that declares a coroutine FN on promises, and named `yield` as `a
198.
▲
by
jkoudys
7y ago
I do wonder if I'd feel differently if async + yield was a more common pattern. It can be extremely powerful (especially when combined with an event emitter). Maybe my problem is more with how async/await still isn't really b
199.
▲
by
jkoudys
7y ago
It's as standard a solution as any, it just doesn't require changing the language. If you can Promise.all, you can Promise.coroutine. Putting async in front of a function definition requires learning a new syntax, but wrapping a c
200.
▲
by
jkoudys
7y ago
Double as confusing if you're used to taking a more fp approach, too. I definitely went overboard with await when it first came to JS, but nowadays I've found a new respect for .then. Especially in TypeScript where it's easie
201.
▲
by
jkoudys
7y ago
Coming from mostly Js/ts, I've had the opposite experience. I'm finding what I write on rust may be more explicit, but often less noisy. Using an error wrapping lib and ? everywhere made the biggest difference. May not be as
202.
▲
by
jkoudys
7y ago
Oh the combinators in rust can be great. I think making the code read more imperatively is often a case of confusing the familiar with the simple. TS makes combinators way better too. That's why it's the `.await?` that sells me on
203.
▲
by
jkoudys
7y ago
Not really - you have your own promise implementation as `Promise`. Bluebird made `Promise.coroutine`, and that could've gone into the main Promise implementation.
204.
▲
by
jkoudys
7y ago
Looking at the example I gave, how is `async function` any more clear than saying `co(function`? It covers the exact same use cases with equivalent clarity. They could've shipped the `Promise` object with a `coroutine` fn, like bluebir
205.
▲
by
jkoudys
7y ago
I agree you need a seat at the table, and historically mass protests have been a way to get that seat. It only happens when the movement is reflective of a group willing to change their behaviour though - strikes, boycotts, etc. Criticism w
206.
▲
by
jkoudys
7y ago
I used to be a huge fan of async/await in the JS world, until I realized that we were tethering a very specific implementation to new syntax, without adding any clarity beyond what a coroutine and generator could do. eg `async function
207.
▲
by
jkoudys
7y ago
No shortage of good answers, so I'll share my last experience: Rust. The incredibly strict compiler has made me much better at types in TypeScript. My understanding of how memory gets assigned, managed, and passed around has improved t
208.
▲
by
jkoudys
7y ago
It's asinine. I might as well include the CO2 footprint of the wear on your shoes and pants from walking.
209.
▲
by
jkoudys
7y ago
I've always felt so alone in my distaste for ORMs. They often lead to at worst taking way more data than you need and manipulating it all in a language that's not very good at it, or at best running some kind of query-builder whic
210.
▲
by
jkoudys
7y ago
"don't pay attention to what he says or does, just have blind faith that he'll be great!"
More ›