Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chousuke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
121.
▲
by
chousuke
5y ago
If you're packaging RPMs, what you need is approximately to change a few %configure macros to the corresponding %meson macros. Though X.org is large enough that there will probably be some weirdness. If your software is distributed as
122.
▲
by
chousuke
5y ago
Cron is not a very good task runner on its own if you have lots of hosts, care that your tasks actually run, care that they succeed, need sequencing or need to ensure that multiple instances don't conflict. cron is fine as part of a ta
123.
▲
by
chousuke
5y ago
It's easy to fall into the trap of thinking you need to make things complicated because it's the "correct" way to do something. I once rewrote an internal tool that used AJAX requests to fetch data asynchronously for &qu
124.
▲
by
chousuke
5y ago
C is hard because despite being a "small" language, it's full of all kinds of unintuitive rules and behaviour for beginners to stumble upon, and the language provides next to no assistance in avoiding the pitfalls. People hav
125.
▲
by
chousuke
5y ago
From your description it sounds like you've implemented in PostgreSQL something akin to Haskell's IO, which is also a datastructure representing operations, with ordering enforced by it beind a monad. That sounds pretty cool.
126.
▲
by
chousuke
5y ago
I suppose I should have phrased my point differently. I think having that kind of a feature as a side-effect of how the whole thing works isn't particularly good for security and usability, though I understand why you might need the fl
127.
▲
by
chousuke
5y ago
But there's no value in IPsec being like a piano. Continuing the analogue, nearly everyone would be playing the exact same handful of songs in the exact same way and if they don't, they're doing it wrong. Why on earth do you
128.
▲
by
chousuke
5y ago
What's also bad about IPsec is that most of its features are useless in the vast majority of use cases. Some are probably even actively harmful to try to use. For example, it's possible to use static encryption keys for a securi
129.
▲
by
chousuke
5y ago
What does it hurt to tell someone about a feature they could be using, especially if you're mentoring? If they don't want to, they'll tell you and that's fine, but they need to be aware of it in the first place to make t
130.
▲
by
chousuke
5y ago
I think when you begin to work on something, there's the phase where you are "stuck" and need understand the problem well enough to generate an acceptable initial idea to get started. To me, this is the draining part. However
131.
▲
by
chousuke
5y ago
"Intuitive" is often a code word for "familiar to me". A full-blown general purpose OS cannot be completely intuitive; the user always needs something to build from. For what it's worth, I think OpenBSD is intui
132.
▲
by
chousuke
5y ago
I recommend giving OpenBSD a try over the others. It's just... a clean OS, and the base system is extremely well documented; to the point that I think it's the only OS you can learn inside out without ever using Google. OpenBSD mi
133.
▲
by
chousuke
5y ago
I would definitely argue that public interfaces should not be copyrightable, since you need to be able to freely reimplement them to interoperate, which in my opinion should be preferred over granting even temporary monopolies to software i
134.
▲
by
chousuke
5y ago
That's not really answering the question. How do you define what the "one thing" that the service handles actually is? I have this half-serious opinion that interface design is the hard (technical) part of software developmen
135.
▲
by
chousuke
5y ago
I'm fortunate enough to live somewhere with no venomous or large spiders, so I never feel the need to kill them; they are quiet and eat much more annoying bugs, so at worst I'll move them outside if any end up inside my home, but
136.
▲
by
chousuke
5y ago
I think supporting multiple databases is an antipattern for most software (open source or not). Being able to change the database driver does not qualify as support. If you really do want to support multiple databases, you need to write cod
137.
▲
by
chousuke
5y ago
There's a difference between an ORM and a query builder. Full-blown ORMs often allow you to pretend that all you have are "regular" objects that just happen to do database queries when you access them; and that's the kin
138.
▲
by
chousuke
5y ago
I default to choosing either SQLite or PostgreSQL until there's sufficient reason to think about using something else. I think it's pretty rare to build an application where you know you will have scalability issues with a relatio
139.
▲
by
chousuke
5y ago
I'm a bit late replying, but I just want to clarify my stance on the last paragraph; I don't think you need to store everything in the cluster in version control if they're created automatically as a result of applying the
140.
▲
by
chousuke
5y ago
IaC is faster than doing things manually. If you're spending weeks on it, that sounds to me like you either haven't yet practiced enough or you're working in an environment that's already a mess. Once you have a bit of
141.
▲
by
chousuke
5y ago
I'm pretty similar with coffee; all you really need is a decent grinder and reasonable control over water temperature, and immersion brews (like the Aeropress) are really hard to completely screw up, so you can focus on buying good qua
142.
▲
by
chousuke
5y ago
Thanks for the detailed response. I was aware Kubernetes has hooks for pretty much everything, so getting details on how they are used in practice is interesting. Mostly I'm concerned about preventing administrator mistakes; if you hav
143.
▲
by
chousuke
5y ago
How do you prevent someone (or something) from accidentally draining a node hosting a database that does not have a synchronised replica? Kubernetes is neat, but destroying stuff is so easy (and the context mechanism is just begging for hum
144.
▲
by
chousuke
5y ago
So environment variables on Linux are tricky business; basically, the answer depends on how your desktop session is set up. Usually, PAM will load environment variables during session initialization; I'm pretty sure that's the thi
145.
▲
by
chousuke
5y ago
These things aren't magical. You will have some downtime because your connection to the database will be interrupted (after all, it just died, no way around it), and depending on your configuration, you may lose some data; you need at
146.
▲
by
chousuke
5y ago
Terraform state files are sort of a workaround for the fact that it's not really feasible to discover the complete state of Terraform-managed infrastructure via the APIs only because it's not always possible to have an unambiguous
147.
▲
by
chousuke
5y ago
Your script doesn't even do the same thing. You are importing a library that implements SMTP, which is missing the point. The AWK script doesn't need libraries, so it can actually be useful in places where you have awk but not Pyt
148.
▲
by
chousuke
5y ago
To me, this feature looks more like a convenience wrapper than anything else. Maybe it actually was useful for something and got implemented for that reason. You pretty much get everything it needs "for free" with the standard SQL
149.
▲
by
chousuke
5y ago
There's honestly very little reason not to run VMs nowadays. It's like using LVM for disks on Linux; virtually zero overhead and you'll be happy you went with it when you do need the flexibility it provides. I'd pretty
150.
▲
by
chousuke
5y ago
Static linking also protects you from security patches. I like writing low-dependency software, but what that means is that I pick a distribution to build on and use their packages. If a library is not packaged, it has to be really good f
More ›