Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben509
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
ben509
6y ago
But then you're essentially defining racism as "anything that gets you in trouble." It's perfectly reasonable to adjust coming anywhere close to discussing race as a strategy to avoid getting fired, but it's insane
92.
▲
by
ben509
6y ago
Most of a supermarket's layout is determined by hard requirements like refrigeration, stocking heavy items and handling payments. If you're wondering why, for instance, the milk is in the back, it's because it needs to stay c
93.
▲
by
ben509
6y ago
I think cultural appropriation contains two elements. One is the concern about Western colonailism, which I can't address because it gets into critical race theory and that's a huge subject I don't completely follow. You can
94.
▲
by
ben509
6y ago
> Nobody actually reads Mein Kampf ... It was (and still is) about the personality cult of a strong man and his message of power via blaming and oppression of minority groups, not the actual words themselves. That's precisely why pe
95.
▲
by
ben509
6y ago
There is the difficulty that you don't actually have zero, you have postive and negative infinitesimal.
96.
▲
by
ben509
6y ago
They're equal. But, copysign(1.0, -0.0) == -1.0
97.
▲
by
ben509
6y ago
0 does double duty as meaning itself and to indicate underflow due to multiplying very small numbers. If you have a function that can experience underflow it can be useful to preserve the sign of the underflowing value. Otherwise you'd
98.
▲
by
ben509
6y ago
The major choices that avoid braces are indentation and keywords. Indentation's upsides are less line noise. In my opion, while there's less noise, there's less symmetry, so it's a wash on the beauty count. Indentation b
99.
▲
by
ben509
6y ago
My senior moment came when we were talking about graphics and I mentioned some various things and CGA. My coworkers let me ramble a bit and then one politely asked what CGA was.
100.
▲
by
ben509
6y ago
> (e.g. people wasting hours trying to write a "function" that takes an enum and outputs another enum w/ a fixed prefix... Metaprogramming shouldn't suck so much that this takes hours.
101.
▲
by
ben509
6y ago
> red flag is a bad description, because he ended up being self-reflective and looking deeper No, red flag is fair since it's just a warning sign. Even if we take it as a mark on the guy, it's true that he ought to get outside
102.
▲
by
ben509
6y ago
Besides the fact that you have to walk the string just to find the length of it... Null-terminated strings try to save space by encoding the string length by convention. This can fail due to off-by-one errors, mistakenly allocating a fixed
103.
▲
by
ben509
6y ago
> Really? It's hard to parse the year?? Is it so hard to write "it is?" Nevertheless, you used a contraction. You did so entirely unconsciously because that's how langauge works.
104.
▲
by
ben509
6y ago
Yup. There are no bad reasons to not pursue a relationship, because anything that avoids heartache and misery is implicitly a good reason.
105.
▲
by
ben509
6y ago
And the issue of whether people generally care misses the point. A man wants her to find him attractive.
106.
▲
by
ben509
6y ago
A lot of language-fixing slacktivism easily becomes a trend because it's highly visible and requires no genuine effort. It's complete bullshit, though. This particular bullshit is awful since it trivializes all this historic pain
107.
▲
by
ben509
6y ago
> I asked, but somehow she didn’t feel like changing her name. That's nuts. It's just a bit of paperwork!
108.
▲
by
ben509
6y ago
I think you have to work "we are baddies" into your entire system of thought. The best example I can think of is Judeo-Christian thinking has the idea built in through the fall from paradise, Cain killing Abel, and broadly the rep
109.
▲
by
ben509
6y ago
I think a discussion platform is a complicated dynamic system. Social media has various algorithms and even layout decisions (how comments are sorted) that promotes stuff that gets engagement. Then they have a mess of filters that tries to
110.
▲
by
ben509
6y ago
It's not an inability to believe it's true. It's more being burnt out by ritualized concern. It comes from seeing something awful that we're all supposed to be concerned about, listening to people beat their chest about
111.
▲
by
ben509
6y ago
> It's interesting how it's easier to change time than to change the hours in which we work. I think the main pain point would be customers being confused as to when companies are open. This doesn't even work well with sma
112.
▲
by
ben509
6y ago
It will be to stick your constants in a module and use module.constant to match them. Or use an enum. Or hang them off a class.
113.
▲
by
ben509
6y ago
A separate statement doesn't compose with complex patterns. I'd prefer always requiring the walrus operator to capture: match response: case (not_found, msg := _): return f"Not found: {msg}" cas
114.
▲
by
ben509
6y ago
I like it. I was just trying to do some simple "parsing" of a pyproject.toml file. So I wrote the standard crud of, "is it a dictionary? If so, does it have a specific key? What if it's just a string? If so, ..." Ha
115.
▲
by
ben509
6y ago
The two-space compromise might work: def handle(command): match command.split(): case ["quit"]: print("Goodbye!") quit_game() case ["look"]:
116.
▲
by
ben509
6y ago
It made a strangely compelling argument that it would be fine if it forked off a subprocess to monitor itself.
117.
▲
by
ben509
6y ago
> But why does a position with greater risk necessitate greater compensation? There are various methods to address risk: 1. Avoid the risk 2. Reduce the risk 3. Transfer the risk 4. Accept the risk When you buy insurance, you're doi
118.
▲
by
ben509
6y ago
I didn't get the ZFS complaint either. Countless years of development went into OOP. Lots of great software has been written with it. It's still a buzzword.
119.
▲
by
ben509
6y ago
The "you are the product" assumption alone is probably the strongest reason to never offer a free service.
120.
▲
by
ben509
6y ago
I think trials can be improved for services where you can discern whether the user is directly interacting with it. You give them 100 days of usage, and then decrement a counter when they interact with the site the first time each day.
More ›