Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dminik
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
271.
▲
by
dminik
1y ago
I'm sorry, but please do read the post. The middleware section is a setup. The real trouble starts when ejecting from Next and using a custom server still doesn't allow you to do anything because Next is a black box. I would have
272.
▲
by
dminik
1y ago
Yeah, I was actually recommended the instrumentation route by a commenter on Reddit. I spent a similar amount of time setting up opentelemetry with Next and while it would have been titled differently, I would have likely still written a bl
273.
▲
by
dminik
1y ago
Nope, this doesn't work either.
274.
▲
by
dminik
1y ago
But window.location.href is already an overloaded setter. It schedules a page navigation.
275.
▲
by
dminik
1y ago
Ok, while it's cool that the TigerBeetle link now shows no matches (down from two) the comment now feels wrong. Anyways, you guys left in the `!= error.` checks, so here's some snapshots that hopefully won't be invalidated :P
276.
▲
by
dminik
1y ago
Both the Zig standard library as well as several third party projects do check errors like this. I already commented on Zig compiler/stdlib code itself, but here's Tigerbeetle and Bun, the two biggest(?) Zig codebases: https:
277.
▲
by
dminik
1y ago
You say never, but even the Zig stdlib does this occasionally. Like here in `std/tar.zig`: https://github.com/ziglang/zig/blob/50edad37ba745502174e49af... Or here in `main.zig`: https://github
278.
▲
by
dminik
1y ago
That doesn't seem that obvious to me. You could have a setter that just calls exit and terminates the whole program.
279.
▲
by
dminik
1y ago
Could you elaborate why you think so? As far as I can tell, the file was a fully valid XML file. The issue is that doesn't really tell you (or guarantee) much. There's just no one specific way to do a thing.
280.
▲
by
dminik
1y ago
I had the displeasure of parsing XML documents (into Rust) recently. I don't ever want to do this again. JSON for all it's flaws is beautifully simple in comparison. A number is either a number or the document is invalid. Arrays a
281.
▲
by
dminik
1y ago
I'm sorry, but security and correctness should be a priority. You should never need to add a "don't write bugs pls" to prompts.
282.
▲
by
dminik
1y ago
Kind of. Valve started actively porting their stuff in 2013, around the time Microsoft released Windows 8 and rumors started flying around that you'll only be able to use Windows Store to download apps. So, way over 5 years. But time f
283.
▲
by
dminik
1y ago
Every Valve game released has a native Linux version. That includes every counter strike game.
284.
▲
by
dminik
1y ago
Yes. And by "do type inference just the same as the compiler", that includes having to do comptime execution. Plus with no interfaces/traits/concepts and comptime being mostly any-typed makes it difficult to have helpful
285.
▲
by
dminik
1y ago
Ahh, a perfect example of why Zig is uninteresting to me: https://github.com/ziglang/zig/issues/5038#issuecomment-2441... A language hostile to LSP/intellisense.
286.
▲
by
dminik
1y ago
I'm not impressed. On mobile, the docs are completely broken and unreadable. Visiting a different docs subpage breaks the back button. Firefox mobile seems to think the entire page is a link. This means I can't highlight text for
287.
▲
by
dminik
1y ago
Bitcoin is only pseudonymous. Inside the network everything is public and traceable, but not personally identifiable. Where you lose anonymity is with inflows and outflows to the real world. You may only be able to buy cryptocurrency from a
288.
▲
by
dminik
1y ago
Not getting an error on "1" + 2 is very bad if that's not what you wanted to do. Agreed. Getting an error on "Value: " + 2 is very annoying if that's what you wanted to do. The solution here is Static typing, n
289.
▲
by
dminik
1y ago
I mean, if you define weak like that, then yeah. But also, what languages are you left with? Assembly? Then again, it does fit with your definition of popular being popular 45 years ago. Tbh, I'm not sure if smalltalk was ever even pop
290.
▲
by
dminik
1y ago
Please, smalltalk and common lisp don't qualify as popular languages. I don't want to look at TIOBE, so let's look at the stack overflow survey from 2024. https://survey.stackoverflow.co/2024/technology#a
291.
▲
by
dminik
1y ago
I mean, it is a kind of a bug that is easy to prevent with a static type checking, but also one that will always (or almost always) get triggered. Log lines are whatever, but a system that goes into a crash loop or fails on most requests is
292.
▲
by
dminik
1y ago
A casual look at the history of basically anything will tell you that the best option isn't necessarily always the one that succeeds.
293.
▲
by
dminik
1y ago
Tbh, the strongly typed and dynamically typed combination seems like the worst option. You get zero help and punished hard for failing.
294.
▲
by
dminik
1y ago
I reread the conclusion. I apologize for jumping to conclusions so fast but ... You specify like 4 approaches: 1. Tailwind - apparently awful 2. Regular stylesheets - also not good 3. Inline Styles - some flaws 4. CSS-in-JS - minimal flaws
295.
▲
by
dminik
1y ago
I can't take this article seriously since the recommendation is to use CSS-in-JS. Perhaps the worst CSS related invention ever, easily surpassing tailwind in it's awfulness. Just use CSS modules. Just use CSS modules.
296.
▲
by
dminik
1y ago
One would think that with all of the time AI is clearly saving you, you could spare some of it for us uneducated peasants.
297.
▲
by
dminik
1y ago
America innovates by using Korean screens, British CPU architecture, Japanese cameras, Chinese manufacturing, Australian invented Wi-Fi, ... God the US superiority complex can be insufferable.
298.
▲
by
dminik
1y ago
I'm sorry but if I read > most modern apps rely on some form of dependency injection then plain parameter passing is not what I'm thinking of. Especially not manually doing that to hundreds or thousands of calls.
299.
▲
by
dminik
1y ago
I think in practice the caller still needs to know. If I call `a.foo()` but `a` has and is using a stackless coroutine IO but the caller is being executed from a green thread IO then as was said before, I'm hitting UB. But, I do like t
300.
▲
by
dminik
1y ago
Also, I do find it funny that we went from "Zig has completely defeated function coloring" to "Zig has colored objects".
More ›