Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
loevborg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
loevborg
7mo ago
> You can imagine us continuing to iterate here to Step 5, Step 6, ... Step N over time. The tradeoff of each step is complexity, and complexity has to be deserved. This is working exceptionally well currently. Love this approach
32.
▲
by
loevborg
7mo ago
> Failover happens by missing a compare-and-set so there's probably a second of latency to become leader? Conceptually that makes sense. How complicated is it to implement this failover logic in a safe way? If there are two processe
33.
▲
by
loevborg
7mo ago
Love this writeup. There's so much interesting stuff you can build on top of Object Storage + compare-and-swap. You learn a lot about distributed systems this way. I'd love to see a full sample implementation based on s3 + ecs - j
34.
▲
by
loevborg
8mo ago
what are the pros and cons of oxlint vs biome?
35.
▲
by
loevborg
8mo ago
If you like Lee Pace, check out The Fall (2006). It's my favorite film, incredibly ambitious and funny and yet virtually unknown to the public. Lee's performance is incredible, as is his young co-star's.
36.
▲
by
loevborg
8mo ago
Does anyone have experience transforming a typescript codebase this way? Typescript's LSP server is not powerful enough and doesn't support basic things like removing a positional argument from a function (and all call sites). Wo
37.
▲
by
loevborg
9mo ago
We've been using tsgo for a few months in our team and it just works (10x faster). We bumped into some small differences in behavior with tsc but it was always because we were doing something weird in our code, and it was easy to fix.
38.
▲
by
loevborg
10mo ago
I've learned more from Charity about telemetry than from anyone else. Her book is great, as are her talks and blog posts. And Honeycomb, as a tool, is frankly pretty amazing Yep, I'm a fan.
39.
▲
by
loevborg
11mo ago
Correct, I use uuids as branch names, to the chagrin of my teammates
40.
▲
by
loevborg
1y ago
And "for of" vs "for in" (the latter typically shouldn't be used)
41.
▲
by
loevborg
1y ago
This unsoundness behavior recently caught me by surprise - and there's an unexpected fix (using object property syntax rather than method shorthand syntax). Also - what a strange behavior by the typescript compiler!
42.
▲
Method Shorthand Syntax Considered Harmful
(totaltypescript.com)
2 points
by
loevborg
1y ago
|
1 comments
43.
▲
by
loevborg
1y ago
> “For our fairytale castles, a fairytale comes true,” says Markus Soeder, a German politician representing Bavaria, in a statement shared with Reuters. Ah yes, a German politician representing Bavaria. Just like Gavin Nüsom is an Americ
44.
▲
by
loevborg
1y ago
Node and Python. It's amazing how much works out of the box - express routes, http queries, dns queries, the list goes on
45.
▲
by
loevborg
1y ago
As someone who recently adopted Honeycomb, it really is an amazing tool. Especially with otel auto-instrumentation, you get insights within a few hours. The dashboard / query features are very powerful and obviously stem from a deep ph
46.
▲
by
loevborg
1y ago
Thanks for sharing!
47.
▲
by
loevborg
1y ago
This is my favorite alias: i = !git add -N . && git add -p `git i` lets you interactively add new files as well as existing ones
48.
▲
by
loevborg
1y ago
Which ones? It seems eminently usable from the outside now, at least for greenfield work. The subset of Postgres it supports is most of good/core/essential Postgres. (But I haven't tried it)
49.
▲
by
loevborg
1y ago
You're right, stateful dependencies like DB handles need to be passed in manually, and that's a bit of extra legwork you need to do.
50.
▲
by
loevborg
1y ago
That seems too dogmatic. Does the fact that Foo has a static function that knows how to create its dependencies disqualify the class from being a case of DI? class Foo { private nowFn: () => Date; constructor(nowFn: ()
51.
▲
by
loevborg
1y ago
In other words, despite all the noise to the contrary, hard-coded dependencies are fine. James explains this a lot better than I can: https://www.jamesshore.com/v2/blog/2023/the-problem-with-dep...
52.
▲
by
loevborg
1y ago
Why is it a pain to inject dependencies manually? I think this is because people assume for some reason that a class isn't allowed to instantiate its own dependencies. If you lift that assumption, the problem kind of goes away. James S
53.
▲
by
loevborg
1y ago
Great talk, there's a lot I can relate to in here. I find this topic difficult to navigate because of the many trade-offs. One aspect that wasn't mentioned is temporal. A lot of the time, it makes sense to start with a "datab
54.
▲
by
loevborg
1y ago
The Chinese are warning their citizens about travel to the U.S. > China issued an alert warning its citizens and students of the potential risk of traveling in the U.S. and attending schools there. > > “Recently, due to the deterio
55.
▲
by
loevborg
2y ago
Yes, I think it's fair to say that nullables are a form of test doubles. But the approach is meaningfully different from other approaches as it avoids the problems that you get from using mocks in the narrow sense of the word: you'
56.
▲
by
loevborg
2y ago
I'll give it a try. The beauty of the nullable approach is that when you're testing the system under test (SUT), you're testing it together with its dependencies. Not just that - you're running the real production code o
57.
▲
by
loevborg
2y ago
I can say without exaggeration that this article changed the way I write software. Many of the concepts are interesting by themselves (embedded stubs, nullables, sociable tests) but together these patterns form a strong approach for writing
58.
▲
by
loevborg
2y ago
A truth bomb if I ever saw one - thanks for articulating this so clearly
59.
▲
by
loevborg
2y ago
Congrat on the announcement, this is a great achievement!
60.
▲
by
loevborg
2y ago
Wonderful report! So now we know how long it takes to solve all of the problems: 729 hrs. SICP is hard to work through even if you're just reading but wow, the exercises are on another level! I wonder how it compares to, say, a physics
More ›