Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
NateDad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
331.
▲
by
NateDad
12y ago
FWIW, I have done a ton of OOP experience, and I have trouble understanding most descriptions of design patterns. One you see them implemented, you generally think, oh, well, duh, I've done that before. I think the main problem is tha
332.
▲
by
NateDad
12y ago
Compensation compensation compensation. Companies never value their current employees high enough. The guy who's been here for 3 years? His institutional knowledge is almost priceless. And yet, changes are, he can get a 15% pay bump
333.
▲
by
NateDad
12y ago
FYI the second use is just assignment, that's why it's not caught by the unused variable rule.
334.
▲
by
NateDad
12y ago
Built ins are not the same as the standard library. The standard library consists of packages written in normal go for things like networking, web servers, JSON, regular expressions, etc.
335.
▲
by
NateDad
12y ago
I've been working on juju ( http://jujucharms.com ) for 18 months and have not missed generics. I have 16 years of development experience in C++ and C#, so it's not like I don't know what they're good for.
336.
▲
by
NateDad
12y ago
Have you used it in a real application? Is actually quite good.
337.
▲
by
NateDad
12y ago
FWIW I thought the article was fine, when though I love go. I do think it reads like you wish you could use Rust or something. It is nice to hear about hassles from someone who has actually used the language for a change. Not every langu
338.
▲
by
NateDad
12y ago
This is just not true. Many simple lines are easier to read than fewer more complex lines. It's hard to miss a bug in x = x + 1 foo[x] But easier to miss a bug in foo[x++]
339.
▲
by
NateDad
12y ago
Here's the current doc on it: https://docs.google.com/document/d/16Y4IsnNRCN43Mx0NZc5YXZLo...
340.
▲
by
NateDad
12y ago
The point is that everyone assumes you need generics to reuse code. And that's simply not true. For some very specific problems that can be true, but in many many cases it's not. My point is not that you never need anything outs
341.
▲
by
NateDad
12y ago
Kudos. That is perhaps the best reasoning I have ever seen for this comparison. I agree totally, though I don't think most people who make the comparison are thinking along the same lines. I think they generally just mean "compi
342.
▲
by
NateDad
12y ago
Go 1.5 is going to have real-time guarantees on GC.
343.
▲
by
NateDad
12y ago
This is old and tired. Go has a ton of features java 1.0 didn't. Hell, go has features java 1.7 doesn't (possibly 1.8, but I'm not as familiar with it).
344.
▲
by
NateDad
12y ago
Go has a very nice standard library. The whole thing is reusable code.
345.
▲
by
NateDad
12y ago
Pretty sure errcheck will catch that too. The thing that bugs me is the people that make up problems that are not at all problems in real day to day coding.
346.
▲
by
NateDad
12y ago
I've been working on Juju for 18 months, which is over 250k LOC and have not missed generics at all.
347.
▲
by
NateDad
12y ago
It seems like Rust is what Go would become of you added all the Haskell-ness to it. Which is fine, but we already have Rust. So... Maybe we should be asking what Rust is missing from Go? Or if Rust is good enough, just use that.
348.
▲
by
NateDad
12y ago
Yes, loops, just like we learned in CS101.
349.
▲
by
NateDad
12y ago
Which you can catch with a linter like https://github.com/kisielk/errcheck . Errors in Go are just values. There's nothing "more wrong" about ignoring a return value that is an error or one that is file h
350.
▲
by
NateDad
12y ago
They're simple loops. You don't need to copy and paste, you just write them out because it's just ridiculously simple logic. Just like you don't copy and paste if statements.
351.
▲
by
NateDad
12y ago
Yeah, it seems like a lot of the criticisms of go boil down to "I don't like writing simple loops".
352.
▲
by
NateDad
12y ago
"Why Go is not Haskell"
353.
▲
by
NateDad
12y ago
Ditto for go arrays.
354.
▲
by
NateDad
12y ago
I have the 2013 XPS 15. Side by side with a macbook pro and they're almost identical. The touch pad is a bit better on the Macbook, but it's not a huge difference. Keyboard layouts are basically identical, and I like the tactile
355.
▲
by
NateDad
12y ago
How is that different than any other way to run external tools? Make or Python or anything else has the exact same problem.
356.
▲
by
NateDad
12y ago
It's cross platform compatible with no other dependencies, and the instructions live close to the code that are affected by them.
357.
▲
by
NateDad
12y ago
One of the really great things about go generate is that the command to run (and thus the reminder that you need to run it) can and should exist very near to the code that might change. If you see //go:generate stringer -ty
358.
▲
by
NateDad
12y ago
Put a big comment on the top DRAFT!! STILL IN PROCESS!! or something.
359.
▲
by
NateDad
12y ago
I can put the loop a function if you want a nice compact version with a friendly name. Not sure what level of abstraction you're missing.
360.
▲
by
NateDad
12y ago
My oldest is 3.5. We don't have cable. She gets to watch YouTube sometimes when her little sister is taking a nap and we can't get her to stay quiet. Otherwise basically zero screen time. We hope to keep it that way as long as po
More ›