Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
crdrost
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
331.
▲
by
crdrost
4y ago
Yes, this is the best way to explain it. Your number literals are “snapping to a grid” that is not base-10 and then we choose the shortest base-10 decimal that snaps to the appropriate grid point when we stringify the number. The other thin
332.
▲
by
crdrost
4y ago
So it's great as an educational tool—my daughter is not yet two and surprised both me and my wife this way: when we whipped out a pack of flashcards we had never shown her, she already knew almost all of the shapes and most of the anim
333.
▲
by
crdrost
4y ago
More importantly what Dan Harmon is describing is what I would call a 4-act “Descent into Hell,” with acts “Setup, Descent, Belly of the Beast, Escape.” This is a very general structure, but the phrasing of that last act as “Escape” makes i
334.
▲
by
crdrost
4y ago
There's nothing wrong with query builders, no antipattern. In many ways it's similar to preferring C where you can really feel the assembly-language underneath you even if you're not writing it. If you have written enough raw
335.
▲
by
crdrost
4y ago
What a beautiful api. As a Knex user I appreciate the design influence of Knex, which similarly does not try to give you a full orm but just a structured builder for SQL queries. But I agree that Knex was always a little weird in that it on
336.
▲
by
crdrost
4y ago
I think so? I don't have contact with my immediate manager, only my skip-level, who is still there. (I was reorged under a new manager middle of last year and then again at the end of last year.)
337.
▲
by
crdrost
4y ago
I made it my goal to get to Google several years back precisely because of stories like these about the Google of 2005 and whatever, Bock’s “Work Rules!” and all that. And I made it! And now I have lost it, I am part of the unfortunate 6%.
338.
▲
by
crdrost
4y ago
I had more limited success :( Tried to use it to extend my Funky Christmas playlist (exemplars: James Brown’s “Soulful Christmas”, The Band’s “Christmas Must Be Tonight”, any “Lean On Me” but mine is by Music Travel Love, Train’s “Christmas
339.
▲
by
crdrost
4y ago
The "endless eggs" are somewhat of an Americanism but you can try that. If you want to be a little more cosmopolitan, most regions have some tradition or other of a morning porridge -- barley porridge in Nepal, rice as congee in C
340.
▲
by
crdrost
4y ago
Like I said I added a solution in the Disqus thread to that blog post... the English summary is that you Promise.race() the Promise.all() with the for-await loop.
341.
▲
by
crdrost
4y ago
Longer games go by FIDE's "Laws of Chess" which has a section 7 called "Irregularities" that indeed specifies the behavior if you accidentally knock over pieces or the game board falls over or you make an illegal mo
342.
▲
by
crdrost
4y ago
This code does not recapitulate the desired behavior. Desired: when the load from chapter 10 fails, even if chapter 2 is taking 30s to load, I want to immediately transition the UI into the failure state. Your code: waits until chapters 1-9
343.
▲
by
crdrost
4y ago
I think the best approach to using this mechanism in sci-fi would involve using it for braking rather than sending. The problem with sending is that you want the black hole traveling fast in the direction that you are going and this require
344.
▲
by
crdrost
4y ago
Newton's method is in fact what is described in the Twitter thread. x → x – f(x)/f'(x) with f = x² – N does in fact give you x → x – [x² – N]/(2 x) Which quickly simplifies to, x → (x + N/x)/2. With that said I
345.
▲
by
crdrost
4y ago
Re-hafting various hammers and axes with ash wood is one of Eoin Reardon's favorite things to do on his TikTok and YouTube, see e.g. - https://www.youtube.com/watch?v=ipHiPNA8rsA - https://www.youtube.com&#x
346.
▲
by
crdrost
4y ago
Yeah so the biggest problem with bookmarks is that they don't sync across devices very well, and a secondary problem is that you can't tag them or leave a note about why you care. If something is ONLY relevant to me in a work cont
347.
▲
by
crdrost
4y ago
So the derivation of Eli Goldratt’s ideas for programming is necessarily different because we are doing artisanal work rather than manufacturing. But yes taken naively it is a measure of Git commits merged into the main branch after running
348.
▲
by
crdrost
4y ago
Thanks for the alternative microservices quip, it was better than the original. Indeed, I find that “microservices should only perform a single task” is a really dangerous way to phrase it because we have no idea what the article means by “
349.
▲
by
crdrost
4y ago
The second half was better than you think it was and will hold up under rewatching, I suspect. In the first half, Argentina dominated possession and kept France completely on defense and just pummeled them, a boxer just getting blasted in
350.
▲
by
crdrost
4y ago
You are simply wrong about this, that is not the cultural attitude that generates this response in something like 95%+ of cases. Capital-D Deaf culture does not as a rule view their lack of hearing as a horrible wrong that needs to be corre
351.
▲
by
crdrost
4y ago
Deaf people dance to music all the time.
352.
▲
We have 'ignition': Fusion breakthrough draws energy gain
(nbcnews.com)
1 points
by
crdrost
4y ago
|
1 comments
353.
▲
by
crdrost
4y ago
In a language that I don't quite have the cojones to write, the ideal API for reduce comes from Haskell’s Data.Foldable, where it is called foldMap. If you don't know Haskell the idea is simple, it is that the essence of MapRedu
354.
▲
by
crdrost
4y ago
They often don't even know that's an option. Here's the deal. Haskell has “Functor” (mappable), “Monoid” (aggregate/summary), “Foldable” (summarizable), “Monad” (context/commandlike). This language comes from a lot
355.
▲
by
crdrost
4y ago
Caveat, the thing that makes it decidable is not the fact that it was going to run on a computer with finite memory, the SMT solver will fail on many code chunks that can run on your computer. (And that's more or less the claim of th
356.
▲
by
crdrost
4y ago
Have not used it myself yet, but Google has something called “Anthos” that seemed like it would reduce the work from 2x on the cloud front... I can't imagine that existing on the payment front though. Even as a separate startup, a paym
357.
▲
by
crdrost
4y ago
You are failing to engage with the content here. Work itself is behaving like a complex system with bottlenecks and constraints and all that. The deadlines are being shown to expand to the time allotted, in a similar fashion to how opening
358.
▲
by
crdrost
4y ago
Oh what a fun question! So, the first thing is, what's the essential difficulty versus the noise: Lisp has two features which enable the evaluator to work. The first is quotation, which means that you can put a little apostrophe before
359.
▲
by
crdrost
4y ago
I mean the famous example is of course, (define (eval exp env) (cond ((number? exp) exp) ((string? exp) exp) ((symbol? exp) (lookup exp env) ((eq? (car exp) 'quote) (cadr exp))
360.
▲
by
crdrost
4y ago
I might be understanding you poorly here... The author is not dismissing this in the sense of saying “it's impossible and that's okay” but rather “it's possible and it never generated the ambiguity in the first place, so it n
More ›