Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Mawr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
751.
▲
by
Mawr
3y ago
The backlash isn't against proper DRY (concerned with single source of truth) but fake DRY (concerned with syntactically-similiar code). Immense disdain does accurately describe how I feel towards whatever it is happens in corporate co
752.
▲
by
Mawr
3y ago
> You avoid the two usual mistakes I see with current AI, either thinking it's already game over for us or that it's a nothing-burger. A lot of the latter is caused by the former. It is a nothing burger compared to the shocki
753.
▲
by
Mawr
3y ago
> A warning though: you'll never be able to enjoy space movies and shows, since they almost never present orbital mechanics correctly. Recommendation: The Expanse (TV)
754.
▲
by
Mawr
3y ago
That's not just a view or opinion, it's how learning works. Thanks for the link! When starting to learn a domain, you lack deep understanding of it, so you cannot make sound decisions without rules. But rules are always generaliza
755.
▲
by
Mawr
3y ago
To see how clean code affects users you need to look beyond its direct, first order effects. Clean code is less likely to be buggy, is more malleable and performs better. That's how clean code benefits users, they get to enjoy faster s
756.
▲
by
Mawr
3y ago
I very much doubt that. "The man barrier to translation was that, while at 14KLOC of Python reposurgeon was not especially large, the code is very dense. It’s a DSL that’s a structure editor for attributed DAGs — algorithmically compl
757.
▲
by
Mawr
3y ago
> There's no way to ask for a not-null pointer at the type level, so you have to check for nullity everywhere and good luck debugging those runtime panics. You can write a simple Option type yourself using generics [1]. It's no
758.
▲
by
Mawr
3y ago
It's a carefully chosen, deliberate design decision [1]. Interface boundaries should be stable. [1] https://steveklabnik.com/writing/rusts-golden-rule
759.
▲
by
Mawr
3y ago
When it comes to correctness, only the result matters, sure. But not so for performance and code understandability. Obscuring points of arbitrary code execution is awful. The getter/setter pattern is also bad, but a little less so sinc
760.
▲
by
Mawr
3y ago
> When I'm choosing an open source tool to use, then I want BZZT! You just said "I want" in relation to something you get for free. There are only two valid paths, enjoy stuff for free and expect nothing or pay up and expe
761.
▲
by
Mawr
3y ago
You can make such a type and it works well in practice. First we define the type, hiding the pointer/non-existent value: type Optional[Value any] struct { value Value exists bool } Then we expose it throug
762.
▲
by
Mawr
3y ago
> Skipping parentheses is directly lifted from Ruby, because I really like it. Older versions took this further by also letting you write `function arg1 arg2`, but I got rid of that to make parsing easier. It's especially nice so yo
763.
▲
by
Mawr
3y ago
Well what do you do when your only option is a car but you can't drive? Cycling infra helps: https://youtu.be/xSGx3HSjKDo?t=42 So does public transport: https://youtu.be/hK5r4dtFXGA?t=326 , https:&#x
764.
▲
by
Mawr
3y ago
And this is precisely why I fly the Supermaneuverable Sukhoi Su-35 Flanker E Advanced Fighter [1]. Your puny truck stands no chance. Man up and dogfight me. [1] https://www.youtube.com/watch?v=k7YVxLLIuGM
765.
▲
by
Mawr
3y ago
You're arguing against urban policies in cities from the point of view of rural areas. Nobody's trying to make remote villages walkable. A heavier vehicle is only safer in a crash when crashing into a smaller object. All you'
766.
▲
by
Mawr
3y ago
You're right, it's about freedom. The freedom of not having to use a car to get literally anywhere.
767.
▲
by
Mawr
3y ago
You're comparing living in a car dependant city vs living in car dependant suburbs. It's not going to be meaningfully different. You mention the constant noise, but what do you think causes it? To see what everyone means by car de
768.
▲
by
Mawr
3y ago
Ask the Dutch if they like their bicycles and the Japanese if they like their trains. They'll say yes. Funny that. People like the environment they grew up in, it's part of their identity. Americans are no different. Very few peop
769.
▲
by
Mawr
3y ago
I have terrible news. Your new, bigger and heavier vehicle damages the roads disproportionately more than the old one: https://en.wikipedia.org/wiki/Fourth_power_law
770.
▲
by
Mawr
3y ago
Here we see the most classic interviewing error: not understanding that there's a difference between a test and what's being tested. Will the data fit in memory? Well, of course it will, it's an interview... oh you expected m
771.
▲
by
Mawr
3y ago
A panic means your program has entered an invalid state. Continuing to run an arbitrarily broken program would be reckless, so crashing is the only option. Even if you could somehow prevent your program from crashing internally, it could be
772.
▲
by
Mawr
3y ago
Java is compiled to bytecode, for later compilation to machine code at runtime (JIT). Go is compiled AOT, straight to machine code. It makes no sense to compare them. Unless you meant that Java's AOT compilation is faster than Go'
773.
▲
by
Mawr
3y ago
Yeah, I didn't want to get that far into it. For example, today I visited a store, my favourite coffee shop, a pharmacy, and two grocery stores in the span of a little more than an hour. I didn't even cycle, I just walked. The fir
774.
▲
by
Mawr
3y ago
Sounds great, that's pretty much the goal - limiting car trips to the ones that actually require a car.
775.
▲
by
Mawr
3y ago
This depends on legislation, but in a lot of countries ebikes that don't require pedaling are illegal. From personal experience, riding on an ebike still provides plenty of exercise, certainly more than the literally zero that you get
776.
▲
by
Mawr
3y ago
- Ebikes let you cover great distances with little effort. - You can have someone ride on the backseat or in the cargo space of a cargo bike. [1] - You'd be hard pressed to come up with a shopping load that won't fit on a cargo bi
777.
▲
by
Mawr
3y ago
> How does it work for those who aren’t fully bodily abled? How does driving work for the many disabled people who can't drive? With cycling infra, their options are much, much better: mobility scooters, tricycles, ebikes, micro c
778.
▲
by
Mawr
3y ago
(self-correction) "Completely wrong" is too harsh. What I said only holds true when a player puts in the effort to get good at a game. Mindlessly playing Cookie Clicker while commuting will not yield many benefits.
779.
▲
by
Mawr
3y ago
I suppose it may seem simpler because we tend to anthropomorphize god, so "god simply snapped his fingers and everything came into existence" angle doesn't sound too complicated. But then you start asking questions like where
780.
▲
by
Mawr
3y ago
"SAE Level 3 DRIVE PILOT It initiates a radical paradigm shift that permits the vehicle to take over the dynamic driving task under certain conditions in heavy traffic or congestion situations on suitable sections of freeway currently
More ›