Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
361.
▲
by
dgb23
1y ago
It's difficult (and ugly/foreign) to write fast JS and at some point you hit a wall. Incidentally that's why/how Wasm got created in the first place.
362.
▲
by
dgb23
1y ago
There are some highly competitive web applications that use Wasm and plenty of useful libraries. The web is definitely the primary use case.
363.
▲
by
dgb23
1y ago
It's not necessary to think about the data interface in terms of object orientation. You can think about it as being a composition of fields, which are individually stored in their respective array. (Slightly beside the point: Often th
364.
▲
by
dgb23
1y ago
It's not just school. There are a lot pieces of literature, tutorials/guides, discussions, papers I came across over the years that tell you something very useful _plus_ wrap everything either into OO (or sometimes FP) noise and t
365.
▲
by
dgb23
1y ago
> How else do you merge two structs if not using inheritance? By merging them. Structs are product types. If you merge them, you get a bigger product type. You don't need inheritance (ADTs) for that. The more useful point of inherit
366.
▲
by
dgb23
2y ago
The US has been an empire for a long time. They were just much more clever and effective about it and have been aligning themselves with western democracies. This seems to be ending now. Europe is being bombarded by fascist propaganda inter
367.
▲
by
dgb23
2y ago
That's fair and technically correct. But had Ukraine not agreed, they very likely wouldn't have been invaded. Meanwhile Putin was threatening to use nuclear weapons if western countries would have directly intervened. This threat
368.
▲
by
dgb23
2y ago
You're mixing things up. People have been critical of the US when their admin lied about weapons of mass destruction, did massive amounts of drone strikes on civilians and put people in a concentration camp. "World police" is
369.
▲
by
dgb23
2y ago
> It's annoying how we hold some to a higher standard, but ignore others doing worse. People use FF, _because_ they can hold it to a higher standard. That's the entire point.
370.
▲
by
dgb23
2y ago
I agree. But here are other ways of accretion of code inconsistencies: - Premature abstractions that are subsequently worked around around the edges. - Automation built on top of wishful thinking instead of how people actually prefer to wor
371.
▲
by
dgb23
2y ago
From personal experience, the most time consuming maintenance issues arise because of the following things: - third party dependencies, compatibility issues, breaking changes - code that is bloated with abstractions and indirection - perfor
372.
▲
by
dgb23
2y ago
Clean code, design patterns etc. were also picked up by teachers, professors and course instructors. I think these paradigms and patterns often operate on the wrong layer of abstraction, while mostly ignoring the things that matter the most
373.
▲
by
dgb23
2y ago
But you don’t invest in tech. You invest in companies. See: dotcom bubble, where most companies were bad bets. Even very established ones. If you think the crash will happen, then it might be cheaper to buy after the crash.
374.
▲
by
dgb23
2y ago
Asset inflation is also a global phenomenon.
375.
▲
by
dgb23
2y ago
That’s not how I interpret this quote. It’s about looking at the economy, the companies, the prices. Overvalued stock is people being greedy etc. It’s not about looking at what a specific person does. Quite the contrary. If some professiona
376.
▲
by
dgb23
2y ago
When people say “cash” in terms of investing, they sometimes mean bonds, gold etc.
377.
▲
by
dgb23
2y ago
The reason people are worried about this, is because he has been doing this right before crashes and recessions. Now, he doesn’t have a magic device that tells the future. But it’s also not hard to tell that we’re in a economically uncertai
378.
▲
by
dgb23
2y ago
Exactly. There’s always a question of power.
379.
▲
by
dgb23
2y ago
I think the worrying part is the debt/GDP ratio where the US is among the top 10. Also there's a high amount of private/household debt. I'm not from the US but I'm worried. The economic signs are worrying and a US t
380.
▲
by
dgb23
2y ago
There's a website that mockingly tracks the p2025 progress. I can't say whether it's accurate or fully honest. I assume it's exaggerating but is pointing at some red flags and parallels: https://www.project202
381.
▲
by
dgb23
2y ago
Looking at this mess from far away in Switzerland. I'm so glad we have a consensus democracy. We're a small country but I don't see any reason why a more moderate, consensus based system couldn't be adopted by larger one
382.
▲
by
dgb23
2y ago
I agree on React, but not necessarily on SQLite. It's made for use cases like this and it can handle quite a lot of data with a humble footprint. Ironically, if you use something browser native indexeddb plus JS instead, you are also l
383.
▲
by
dgb23
2y ago
From a consumer's perspective I want declaration. I want to know whether an image or video is largely generated by AI, especially when it comes to news. Images and video often imply that they are evidence of something actually happenin
384.
▲
by
dgb23
2y ago
This cracked me up. I love hearing those stories, also from my father, where he would talk about "we already did that in the 80's and it was called...", and then he would tell me about some obscure assembler tricks to patch b
385.
▲
by
dgb23
2y ago
Yes, but it would be dishonest to claim that only Republican admins drastically increased the deficit. Biden is an exception. I’m not comparing him to Trump either.
386.
▲
by
dgb23
2y ago
That is literally an example of household debt and irresponsible fiscal behavior. The trade deficit is based on many things. But ultimately the asymmetric purchasing power of one side leads to a higher deficit. If that purchasing power is d
387.
▲
by
dgb23
2y ago
You don’t even need a sophisticated defense against trickery and propaganda. The thing that works almost automatically, with exceptions, is decentralized power: - direct voting on issues by all citizens - compartmentalization of government
388.
▲
by
dgb23
2y ago
Also not surprisingly immigration increased after Brexit. It has always been a wedge issue and a red herring for those in power.
389.
▲
by
dgb23
2y ago
Bernie Sanders has been trying to tell you this since I can count. Corruption is fought by cutting off external, financial influence and lobbying and by putting the voters front and center. It is however _not_ fought by firing and going aft
390.
▲
by
dgb23
2y ago
Is this admin making the government smaller? So far they are expanding power, firing dissents and trying to reduce spending to humanitarian causes and education, to expand its hegemony, to agitate allies. They even attempt to increase means
More ›