HNHacker News
TopNewBestAskShowJobs

kevinconaway

876 karma · joined August 1, 2016

[ my public key: https://keybase.io/kevinconaway; my proof: https://keybase.io/kevinconaway/sigs/5RIAFrQwmuMtu-IH6gRMOAPM0cbYiD3-EEtPJZS2wZA ]
submissionscomments
kevinconaway··on A salt monopoly could spike car accidents in the Midwest
According to [0], John Simmons became CEO in 1972 at age 53 and remained there until he stepped down for health reasons in 1980/81 (he died of cancer shortly thereafter) [1]

[0] https://www.nytimes.com/1972/11/16/archives/simmons-takes-mo...

[1] https://www.nytimes.com/1981/04/04/obituaries/john-w-simmons...

kevinconaway··on Analyzing the Design of Unusual Japanese Butter Tableware
Interesting. Here, in the US the gold wrapper is salted while the silver wrapper is unsalted
kevinconaway··on Behind Amazon’s HQ2 fiasco
Perhaps if you look at the whole region but this specific area, Crystal City, was devastated by the BRAC[0] program which moved a bunch of government agencies, offices, and their associated contractors out of this area.

[0] https://patch.com/virginia/arlington-va/northern-virginia-co...

kevinconaway··on 88% of Americans use a second screen while watching TV
Because I have allowed my phone to absolutely ruin my attention span. If a show isn’t immediately engaging enough, I find myself reflexively reaching for my phone to fritter away time.

In the same vein, I have to consciously avoid taking my phone out while sitting at a stop light or going to the bathroom

It didn’t used to be this way and I hate it

kevinconaway··on Why Taxpayers Pay McKinsey $3M a Year for a Recent College Graduate Contractor
Likely due to the recent NYT article that detailed how McKinsey helped the Trump administration carry out its immigration policies[0].

[0] https://www.nytimes.com/2019/12/03/us/mckinsey-ICE-immigrati...

kevinconaway··on Tell HN: Google should drop Quora from search results
I believe the decision to remove that was forced on them by a lawsuit

The following HN thread has more details:

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

kevinconaway··on AMD EPYC processors come to Google, and to Google Cloud
> With 200 CPU threads (128 CPU cores), I think most startups can run a complex microservice environment on a single machine.

Why would you want to? Your whole environment will be down when the machine, or some component thereof, fails or is rotated out for maintenance

I think this is more of a benefit for cloud providers in that they can pack more disparate customer workloads on to a single machine.

kevinconaway··on In Pentagon Contract Fight, Amazon Has Foes in High Places
David Fahrenthold at the Post won the Pulitzer for his investigative journalism in to Trump

https://www.washingtonpost.com/lifestyle/style/washington-po...

kevinconaway··on Simple techniques to optimise Go programs
I think there is a difference between architectural changes that would inhibit the overall performance of an application vs language specific optimizations like the article is referring to.

My comment re write-profile-optimize was geared towards the latter, i.e. using strconv is usually uglier to read than fmt.Sprintf, you probably should leave it alone unless you've profiled and found it to be a problem.

kevinconaway··on Simple techniques to optimise Go programs
Most of these techniques sacrifice readability so before implementing them, you should really profile to make sure that the code in question is a hot spot in terms of allocations or CPU usage.

That said, the example using sync.Pool is not quite right. The New function should always return a pointer type to avoid incurring an additional allocation on Get [0]

The code should look like:

  var bufpool = sync.Pool{
    New: func() interface{} {
        buf := make([]byte, 512)
        return &buf
    }}

  b := *bufpool.Get().(*[]byte)

  defer bufpool.Put(&b)
[0] see example in https://golang.org/pkg/sync/#Pool
kevinconaway··on Peloton Confidentially Files Statement for Proposed IPO
> How many people are willing to spend thousands on an exercise bike?

A lot, myself included. My wife and I gave it to each other for Christmas one year, right before our daughter was born.

At the time when we were new parents, it was perfect. We could exercise quietly without waking either the baby or each other, all without leaving the house.

Now that our daughter is older, we still use it albeit more infrequently in the summer when we both like to go out and run. However, the digital classes offered in the app are great for running & training. For me personally, it was easy to get stuck in a rut of just plodding along and not really improving my fitness. Having the coaches in your ear telling you what to do works well for me.

kevinconaway··on Practices for writing high-performance Go
There is sync.Pool [0] but I wouldn't reach for it until you've profiled your application[1] and found that the specific allocation in question is a hot spot.

As of now[2], they get cleared when a GC occurs so they can be a bit quirky to use in practice. This behavior is changing though

[0] https://golang.org/pkg/sync/#Pool

[1] https://blog.golang.org/profiling-go-programs

[2] https://github.com/golang/go/issues/22950

kevinconaway··on Pad Thai was invented by the Thai government
You might have read it here on HN [0] 9 months ago

[0] https://news.ycombinator.com/item?id=17770707

kevinconaway··on Azure is experiencing DNS issues in all regions
Yep [0].

They had cooling issues at one of their data centers that took most of South Central off line for hours to days, depending on the services you were using

[0] https://news.ycombinator.com/item?id=17910916

kevinconaway··on Jack Dorsey Is Gwyneth Paltrow for Silicon Valley
I don't believe those are "altars" in the sense that you're implying, as if people are worshipping him.

They are ofrendas [0] which are part of the Day of the Dead celebrations. My understanding is that they are usually reserved for loved ones but beloved public figures are included as well.

[0] https://en.wikipedia.org/wiki/Ofrenda

kevinconaway··on The one-salary experiment, ten years in
> This concept simply cannot scale to an entire economy.

Why does it need to?

kevinconaway··on Home of Strategic Command and Some of the USAF's Most Prized Aircraft Flooded
There was a front page story about it in the New York Times last week (in fact there is still a story on the home page below the fold about it [0]) but it got bumped for coverage of the attack in NZ

[0] https://www.nytimes.com/2019/03/18/us/flood-facts.html?actio...

kevinconaway··on Skirting U.S. sanctions, Europeans launch trade mechanism for Iran
Isn’t this the guy driving all over Africa in his converted Jeep?

I wouldn’t be surprised if he is being sincere about visiting Sudan

kevinconaway··on Apache Flink
It makes you wonder about some of the other insightful sounding top comments on topics that you aren't as well versed in
kevinconaway··on Sears has another chance to avoid closing down
> Unless you're in a niche that people are willing to pay a margin for or serve upscale customers who also don't mind paying margins (Costco, Whole Foods, Nordstroms, Apple, etc)

Is it fair to lump Costco in with these other companies as an example of places where consumers don't mind paying higher margins?

From a quick google search on gross profit margins:

- Costco: 13%

- Nordstrom: 38%

- Apple: 38%

- Costco: 33%

Costco's is also likely skewed due to their house brand where they likely make a much higher margin than the name brands

kevinconaway··on Ways to Bring Tech Jobs to Rural Areas
>Ro Khanna is my hometown progressive. So..obviously..I distrust the politician representing us.

As someone not from the Bay Area, will you please explain why this is obvious?

> Why can’t he do a better job with our multitude of problems?

Perhaps because he has only been in Congress since 2016 and in that time, the Democrats have been in the minority and mostly powerless to do much of anything

kevinconaway··on They Rejected Us
You're right, it is a two-way street. Candidates go in to the process hoping to get a job and employees go in to the process hoping to get a co-worker. Both are acting in good faith

Most companies disclose what their process is up front and you're free to opt out at any time. Intentionally wasting the time of the recruiters and engineers at companies you don't want to work for just to "practice" just seems really rude

kevinconaway··on They Rejected Us
Recruiting is a time consuming task for all involved and for you to casually waste peoples time in that manner is horribly disrespectful
kevinconaway··on They Rejected Us
> I don't understand people who take a "no thank you" personally, some of the comments are along the lines of: "Ha! sure showed them!" but really it's just like dating, sometimes you get passed up for no other reason than you weren't the person the other was looking for at the right time.

Perhaps that makes sense if you don't make it past the application or initial phone conversation

However, once a company gives you the opportunity to demonstrate your professional skills, either via a technical phone screen / homework / on-site whiteboard-a-palooza, I don't think its accurate to state that they're just not that in to you.

Your personal performance in that session is the reason for you advancing forward or not and when you don't, it is hard not to take that personally.

kevinconaway··on Why Aren't There C Conferences?
>Ruby is used in a lot of places where Rails isn't, by a few large companies.

And indirectly by many more who use chef

kevinconaway··on Cadbury ‘pushing orangutans towards extinction by wrecking habitat for palm oil’
> I wouldn't give my dog their chocolate

You really shouldn’t give your dog any chocolate.

It is considered poisonous to most dogs

kevinconaway··on Amazon Plans to Split HQ2 Evenly Between Two Cities
Crystal City is a nightmare from a commuting perspective and an awful place to live.

Its more or less a ghost town since BRAC moved out a bunch of agencies and contractors a few years ago. This had the effect of hollowing out what little independent retail / dining there was there as most of it catered to the office lunch crowd.

From a commuting perspective, its right across the river from DC which makes it very difficult to get to from a driving / bus perspective. Taking the metro is somewhat better but would require a transfer for many people.

kevinconaway··on Java’s Checked Exceptions Are Evil? (2015)
> there really ought to be a concise way to say "panic and abort the process" when that's appropriate.

There is, it is the Error class and its subclasses, e.g. OutOfMemoryError

kevinconaway··on Ask HN: Did any Show HN posts turn into successful startups?
Checkr

Started 4 years ago[0] and raised $100m 5 months ago[1]

[0] https://news.ycombinator.com/item?id=7937476

[1] https://news.ycombinator.com/item?id=16820699

kevinconaway··on Guidelines for writing readable code
> I honestly cannot think of a reasonable argument for why constant values should not be in static constants or enums.

My personal opinion is that values should be in constant values if:

- Its repeated more than once or referenced outside of the file

- The constant value is a "magic number" where the meaning of the value isn't obvious to outsider

If the value is used only once and the meaning of the value is clear, I think extracting a constant out is needless indirection.

For example:

  if (flags & 45676 == 0) {}
is a magic number that definitely should be a constant, even if its only used once:

  if (flags & ROLE_ADMIN == 0) {}
However something like:

  pool.setDefaultTimeoutMillis(1000);
is perfectly obvious in context IMO
Page 1 of 2Next →