Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orisho
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
61.
▲
by
orisho
6y ago
I'm thoroughly disappointed.
62.
▲
by
orisho
6y ago
Most software expect an error of some sort (e.g. file not found, permissions) and do nothing with it except print it. This would be sane behavior with a NFS timeout. Let the user retry rather than hanging forever. Consider a startup script
63.
▲
by
orisho
6y ago
In Go, it is a single code path. Contexts can be canceled and they also come with propagating timeouts. The timeouts simply trigger a cancellation, so the only code path is handling cancellation. There's nothing complicated about it, s
64.
▲
by
orisho
6y ago
You can give it a shot and then do a factory reset if anything stops working.
65.
▲
by
orisho
6y ago
An assertion, I think, would crash the program. In that sense implementing them is simple - just panic when the condition is violated. Go prefers plain checks that return errors, though. Panics should be used for truly unexpected conditions
66.
▲
by
orisho
6y ago
Sure, it's simple. But you would have to be able to modify the container settings anyway. For all practical uses, and certainly in my case, you could just make it run a different image at that point. Or copy another executable into the
67.
▲
by
orisho
6y ago
If you're already running another process in the container, you could do whatever you want anyway.
68.
▲
by
orisho
6y ago
It was disabled by default, and could only be enabled using environment variables. Even when enabled, the whole thing ran in Docker and the socket was bound to loopback, so you could only connect to it from within the container. When the in
69.
▲
by
orisho
6y ago
At a previous workplace we had a few places in the code which used the word backdoor. It was not an actual backdoor though, but merely a debugging server that could be enabled and allowed you to inspect internal state during runtime. At som
70.
▲
by
orisho
6y ago
There just isn't any good competition. As with anything else, lack of competition stifles innovation. Why should they spend engineer time on this when it sells just as well?
71.
▲
by
orisho
6y ago
NXDOMAIN is often cached for much longer because it's assumed not to change soon. Sometimes, as in this case, that's a wrong assumption.
72.
▲
by
orisho
6y ago
I'm not though. It had the intended effect on me. I don't believe what he has to say is so revolutionary that I'm missing much by not reading it, and I agree with the sentiment that I'm respecting the Unabomber's go
73.
▲
by
orisho
6y ago
While just not reading it likely has no effect, making this public post about it might dissuade others from reading and discourage manifesto publishing.
74.
▲
by
orisho
6y ago
Because they now offer more content, at a higher quality, with greater convenience than when they first started. It is also perceived as high value socially, something you should obviously have. This wasn't always the case, and the pri
75.
▲
by
orisho
6y ago
You would never initialize an enum like that, since you would use one of the enumerated values instead. That is, after all, the reason behind defining an enum in the first place. When could you end up with an enum that has an invalid value?
76.
▲
by
orisho
6y ago
Sure it could. A junior programmer aware of the values but not the repercussions could easily overlook this without any malice or disregard for privacy.
77.
▲
by
orisho
6y ago
Sleep studies are often done at home now using a device you get and then bring back the next day. It has a finger VO2 sensor, snoring sensor, and you attach it to your chest to detect breathing. Contact your physician.
78.
▲
A White Woman, Racism and a Poodle
(franklywrite.com)
2 points
by
orisho
6y ago
|
0 comments
79.
▲
by
orisho
6y ago
It's not. What's more common isn't that it's from Israel, but that people bother to mention Israel when that's the home country of the responsible company.
80.
▲
by
orisho
6y ago
I agree - it isn't a real trade-off. I always hear people saying this and am puzzled by it. Indeed writing "good" code - modular, clean, tested is a matter of having good habits and acting on them. Sure, it technically takes
81.
▲
by
orisho
6y ago
This is my entire CI yaml, which copies static HTML and other files (I don't use any static site generator, just plain HTML & CSS) and flushes the Cloudflare cache: stages: - deploy - clear-cache pages: stage: dep
82.
▲
by
orisho
6y ago
GitHub pages / GitLab pages. I prefer the latter since the CI for pages is less magical and more flexible as a result - you aren't limited to what they support, and they don't claim a 100GB* traffic limit (just fair use). Cou
83.
▲
by
orisho
6y ago
They mentioned something about the suit pressure for one of them being lower than expected and asked them to check for "white teeth" on 3 zippers, which they reported seeing on all 3. Can anyone explain what that is?
84.
▲
by
orisho
6y ago
The difference I was aiming at is that you (a library author, whether public or internal) shouldn't implement adder, you should implement add. And let your caller implement adder using add, if they require it. If you only expose adder,
85.
▲
by
orisho
6y ago
If you know better than the calling code, you're probably writing a framework and not a library :) A library should not be limiting, and should be easy to adapt for use with other code. Frameworks are highly opinionated so it's ok
86.
▲
by
orisho
6y ago
Is that true though? You can pass the function itself. If your interface is a function that takes no parameters and returns an int, just wrap this function with another function that takes no arguments and moves the arguments into a closure
87.
▲
by
orisho
6y ago
Sure, this problem can be solved as can any other -- but there's a cost to it in development time. For every feature, the dev working on it had to do it in 3 steps to ensure backwards compatibility and handle partial migration failures
88.
▲
by
orisho
6y ago
Fatality rates are up, but overall fatality count is down as less people are on the road.
89.
▲
by
orisho
6y ago
By deliberately selecting your objectives and evaluating possible solutions based on those objectives. If the objectives are unclear when you start (e.g. your objective is achieve a certain level of perfomance but you don't know enough
90.
▲
by
orisho
6y ago
Yes, that one is definitely very unfortunate :(
More ›