Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hxtk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
hxtk
9y ago
Not only is it not idiomatic; it's functionally incorrect. An iterable containing `[]`, `None`, or any other value that is false in a boolean context would return true. They've assumed that `(0 -> false) -> (false -> 0)`,
152.
▲
by
hxtk
9y ago
I'd imagine it's a large codebase and they're trying to maximize the number of people that can access it while minimizing the number of supported browsers. There are very few platforms where firefox is available and Chrom(e|i
153.
▲
by
hxtk
9y ago
"It just works" is great and imo arguably the ideal design in a lot of use cases. The problem here is that the code wasn't adequately tested. It "just works" in the circumstances that the app designers thought of wh
154.
▲
by
hxtk
9y ago
I thought about outlook, too, but for the opposite reason: their web client overrides ctrl+r, making the way I force a refresh incongruous with the rest of the web.
155.
▲
by
hxtk
9y ago
People actually used to do this. Back when most street lighting came from sodium lamps, you could eliminate light pollution almost completely with a pair of glasses intended for soda-lime glass blowing.
156.
▲
by
hxtk
9y ago
Have it trigger on a voltage threshold. 3 phase means you're hitting 0V 6x per cycle so that'd bring the pwm up to 720Hz.
157.
▲
by
hxtk
9y ago
It seems like the simplest thing, then, would be to use a secret that is too short in your documentation and make note of both the fact that it's too short and what the requirements are for a good secret. Of course, this runs the risk
158.
▲
by
hxtk
9y ago
> "definition of done" My first programming job had exactly this problem. Spec started at "connect these two services together using webhooks for $700" and creeped its way up to "build a database-backed web servi
159.
▲
by
hxtk
9y ago
I don't think that it was a specific design decision to make '==' be a pointer comparison instead of value comparison. It's simply a consequence of the much more general design decision that operators cannot be overloade
160.
▲
by
hxtk
9y ago
Just say it's for Project Euler. That way they just accept that any optimizations you're asking for actually need to happen.
161.
▲
by
hxtk
9y ago
I'm currently working for a real estate startup and I have to seriously twist their arm to convince them we should authenticate private api requests at all, let alone run vulnerability testing.