Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adrianmsmith
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
1.
▲
by
adrianmsmith
2mo ago
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 it is. In Java you can write a function w
2.
▲
by
adrianmsmith
2mo ago
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". Nor does that
3.
▲
by
adrianmsmith
2mo ago
> 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 transforms e.g. a List[A] to a List[B], by ta
4.
▲
by
adrianmsmith
2mo ago
No
5.
▲
by
adrianmsmith
2mo ago
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 returns an error, not which type. So I do feel that
6.
▲
by
adrianmsmith
2mo ago
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 would be a lot easier to read if the types were called IN an
7.
▲
by
adrianmsmith
3mo ago
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 continuously alternate between doing and learning. It wo
8.
▲
by
adrianmsmith
4mo ago
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 Austrian colleague once and they told me they wan
9.
▲
Today we reduced headcount by 22% / The goal is 100x output
(twitter.com)
8 points
by
adrianmsmith
4mo ago
|
11 comments
10.
▲
by
adrianmsmith
4mo ago
> 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 depends on whether the sender needs to know whether the thing w
11.
▲
Today I've made the difficult decision to reduce the size of Coinbase by ~14%
(twitter.com)
484 points
by
adrianmsmith
5mo ago
|
807 comments
12.
▲
by
adrianmsmith
5mo ago
> 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 file in one branch with that file being re
13.
▲
Michael Burry worries about "structural manipulation" of Nasdaq-100 for SpaceX
(twitter.com)
24 points
by
adrianmsmith
6mo ago
|
2 comments
14.
▲
by
adrianmsmith
7mo ago
> 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...
15.
▲
by
adrianmsmith
7mo ago
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. The M1 Air was released many years ago now.
16.
▲
by
adrianmsmith
7mo ago
> Replacing human hesitation with machine confidence removes the one safeguard that has prevented nuclear war since 1945. Until militaries implement documented human authorisation...we are blindly automating our own destruction In the sc
17.
▲
by
adrianmsmith
7mo ago
GH literally say in a parent comment: > we can (and do) take action against those accounts including banning the accounts
18.
▲
by
adrianmsmith
7mo ago
> 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 it isn't the case? Maybe the market is making
19.
▲
by
adrianmsmith
7mo ago
This is research from Microsoft that goes into more detail: https://www.microsoft.com/en-us/research/wp-content/uploads/...
20.
▲
by
adrianmsmith
8mo ago
> 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 use (incl. a long list of players of local mus
21.
▲
by
adrianmsmith
8mo ago
> 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 thing to do is to talk to the person whos
22.
▲
by
adrianmsmith
8mo ago
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 different lines, and one or both of those l
23.
▲
by
adrianmsmith
8mo ago
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/master/commands/comm
24.
▲
by
adrianmsmith
8mo ago
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 info on what I could use to make the command-line “git diff” an
25.
▲
Avoid aligning keys and values in source code unnecessarily
(databasesandlife.com)
4 points
by
adrianmsmith
8mo ago
|
6 comments
26.
▲
by
adrianmsmith
9mo ago
I have a Logitech K830, it's great. Alas they're not manufactured any more. Modern equivalents are a lot cheaper. I think they might not have the backlight feature which is extremely useful, and I've dropped mine many times,
27.
▲
by
adrianmsmith
1y ago
Then again, this person's job is to focus on their career. Their manager told them > Because… some lack business value. These tasks aren’t business priorities and had no impact on customers and other teams So if those "some&quo
28.
▲
by
adrianmsmith
1y ago
That sounds like the Google philosophy though, where smart people come up with ideas and write the initial implementation (then get promoted) and other less smart people take over, and you end up with a mess that had great potential like Ba
29.
▲
by
adrianmsmith
1y ago
I mean, yes, I would hope they have the right paperwork? E.g. if you're going on a business trip then you're going to need a visa allowing business trips, if you're going to work you're going to need a visa that allows w
30.
▲
by
adrianmsmith
1y ago
The database vendors themselves don't seem to be consistent on this issue. * PostgreSQL system table names are singular e.g. "pg_class" * Oracle system tables are plural e.g. "ALL_TABLES" * MySQL is also plural e.g.
More ›