Recent submissions

Comment · 10 years ago
For smaller memory allocations that don't go directly to the OS, I suppose it's theoretically possible (though I'm not sure any compilers do it). For the larger allocations that the author mentions that go directly to the OS to fulfill, however, the compiler wouldn't be able to optimize this away. In that case, the zero'ing occurs in the kernel, which is something that the compiler has no control over.

The zero'ing is done significantly for security reasons anyway. If a program could somehow disable that feature and get leftover memory from the kernel it could very easily contain password, secret keys, and other important bits of data that you wouldn't want random programs on your computer to have access to.

Comment · 11 years ago
This story appears to go beyond a simple HR dispute, but is endemic of a culture all too common in our industry that we should have zero tolerance of and should work to undermine. It appears that not only were inappropriate statements made, but other high-ups at Google weren't willing to stand up for what's right. Considering this happened at an employer of many readers on this site who may have additional insights or stories to add, I think it's perfectly reasonable to have posted here.
Comment · 12 years ago
The issue is that the counter doesn't know the state of the first switch at the start. If it's on at the start, then sure your solution will work. But if it's off at the start and they all agree to only flip on the switch once, then the counter will sit around forever waiting for p flips, when only p - 1 will ever happen. They need a solution that will work no matter what state the switch is in at the start.
Comment · 13 years ago
I think you misunderstood. powrtoch proposed having a set of questions in which each individual question is itself very complicated. For example, being a non-practicing Catholic with exactly three children is only one small facet to a single question. By or'ing a bunch of really specific questions together you can come very close to getting exactly 50% of the population to answer yes to a single question.
Comment · 13 years ago
I second the need for an RSS feed. I was actually a bit surprised when I couldn't find one.
Comment · 13 years ago
I haven't used this app, but in every other app I use Cmd+W closes a tab, while Cmd+Shift+W closes a window.
Comment · 13 years ago
This bothered me as well, particularly for the example that they provided. The convention may work for tracking conversations, but knowing the exact time that the helicopter was spotted relative to other events seems more important. Yet, by their convention you can only accurately compare it with the time of other cited tweets.
Comment · 13 years ago
Comment · 14 years ago
I would agree, but the pricing page only claims compatibility with more modern browsers: "Cross-browser tested (IE 9+, Chrome, Safari, & Firefox)"

When's the last time you saw a laptop that old running one of those browsers? I typically see them running IE6 or 7.

Comment · 14 years ago
I think you're absolutely correct regarding "homework." It can be a good indicator of a candidate's competency, but many people don't have the patience to do it.

I spent much of this past fall interviewing for an internship for the upcoming summer. It's one thing for a company to ask a candidate to devote a day to interviews, after flying them out and putting them up in a nice hotel, but it feels completely different to have the candidate complete some sort of homework.

The candidates that you want to hire are likely busy interviewing with several other companies as well, and probably don't have time to work on some random assignment for your company. So, unless your company really stands out, they're just going to pass.

I've found that interviews benefit both the company and the candidate, while I can only really imagine homework benefiting the company. I learn a lot about a company from the way they interview and the way developers talk about their jobs; the interaction is really important. Yet, homework assignments don't really have much interaction, and end up being a test of how much the candidate wants the job, instead of how well they fit with the job.

Comment · 14 years ago
The theory behind it is that material about specific frameworks is easily learned. If a company is looking to hire you, what you currently know matters far less than what you can learn. The best developers are able to master new frameworks in days or weeks, making their current experience near meaningless.

So, instead of testing what you current know, many companies look to evaluate the way you think and your potential to learn. I'm sure that the current methods of doing this aren't perfect, but I think they're a hell of a lot better than asking me minute Hibernate details when I haven't used Hibernate in years.

I currently prefer overall design questions. The type where the interviewer proposes an overarching problem, and you have to design a full system to handle it (not a difficult algorithm necessarily, but the data structures and classes involved). Mix this with a bit of actual coding, and I think the interviewer can get a decent idea of your skills.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton