Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ngruhn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
151.
▲
by
ngruhn
8mo ago
unfortunate naming in retrospect
152.
▲
by
ngruhn
9mo ago
Newton poked a needle into his eye socket to study the resulting visual distortions. I'd rather lick the cancer juice.
153.
▲
by
ngruhn
9mo ago
> If you want to code by hand, then do it! No one's stopping you. There are few skills that are both fun and highly valued. It's disheartening if it stops being highly valued, even if you can still do it in private. > But we
154.
▲
by
ngruhn
9mo ago
By now I'm also convinced that structural typing is a better default. Nominal types are still useful to assign properties that are hard or impossible to encode with structure alone (e.g. string that is a valid email address) . But I ha
155.
▲
by
ngruhn
9mo ago
Same experience here. C# might have superior tooling, performance, whatever but the OOP baggage is too heavy. In theory you can write something else than a giant over-complicated, over-abstracted pile of OOP nonsense in C#, but every team I
156.
▲
by
ngruhn
9mo ago
I think he's joking
157.
▲
by
ngruhn
9mo ago
Well it's stateless (so far). If Claude endures any terror at least it's only episodic :P
158.
▲
by
ngruhn
9mo ago
He only violates the rule if he doesn't want the injection himself but gives it to others anyway.
159.
▲
by
ngruhn
9mo ago
Exactly, I think this is the prime candidate for a universal moral rule. Not sure if that helps with AI. Claude presumably doesn't mind getting waterboarded.
160.
▲
by
ngruhn
9mo ago
"My story escaping the corporate rat race. SIKE! It's just another product launch!" JK I think he means it ;)
161.
▲
by
ngruhn
9mo ago
Well said. The value of free speech is that all perspectives are heard, so that the best hopefully prevails. Social media is not doing that. You only see the shit you already agree with or the most ridiculous and extreme points on the other
162.
▲
by
ngruhn
9mo ago
I'm certainly visiting HN somewhat compulsively.
163.
▲
by
ngruhn
9mo ago
> kids are just going to find places to hang out online that are less moderated and less regulated and less safe. How is that not worse? Some will. But I bet a lot of kids "have to be" on Instagram/TikTok/etc because
164.
▲
by
ngruhn
9mo ago
I'm a bit torn on ad-hoc polymorphism. You can definitely do cool things with it. But, as others have pointed out, it does reduce type safety: https://cs-syd.eu/posts/2023-08-25-ad-hoc-polymorphism-erode...
165.
▲
by
ngruhn
9mo ago
> Had you simply rebased you would have lost the ability to separate the initial working implementation of D from the modifications required to reconcile it with M I'd say: cleaning that up is an advantage. Why keep that around? It
166.
▲
by
ngruhn
9mo ago
The point is that it's harder to reason over.
167.
▲
by
ngruhn
9mo ago
Maintaining linear history is arguably more work. But excessively non-linear history can be so confusing to reason over. Linear history is like reality: One past and many potential futures. With non-linear history, your past depends on &quo
168.
▲
by
ngruhn
10mo ago
Just because it's free? Let's talk again when all open source projects are funded and controlled by the state with zero competition between them and no consumer choice. Only one Linux distro, only one database, only one web framew
169.
▲
by
ngruhn
10mo ago
I know plenty of Java/C# developers who still suffer from this mind virus ;P
170.
▲
by
ngruhn
10mo ago
why did he write that?
171.
▲
by
ngruhn
10mo ago
not sure what you count RB/RE as, but they are absolutely broken as well in my experience.
172.
▲
by
ngruhn
10mo ago
> In typecript’s not so strict type system, you can cast anything to the `any` type. And from the `any` type, you can cast it to whichever type you wish Minor correction: this is really more an issue with the `as` operator. For example t
173.
▲
by
ngruhn
10mo ago
> If you get lucky the train arrives at the destination ahead of time I can't recall that this happened to me. The "lucky" scenario is when the connecting train is even more late so you can still catch it.
174.
▲
by
ngruhn
10mo ago
Very helpful. Thank you!
175.
▲
by
ngruhn
10mo ago
Consciousness is weird and nobody understands it. There is no good reason to assume that these systems have it. But there is also no good reason to rule it out.
176.
▲
by
ngruhn
10mo ago
Reminds of Brian Wills OOP rant video from 2016. He advocates exactly for this pattern: https://www.youtube.com/watch?v=QM1iUe6IofM&t=2235s
177.
▲
by
ngruhn
10mo ago
Actually no again, I think the browser can just not render those.
178.
▲
by
ngruhn
10mo ago
Thanks that's very helpful. That all requires that you model both server and client together, right? You can't just treat "connection established" as a nondeterministic event that just "happens" to the client a
179.
▲
by
ngruhn
10mo ago
It picks characters from the whole unicode range. Those strings should indeed match all regex constraints. You can add a constraint like: ^[\x21-\x7E]*$ To only choose printable ASCII characters. EDIT: no you're right, there i
180.
▲
by
ngruhn
10mo ago
To me the modeling is not that hard but I struggle to come up with properties/invariants. Take something like Google Docs. I'm sure they have some websocket protocol to handle collaborative text editing: - establish connection - d
More ›