Better HN
topnewbestaskshowjobs
Log inSign up

bin_bash

2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions

FAANG engineer
Submissions

comment 3y ago · link · parent

I don't think any of the languages you mentioned support true pass-by-reference. (maybe C# and Java, but it's not common) I've heard what you're describing as "pass-by-value-reference" Go, however, supports pass-by-reference which allows you to write a function like this:

    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 3y ago · link · parent

That's an urban legend.

comment 3y ago · link · parent

Half of the article talks about solutions. The last 2 sections are: "It's about new housing, stupid" and "The birth of the central social district"

comment 4y ago · link · parent

I've been working remote for nearly a decade and find quarterly offsites super helpful. Things like brainstorming about loosely defined problems and just getting to know your colleagues happen at a rapid pace vs remote.

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

they didn't "bet the farm" on that at all, they've been desperately trying to diversify out of search advertising for basically the life of the company. Of course, they haven't succeeded but not because they're relying on search ads.

comment 4y ago · link · parent

you can (and should) disable those animations in the settings

comment 4y ago · link · parent

Those responsible for sacking the people who have just been sacked, have been sacked.

comment 4y ago · link · parent

It is iff you can convince a jury that's the case.

comment 4y ago · link · parent

"Nature will castigate those who don't masticate." - https://en.wikipedia.org/wiki/Horace_Fletcher

comment 4y ago · link · parent

Yep. I had an unbelievable sweet tooth since I was a teenager. I was having 10+ cans of coke per day on top of multiple king size candy bars. When I was ~30 I did a 36 hour fast and afterwards has 0 desire to have anything sweet for the very first time in my adult life.

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

There is absolutely 0 chance that the WSJ would run an article with a headline like this without verifying the information with multiple parties. That verification is often off-the-record so you won't read about it in the article.

comment 4y ago · link · parent

This is one of the reasons downturns in markets are good. If the market would've just kept growing then SBF likely could've kept his ponzi scheme afloat without anyone noticing.

The 2008 recession is what really stopped Bernie Madoff.

comment 4y ago · link · parent

Among many reasons I think one is that it has a poor amount of open libraries/frameworks when you stack it up against other languages. The culture is much more DIY so there isn't a lot to help you get started with a new application.

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

> Workers in other industries were paying a heavy price for the pandemic. But tech continued to prosper.

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

IMO it's a poor tool for local dev. It's just too much of a pain to work inside of a vm—or at least what's essentially a vm. The real value is for production deployments since the way you setup dependencies is consistent across different app types.

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

Analyzing humor is a bit like dissecting a frog: You learn how it works but you end up with a dead frog. - EB White

comment 4y ago · link · parent

I desperately hope this is sarcasm

comment 4y ago · link · parent

Citation needed, seriously.

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

The article doesn't say this at all. In fact it says the artists are making a lot of money here (though I can't find any details on rev-share or anything).

> 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

This comment is begging for a link—or at least a description of this "extremely well known thing"

comment 4y ago · link · parent

https://news.ycombinator.com/item?id=27424195

comment 4y ago · link · parent

doesn't "breakneck" have to be followed by a noun? e.g.: "breakneck pace" "breakneck speed"

I do really like "It's going to be Siberian tomorrow" though, I might start using that one.

comment 4y ago · link · parent

If that's all it was this wouldn't be a story. This is specifically talking about individual stocks.

> 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.

1
567
33