2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions
comment 3y ago · link · parent
func swap(x *int, y *int) {
var temp int
temp = *x /* save the value at address x */
*x = *y /* put y into x */
*y = temp /* put temp into y */
}comment 4y ago · link · parent
They don't need to be "all-hands" though, the way I've seen it done that I like is 2 offsites with my direct team and potentially 1 more to team up with, 1 offsite with cousin teams, then 1 offsite with a much larger group—maybe the entire company.
In fact this is something I ask about in interviews: I find quarterly to be the ideal balance between being productive at work and not being away from my family too much.
I used to want to meet more (before I had a family) but I learned to make a list of the people I want to talk to and the conversations I want to have ahead of time which really helps me make the most of our short time together.
comment 4y ago · link · parent
comment 4y ago · link · parent
It came back a few weeks later, but over a few years I tried fasting again and it would go away every single time. Now I try to avoid sweets as much as I can but when old habits creep back in I just have a fast and it goes away.
I don't really fast for any reason other than knowing it will take the sweet tooth away—and generally make me want to eat healthier.
comment 4y ago · link · parent
I've never been a Java dev, but as I understand the package manager story is/was really bad. I've always wondered if that's part of the reason why you see so few open source efforts compared to other languages.
comment 4y ago · link · parent
Is that really true? It seems to me most (though certainly not all) industries have been fairing pretty well up until now if we discount the first 2 months of the pandemic.
comment 4y ago · link · parent
In theory it is also better because you can manage a fleet of containers just by looking at their memory and CPU usage and not really caring about what's inside, but I think the reality is that k8s is so complex it's not clear the tradeoff of finer-grained management is worth the difficulty of setting it up. Maybe, depends on your use-case.
People are saying the issue is that you're running it on Windows but I would counter that running on macOS can be just as bad if you're trying to run x86 containers on an ARM box.
comment 4y ago · link · parent
There are so many comments in here saying dynamic pricing is screwing over artists but it seems like a huge win for them since it doesn't result in tickets being sold in secondary markets where they can't capture the margins.
Mark Hoppus has a complaint about the _experience_ of dynamic pricing but note that he isn't complaining about the actual prices.
comment 4y ago · link · parent
> Ticketmaster has done something that is very lucrative for itself and for artists, but also worse for the average fan: It has simply jacked up ticket prices for certain high-profile events to a level where all tickets are more-or-less priced at the maximum level that the secondary market would normally bear
comment 4y ago · link · parent
> Nearly one in four top FTC officials owned or traded individual stocks of tech companies such as Amazon.com Inc., Meta Platforms Inc.’s Facebook, Alphabet Inc.’s Google, Microsoft Corp. and Oracle Corp.