Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
NateDad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
451.
▲
by
NateDad
12y ago
I don't think it would be weird if they developed OSX/iOS applications in Swift.
452.
▲
by
NateDad
12y ago
For a hardware company, the write a crapload of software... like Mac OS, iOS, and all the built-in applications. I'd say they probably do a lot more on software than hardware, actually. They only release a few pieces of hardware a ye
453.
▲
by
NateDad
12y ago
Go is not really a "Google" technology. It's just a programming language like any other. There's no reason Apple shouldn't use it, if it's the right tool for the job.
454.
▲
by
NateDad
12y ago
Yeah,that's a good point. Certainly Rust or anyone else could implement a simple function that returns a populated error struct with the given string message. I guess my initial reaction of a lot of boilerplate was mainly due to the d
455.
▲
by
NateDad
12y ago
Well, so there's two theories there... there's the theory you're saying, that the caller might want to know it's a filenotfound, and handle it programmatically... and there's the theory that the fact that you'r
456.
▲
by
NateDad
12y ago
Yeah, I agree about wrapping. I actually usually try to avoid just doing return err, because you're losing some context that this code understands that the below code doesn't.... like if you return a FileNotFound error, the calle
457.
▲
by
NateDad
12y ago
Many errors in go are simply: var ErrFoo = errors.New("error doing Foo") Sometimes if you want an error to have a specific type, but have a custom error message with context in it (like the name of the file that was missi
458.
▲
by
NateDad
12y ago
I do like the connotation of "panic" - I envision Kermit running around flailing his arms :)
459.
▲
by
NateDad
12y ago
As a gopher who has written an errors package for Go, I find Rust's journey into figuring out errors to be very interesting. A lot of the stuff in this article is similar to many of the error patterns in Go. Of course, with Go, it&#x
460.
▲
by
NateDad
12y ago
Probably spam? No info on the front page of the site except a sign up link.
461.
▲
by
NateDad
12y ago
Excellent article... I think another point you could have gone more into is how exceptions interact with multithreaded programming. Everyone always says you can't ignore exceptions, but that's not true... only exceptions in your
462.
▲
by
NateDad
12y ago
I am a software engineer at Canonical working in Go on Juju. I live in Massachusetts and have 15 years of professional development experience and a BS in CS from a decent technical university (WPI). When applying for the job, I asked for
463.
▲
by
NateDad
12y ago
History? Like the New Deal? http://en.wikipedia.org/wiki/New_Deal
464.
▲
by
NateDad
12y ago
I think your first statement is 100% true. Most people have no idea how much waste there is. But some people still try to say it's huge, without any proof other than what they've heard on talk radio.
465.
▲
by
NateDad
12y ago
I think most people have no idea how much it costs to do half the things the government does, and so even if everyone was compassionate, they'd give far less money than is actually needed, even for the socially normal people.
466.
▲
by
NateDad
12y ago
The job of the government is to help us make our world a better place. If the job of government was just to resolve conflict, we'd have no roads, no bridges, no public education, we'd all be working 100 hour weeks for a pittance,
467.
▲
by
NateDad
12y ago
Everyone. It's called a community. Same people who pay for seniors and unemployment and public education and roads and bridges and national defense. Do we not live in a world where everyone deserves to be able to afford kids?
468.
▲
We need to teach our sons to be better fathers. Here’s how
(washingtonpost.com)
3 points
by
NateDad
12y ago
|
0 comments
469.
▲
by
NateDad
12y ago
Poor people deserve to have kids, too.
470.
▲
by
NateDad
12y ago
Don't offer your work for free. It devalues you and all other photographers. There's no "practice" you get from doing work for free for someone else that you couldn't get by doing work for yourself, and then offer
471.
▲
by
NateDad
12y ago
I'm on Ubuntu, I haven't customized anything except the background color of the terminal :) And this from someone who was a developer on Windows for 14+ years.
472.
▲
by
NateDad
12y ago
You know it's just a sticker, right? :) I always take all stickers off my laptops. But, yes, I wish the XPS 13 had a 16GB option.
473.
▲
by
NateDad
12y ago
A lot of Canonicalers are getting the Dell XPS 15. It's practically a macbook clone. The main difference is the battery life - with the smaller battery it's like 3.5 hours, bigger battery is like 5 hours. But that's with a q
474.
▲
by
NateDad
12y ago
The context example is the only one of these that is really a valid example - and that is not something you would normally run into. I've never seen that idiom in code outside of google, so I wouldn't even call it idiomatic, rega
475.
▲
by
NateDad
12y ago
It seems like quite a leap of faith to assume a significant portion of people complaining about something on the internet have actually tried it. Most complaints about Go tend to show the opposite. For example "it doesn't take l
476.
▲
by
NateDad
12y ago
I truly don't see many people talking about leaving go after getting frustrated with no generics. If this were survivor bias, where are the casualties?
477.
▲
by
NateDad
12y ago
I think most people assume that when people say Go is simple, they mean easy. I think it's exactly the opposite. Go is simple, but it's not always easy. It's like the difference between building a house using pre-fab wal
478.
▲
by
NateDad
12y ago
Can you explain how those language attributes make projects more difficult to navigate?
479.
▲
by
NateDad
12y ago
Yup, this is why you don't need err1 err2 err3 err4... (I've had to do similar things in C# before). Also, := does shadow in a sub-scope. The difference between shadowing and simply assigning in the same scope is negligible (i
480.
▲
by
NateDad
12y ago
>I actually challenge you to give me an example of JSON functionality included in a standard library that doesn't suck Uh... the one in the Go standard library? :)
More ›