Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
diarrhea
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
181.
▲
by
diarrhea
3y ago
What are the pros? Even in Python, where such an approach is not unheard of, it sounds horrendous. Dataclasses and pydantic became popular for a reason.
182.
▲
by
diarrhea
3y ago
It’s true. We don’t. But does it matter? Is there demand to change this?
183.
▲
by
diarrhea
3y ago
The effect is extremely strong. One factor is that almost everything works identically between work and personal environments. Same git, same CI, same settings, same dependabot, same PRs, same everything. My personal open source projects ge
184.
▲
by
diarrhea
3y ago
Are you sure this is related? It’s the same author and general topic of IT security, but that’s where similarity seems to end.
185.
▲
by
diarrhea
3y ago
> Manual routing, firewall or certificate management is a canary to me in 2023 Well said. I’d agree that for most scenarios, one never has to touch these. That’s one of the actual selling points of cloud.
186.
▲
by
diarrhea
3y ago
All of that is possible with plain old REST APIs as well. For example, FastAPI and pydantic will do this sort of parsing and validating at the application edge.
187.
▲
by
diarrhea
3y ago
Two observations: 8KB is a small amount of data. Many apps will need more, so will not be able to blanket block these. Even 64k, what appears to be the absolute limit, might not be enough. Continuing, not blocking, is the default when not u
188.
▲
by
diarrhea
3y ago
They have a `FactoryBean`! I always assumed that was just a meme. Must be a serious concept then. https://github.com/infobip/infobip-spring-data-querydsl/blob...
189.
▲
by
diarrhea
3y ago
I have to admit: I am terrified of WET code. I do stop short of introducing abstraction monstrosities, but I usually do create what others would call unnecessary abstractions, to stay DRY. Why? Because I tend to write all my code such that
190.
▲
by
diarrhea
3y ago
Interesting take. Very elitist and not rooted in reality though, I must say. The overwhelming majority of code out there is in languages more verbose than strictly necessary, and less expressive than possible. So in real life, yes AI genera
191.
▲
by
diarrhea
3y ago
Good point. One scenario comes to mind: multiple services under the same IP. “cutecats.com” and “hotintercourse.net” might both resolve to the same IP, but a reverse proxy resolves requests differently depending on the host. Then, knowing t
192.
▲
by
diarrhea
3y ago
Wishing that eco system the best then! ADTs and pattern matching are the best thing since sliced bread. Sometimes I wonder: will they become table stakes in the future, or will we wake up to their (currently unknown) downsides in a decade o
193.
▲
by
diarrhea
3y ago
Generics and iterators are over-engineering territory? Oh man…
194.
▲
by
diarrhea
3y ago
Not familiar with Java, but C# has sealed classes as well. They are not the real deal. You can fake your way around to achieve something resembling sum types, but the deep language integration like in Rust is simply unattainable. For exampl
195.
▲
Migrating SecureDrop's PGP Back End from GnuPG to Sequoia
(securedrop.org)
2 points
by
diarrhea
3y ago
|
0 comments
196.
▲
by
diarrhea
3y ago
> the single largest advancement to humanity, even bigger than the moon landing Such an incredibly American thing to say, with a healthy portion of recency bias sprinkled on top. This is only beaten by that one time someone online refer
197.
▲
by
diarrhea
3y ago
I am slowly led to believe there’s a chasm. On one hand, IT guys in classic sysadmin roles, with perhaps some newly added responsibilities, earning them the DevOps moniker. On the other hand, actual software people, capable of more than man
198.
▲
by
diarrhea
3y ago
A whole decade of handover, holy shit!
199.
▲
by
diarrhea
3y ago
Just a handful of (binary or more) attributes such as that one are enough to tell apart a user from thousands of others.
200.
▲
by
diarrhea
3y ago
As for helping the type checker, try typing’s TypeGuard. They help the type checker reason about situations such as “if this is None, this other thing is that”.
201.
▲
by
diarrhea
3y ago
Just shy of 50% of coin flips will be worse than a coin flip.
202.
▲
by
diarrhea
3y ago
https://news.ycombinator.com/item?id=9224
203.
▲
by
diarrhea
3y ago
Yeah, that’s just wrong on both accounts. Rust is of course statically typed as well and GC has almost nothing to do with the type system.
204.
▲
by
diarrhea
3y ago
I wonder: can fast, special-case JSON parsers be dynamically autogenerated from JSON Schemas? Perhaps some macro-ridden Rust monstrosity that spits out specialised parsers at compile time, dynamically…
205.
▲
by
diarrhea
3y ago
Microsoft already does that, and its Antimalware agent is the bane of my existence. It will see idle machines spin up their fans to full and drain batteries within a short few hours. No thank you!
206.
▲
by
diarrhea
3y ago
Good point! I remember that being a lint in Visual Studio. A very valid one. In contrast, in Python, initial use exhausts generators. Subsequent iterations turns up empty. A gotcha, but also a way to highlight misuse, as it should show up i
207.
▲
by
diarrhea
3y ago
Good luck firing that many employees when such strong labour laws are intact, and it’s such a large company. Imagine if that doesn’t get through. They’ll be weighed down by tons of (currently perceived as such) dead weight. It’ll be a huge
208.
▲
by
diarrhea
3y ago
A very Hacker-News complaint, if I’ve ever seen one.
209.
▲
by
diarrhea
3y ago
One guess: memory leaks from circular references. It’s ref counting, and doesn’t do roots checking.
210.
▲
by
diarrhea
3y ago
Experienced point 6 with the GitHub API. “Repository” is a core Git(Hub) primitive, and across the entire API surface (they have an OpenAPI spec, 40 MB in size total), last I counted it was 48 different versions of repository. For example,
More ›