Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kccqzy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
541.
▲
by
kccqzy
7mo ago
I just don’t agree that it always becomes a state machine hell. I even did this in C++03 code before lambdas. And honestly, because it was easy to write careless spaghetti code, it required a lot more upfront thought into code organization
542.
▲
by
kccqzy
7mo ago
That’s actually a recent phenomenon. Before the age of electronics most household appliances either worked with AC or DC equally well (like incandescent bulbs) or worked well with AC only given the technology at the time (think anything wit
543.
▲
by
kccqzy
7mo ago
GM’s Cadillac is doing alright with EVs: the Optiq, the Lyriq, the Vistiq are all selling well.
544.
▲
by
kccqzy
7mo ago
> It's extremely rare that Not when a language embraces currying fully and then you find that it’s used all the fucking time. It’s really simple as that: a language makes the currying syntax easy, and programmers use it all the time
545.
▲
by
kccqzy
7mo ago
Come on, just write let f :: Int = foobinade a b And the compiler immediately tells you that you are wrong: your type annotation does not unify with compiler’s inferred type. And if you think this is verbose, well many traditional
546.
▲
by
kccqzy
7mo ago
It is a job. You need to manage and select tenants and handle repairs and maintenance. Managing one rental property is like a part-time job. But W-2 jobs may be part time too. It’s not like an REIT. There are no tax consequences for quittin
547.
▲
by
kccqzy
7mo ago
No the regulatory requirements and emission standards have nothing to do with affordability. The only reason is just economies of scale. In fact regulatory requirements help because companies like Tesla historically sold their emission cred
548.
▲
by
kccqzy
7mo ago
So why hasn’t that been done? Have some representatives and senators set limits on almond exports. Surely they wouldn’t be voted out in the next election given how farmers are outnumbered.
549.
▲
by
kccqzy
7mo ago
> Everyone knows how depreciation schedule works Everyone is way too strong a word. Unlike a regular job, there is no course or qualification needed to become a landlord. In the Bay Area I know lots of people in tech who bought a house,
550.
▲
by
kccqzy
7mo ago
This is exactly why many people became landlords, but changed their mind and found that there is no way out. You might decide one day to buy some investment property, but after a few years when you lost interest in the pursuit, quitting wou
551.
▲
by
kccqzy
7mo ago
That sounds like the timer coalescing feature introduced in OS X 10.9 I think.
552.
▲
by
kccqzy
8mo ago
Nah all the `if err != nil` is just so much noise they obscures the real logic. And for the longest time it didn’t have generics to write map/filter/reduce on slices, forcing people to use loops where the intention is less clear.
553.
▲
by
kccqzy
8mo ago
You ask a machine to write your code and you still care about being easy to read? In my experience the people who care the most about code readability tend to be the people most opinionated on having the right abstractions, which are histor
554.
▲
by
kccqzy
8mo ago
Python does not take backwards compatibility seriously. 2 to 3 is a big compatibility break. But things like `map(None, seq1, seq2)` also broke; such deliberate compatibility break is motivated by no more than aesthetic purity.
555.
▲
by
kccqzy
8mo ago
It’s a variant of a knapsack problem. But neither Claude nor I initially realized it was a knapsack problem: it became clear only after the solution was found and proved.
556.
▲
by
kccqzy
8mo ago
It was the other way around. Claude gave me an algorithm. I found it fishy. So I specifically constructed a counterexample in response to Claude’s algorithm. Of course when I gave that to Claude, Claude changed the algorithm. But if I didn’
557.
▲
by
kccqzy
8mo ago
I have a relaxed rule for myself: if I’m using the == operator on floats, I must write a comment explaining why. I use == for maybe once a year.
558.
▲
by
kccqzy
8mo ago
They shouldn’t “memorize” this per se, but it should take them only a few seconds to work out in their head.
559.
▲
by
kccqzy
8mo ago
Because AI still hallucinates. Since you mentioned algorithms, today for fun I decided to ask Claude a pretty difficult algorithm problem. Claude confidently told me a greedy solution is enough, before I told Claude a counterexample that ma
560.
▲
by
kccqzy
8mo ago
> Assuming[x == 0, Simplify[Sin[x] == x]] Mathematica returns True. And any middle schooler will also tell you it's true. The only reasonable interpretation of "infinitely small" is that it's zero.
561.
▲
by
kccqzy
8mo ago
Do you want your LLM to generate one hundred lines of code to do things using open source libraries, or five lines in Mathematica? This is actually subjective. For the vibe coding folks, they don’t care if the code is long winded and verbos
562.
▲
by
kccqzy
8mo ago
A lot of problems look like this. A while ago I was working on a calendar event optimization (think optimizing “every Monday from Jan 1, 2026 to March 10, 2026” + “every Monday from March 15, 2026 to March 31, 2026” to simply “every Monday
563.
▲
by
kccqzy
8mo ago
That’s the least of their problems. The best computer science textbooks are published first and foremost in English and only translated belatedly. The research papers are in English and not often translated. Even the manuals of both commerc
564.
▲
by
kccqzy
8mo ago
As a kid, I grew up before laptops became hugely popular, so instinctively my thought was, of course a MacBook (indeed any MacBook) is not the computer for a kid; the Mac mini or an iMac is. The author started with a 2006 Core 2 Duo iMac in
565.
▲
by
kccqzy
8mo ago
I still need to talk to a real bank teller before withdrawing $10,000 in cash. Above a certain amount my bank requires an ID in addition to a debit card and a PIN.
566.
▲
by
kccqzy
8mo ago
Some countries prioritize having low unemployment numbers, because they believe that unemployment leads to unrest. Governments can choose to subsidize the cost of labor to achieve this. Also I think it is preposterous to claim that these pe
567.
▲
by
kccqzy
8mo ago
Almost the entirety of the technology world is English-native. That ship has sailed a long time ago. One can’t learn about any new technology without English, whether it’s a new algorithm, a new library, or a new SaaS service. I don’t think
568.
▲
by
kccqzy
8mo ago
There is very significant overlap between browsers’ implementation of JS and WASM. For example in V8, the TurboFan compiler works for both JS and WASM. Compilation aside, all the sandboxing work done on JS apply to WASM too. This isn’t NaCl
569.
▲
by
kccqzy
8mo ago
> It might be worthwhile to ensure that a web app you're developing will work on a less powerful machine If that’s your goal this machine is still too powerful. Web apps generally care about single thread performance. The machine ha
570.
▲
by
kccqzy
8mo ago
React doesn’t really force you to make your props immutable data. Using mutable data with React is allowed and just as error prone as elsewhere. But certainly you are encouraged to use something like https://immutable-js.com tog
More ›