Viewing profile — adrianmsmith
adrianmsmith
HN member- Joined
- Tue, Mar 01, 2011, 11:42 AM UTC
- HN karma
- 3,758
- Public activity
- 722 items
- HN profile
- View on Hacker News ↗
About adrianmsmith
Software developer from UK living in Vienna, Austria.
Blog: http://www.databasesandlife.com/
adrian.m.smith@gmail.com
https://twitter.com/adrianmsmith
Recent public activity
-
comment
Comment #49142840
One thing I think generics in Go is missing is the concept in Java. If you're taking a List[T] and all you want to do is to call list.size() then you don't care what type of list i…
-
comment
Comment #49142453
It's helped, but that's runtime behaviour. The compiler can't help you with questions like "you didn't handle certain errors" or "the error you're trying to check can never occur".…
-
comment
Comment #49142081
> What people want generic methods for is to do deeply nested call chains I don't see that as the only use of generic methods. The example in the article is a "Map" method that tra…
- comment
-
comment
Comment #49142060
People advocate for Go's error handling because it forces you to deal with errors. But in the cases I do want to catch a specific error, the signature only tells me that a function…
-
comment
Comment #49142010
I never understood the convention of using single letter names for generic parameters. I guess this started in C++ and every language has copied that convention. I think that code …
-
comment
Comment #48758644
The article gives examples of situations where projects have failed, and states a solution. > The [solution] is to organize the work into the smallest possible learnable chunks and…
-
comment
Comment #48264918
I feel this article is saying people from UK/US/etc. want to maximize upside, and people from DACH (Germany etc.) want to minimize downside. I was a bit shocked when I talked to an…
- story
-
comment
Comment #48082777
> But if you have side effects and need something to happen exactly once it seems a lot more useful to communicate this, rather than pretending you did the thing. I think it depend…
- story
-
comment
Comment #47848014
> Because jj's conflict resolution is fundamentally better I don't know jj well so its merge algorithm may well be better in some aspects but it currently can't merge changes to a …
- story
-
comment
Comment #47250513
> keeping the old one around would be embarrassing On the other hand this is the company that sells a Mac Pro for $7k and it comes with an M2-based chip...
-
comment
Comment #47250236
Macbook Nano will probably be supported with security updates for a lot longer. Apple try to provide updates for a certain number of years after the model was originally released. …
-
comment
Comment #47249930
> Replacing human hesitation with machine confidence removes the one safeguard that has prevented nuclear war since 1945. Until militaries implement documented human authorisation.…
-
comment
Comment #47171236
GH literally say in a parent comment: > we can (and do) take action against those accounts including banning the accounts
-
comment
Comment #46972651
> You end up working for shitty Fortune 500 company, work on useless/mindless shit, grind for 8 hrs, collect paycheck, eat, sleep, and repeat. I used to think like this but what if…
-
comment
Comment #46912477
This is research from Microsoft that goes into more detail: https://www.microsoft.com/en-us/research/wp-content/uploads/...
-
comment
Comment #46719441
> Can anyone recommend a music discovery service that isn't garbage? I enjoy using last.fm, although it's not their focus these days. Sign up, connect it to Spotify or whatever you…
-
comment
Comment #46666473
> As I dug deeper into these feelings, I realized I was feeling pressured. Except they're not saying this, I am. That's a great insight. Once you've realized that, I think the best…
-
comment
Comment #46586139
Thanks. We're doing all that. But that doesn't help when you do "git rebase" and there's a large conflict which you have to resolve manually, caused by two people changing differen…
-
comment
Comment #46565244
Im not sure I understand the readability benefits. Is code like line 286 here, which doesn’t align values in assignments, difficult to read? https://github.com/gohugoio/hugo/blob/m…
-
comment
Comment #46565209
Interesting. Yeah I did think maybe this could be solved by more tooling. But at my place it work it isn’t, at least at the moment. Perhaps I could change that. Do you have any inf…
- story