Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chousuke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
chousuke
5y ago
Not just tables, but everything else as well. The shape and structure of your data is always defined within a schema, and a single database may have more than one. A PostgreSQL server can contain multiple databases; they are independent a
62.
▲
by
chousuke
5y ago
The problem with the hyperfocus is that it's kind of hard to control when it hits. My medication helps me focus on things I actually need to do instead of just bouncing between distractions and not making progress at anything. I deal w
63.
▲
by
chousuke
5y ago
Get ADHD meds. Appetite suppression is an effect. :P Joking aside, the path to losing weight is not dieting, but changing what and how you eat permanently. Weight is an equilibrium, and to reach a new equilibrium, you need to change someth
64.
▲
by
chousuke
5y ago
Huh? I don't know what you consider "Linux distros", but Fedora has had SB working and on by default for quite a while now.
65.
▲
by
chousuke
5y ago
If the entirety of C is in your head, would you take a challenge to list every operation that has undefined or implementation-defined behaviour?
66.
▲
by
chousuke
5y ago
Do people actually do that? I never bothered and made up my own method instead. 10x is trivial. 9x is 10x - x, which is also trivial. 5x is also trivial because it's 10x / 2. For the rest I just memorized whatever stuck the easie
67.
▲
by
chousuke
5y ago
Beating STS is a test of adaptability; the game is hard, and getting long winstreaks is not an easy feat (or winning at all). The game has enough variety that getting a streak of "favorable" seeds is not going to happen. You might
68.
▲
by
chousuke
5y ago
The biggest problem I've seen that keeps code from becoming simple is the fear of deleting it. Instead of understanding what a piece of code does and whether it could be pruned, people opt to extend it instead. Another one is bad
69.
▲
by
chousuke
5y ago
Removing a kernel driver does not break userspace. I mean, yes, your filesystem becomes inaccessible, but any programs that you could run if you could access that filesystem by some other means would still function. None of them depend on R
70.
▲
by
chousuke
5y ago
Kubernetes is not quite that easy though. Out of the box, you get basically no isolation between anything, and you still have to deal with security contexts and have processes in place for keeping your container images secure. If you use co
71.
▲
by
chousuke
5y ago
"git pull --rebase" is not "git pull", it's a different operation. I agree it would be a better default to rebase instead of merge though.
72.
▲
by
chousuke
5y ago
pull is "default" in that everyone gets taught to use it and you have to unlearn that once you realize it's not what you want most of the time.
73.
▲
by
chousuke
5y ago
"git pull" doesn't merge the "latest changes"; A pull is fetch+merge, and you can fetch from any repository, so a pull request is saying "please fetch commits from my repository and merge them". I think gi
74.
▲
by
chousuke
5y ago
Didn't look that closely; there seems to be variance depending on how large an individual dose is and how many doses are included. I suppose the "price of insulin" is ill-defined without mentioning the dosage.
75.
▲
by
chousuke
5y ago
That's not really a good counterpoint if the non-insured prices are patently insane. How on Earth is it justifiable for insulin to cost 300 dollars? Here it seems to be around 20-40 euros before the deduction you will get from our na
76.
▲
by
chousuke
5y ago
I think the core thing is that if you have a bug in the declarative code, it usually affects everything and can be fixed in the execution engine, or you didn't actually declare what you wanted but something else. By contrast, bugs in
77.
▲
by
chousuke
5y ago
I'm not sure I agree that history is "naturally" a series of diffs. Recording snapshots is natural enough for me; you just store whatever the state is at commit time. Diffs are generated by comparing two different states. No
78.
▲
by
chousuke
5y ago
YUM/DNF (and RPM itself) are very different beasts from what they used to be some time in the past. For some reason, updating repository metadata is still slow compared to APT, but installing packages is speedy enough. However, in term
79.
▲
by
chousuke
5y ago
Debian also has debconf, which attempts to be a universal configuration management system, so it'll generate and re-generate configuration files from templates. Unfortunately, in my experience it gets in my way more often than it helps
80.
▲
by
chousuke
5y ago
The article makes a pretty clear point that the go interfaces it talks about aren't as simple as they seem. The limitations of the language result in interfaces that are pretty easy to misuse due to unenforceable invariants, and not
81.
▲
by
chousuke
5y ago
Yeah, that's my experience too. Fedora generally just works unless I break it myself. This system has seen 5 or 6 major release upgrades and the only time I've had issues was when I let the root disk fill up mid-upgrade, and even
82.
▲
by
chousuke
5y ago
I've found Fedora to strike a good balance between working out-of-the-box and getting out of my way when I want to customize it. I can't say how well KDE works because I don't use it but it is supported. With the half-year re
83.
▲
by
chousuke
5y ago
The "easy" way to do this is to write your application using whatever is included in a stable Linux distribution. You get free, trivially applied security updates and a much lower chance of breakage. Optionally you can pay for sup
84.
▲
by
chousuke
5y ago
That advice does not resonate with me; I can definitely see the point, but the how of getting myself to do "something else" (whatever that could be) consistently escapes me. Thinking about how I might regret things I haven'
85.
▲
by
chousuke
5y ago
It's not that the ability to take risks is fundamentally different, it's just that if you're rich, the consequences of failure will be easier to deal with, allowing more risk-taking and thus more chances at success.
86.
▲
by
chousuke
5y ago
In almost all dynamic languages I know of for example. Way too easy to forget about error handling if you use values. Exceptions at least tend to cause noise. In languages like Java an Python, you can return error values but because you can
87.
▲
by
chousuke
5y ago
In some languages, the standard way to signal failure is to throw an exception. You can't really define exceptions as abnormal in those cases, because failures are part of normal operation; you can't expect them not to happen if y
88.
▲
by
chousuke
5y ago
I think errors and failures get often conflated. There are truly exceptional situations where your application can do nothing and will just have to abort (passing off the failure to a higher layer in the system) but often failures aren&#x
89.
▲
by
chousuke
5y ago
I suspect I'm similar; I think I actually like engaging with people whenever I get the chance to do so; I just have no idea how to get my anxiety out of the way so the opportunities are very rare.
90.
▲
by
chousuke
5y ago
How do you find things that you can put effort into? And even if I had something to put effort into, how do you actually do that? I pretty much constantly feel like I have no idea what I actually want to do, and when I think about possibly
More ›