Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zmj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
zmj
7y ago
Go errors prioritize explicitness, in declaration of what functions might fail, and in handling of those failures. It seems like a mistake to add a language feature that works against explicit handling. At minimum, the endorsement of return
152.
▲
by
zmj
8y ago
> Compare that to C# and a dictionary lookup which either returns or throws an exception - and there is no alternative. FYI, there is an alternative: TryGetValue. https://docs.microsoft.com/en-us/dotnet/api/
153.
▲
by
zmj
8y ago
There's a bytecode representation already - you can use it when compiling to IL: https://docs.microsoft.com/en-us/dotnet/api/system.linq.expr... What's missing is a way to express an anonymous block
154.
▲
by
zmj
8y ago
They have: https://docs.microsoft.com/en-us/windows/desktop/projfs/proj...
155.
▲
by
zmj
8y ago
Fast compilation was an explicit design goal for Go: https://talks.golang.org/2012/splash.article#TOC_4 .
156.
▲
by
zmj
8y ago
Thank you for that article! I found it a few months ago, read it through the end, and shared it with my team. It's the best survey of synchronization techniques that I've come across.
157.
▲
by
zmj
9y ago
A method shouldn't know whether its consumer can do something meaningful on failure. Return an error value and let them decide.
158.
▲
by
zmj
9y ago
> I have to use Facebook to stay in the loop about social events because all my friends use Facebook to schedule those social events. Facebook has an API. Script a poll on those events and push them to somewhere you'll see them? Log
159.
▲
by
zmj
9y ago
For use cases that fit that limited virtualization, is GvFlt something to consider? Or is that a bad idea?
160.
▲
by
zmj
10y ago
People who agree don't post. It's why online communities tend towards contrarian, which tends towards crackpot.
161.
▲
by
zmj
10y ago
This is how software eats your job.
162.
▲
by
zmj
12y ago
Not every change is an improvement, but every improvement is a change.
163.
▲
by
zmj
13y ago
Mild autism.
164.
▲
by
zmj
13y ago
Do you understand that unsolicited comments on someone's appearance are not ok?
165.
▲
by
zmj
13y ago
Why did you post this?
166.
▲
by
zmj
14y ago
Woah. That's cool.
167.
▲
by
zmj
14y ago
I have a simple heuristic: which solution is going to get me home in time for dinner with my significant other?
168.
▲
by
zmj
14y ago
That statement would be made regardless of their original intent. It isn't evidence in either direction.
169.
▲
by
zmj
14y ago
There's not a ton of data, but one study suggested: stress from long automobile commute > long public transit commute > short public transit commute > short automobile commute.
170.
▲
by
zmj
14y ago
How do you implement an interactive page under that model?
171.
▲
by
zmj
14y ago
I'm embarrassed how many times I've implemented the above without thinking to look for a standard lib solution. Thanks!
172.
▲
by
zmj
14y ago
What could 'meaning' possibly be other than probabilistic associations of sounds and concepts?
173.
▲
by
zmj
14y ago
> Google needs to be usable by everyone. Why does Google need to work the same way for everyone?
174.
▲
by
zmj
14y ago
That's not the problem being solved by Markdown. You don't want to be serving HTML written by users.
175.
▲
by
zmj
14y ago
Most people are bad at making predictions. This is particularly true when they have incentives other than accuracy. Programmers are not immune to that failure mode, but programming culture encourages data-driven decision-making and prizes e
176.
▲
by
zmj
14y ago
Please read this: http://www.scientificamerican.com/article.cfm?id=psychology-... > When people are asked to trade their sacred values for values considered to be secular—what psychologist Philip Tetlock refers to as a “taboo tradeoff
177.
▲
by
zmj
14y ago
Good point. In fact, you and I should go looking for missing children right now. If there's any chance at all, it's worth doing, right?
178.
▲
by
zmj
14y ago
Have you seen the Error function in the HTTP package? http://golang.org/pkg/net/http/#Error
179.
▲
by
zmj
14y ago
The example is easier to extend to include additional logic after the call or another return value.
180.
▲
by
zmj
14y ago
Not at all. If a function can't or shouldn't be responsible for handling an error, it can return that error. The result is that the error passes back up the call stack until something handles it. It's very similar to exceptions, except you
More ›