News for hackers. Stuff that matters.

JFlash

Re:How to Fall 35,000 Feet And Survive (2010) on Sunday May 22, 2016 @09:48PM (#11751254)
Sorry, fixed.
Re:How to Fall 35,000 Feet And Survive (2010) on Sunday May 22, 2016 @09:36PM (#11751214)
Would being drunk help? In drunk driving crashes the drunk driver survives more often than the others directly involved in the collision, but I've never gotten a definitive reason why...

EDIT: survive more often than others directly involved in the collision who were in a comparable vehicle or in the same vehicle as the driver.

Re:Hashing to estimate the size of a stream on Wednesday January 06, 2016 @03:32PM (#10853517)
> So if we assume the data in the stream consists of uniformly random integers between zero and N

This needs to be in the problem statement.

Re:Invalid Object Is an Anti-Pattern on Wednesday December 30, 2015 @06:23PM (#10815073)
The validity of an object depends on the observer. If you require all Customers to have a billing address but a person is in the middle of a multi-page checkout, should their Customer record be invalid if they've only filled in their email so far? What if they want to come back to the form later?

Rails tries to fix this with the `:on` option for validations (http://api.rubyonrails.org/classes/ActiveModel/Validations/C...), which goes woefully unused in Rails apps.

Now you can do:

  customer.save(context: :checking_out)
  # which is different than
  customer.save
Re:Why hipsters all look alike (2014) on Sunday December 27, 2015 @01:45PM (#10798296)
My grievance with this article was glossed over in one paragraph:

"In real life, there are a million ways to be nonconformist. You can be goth; you can be preppy; you can be grunge... "The brain is more complex than the model I looked at, and of course hipsters are more complex," he said."

Yes, there are a lot of ways to not be a thing. That's kind of important to note when you're making sweeping generalizations about a group of people who aren't like you. The title of this article is completely bogus.

Yeah, I don't really know what I'm going to do if/when I'm a parent. Academia is calibrated around kids doing this "hoop-jumping" as early as possible, so do I push my theoretical children into this race or do I let them eat into precious time to figure things out?
Re:The best icon is a text label on Friday December 18, 2015 @08:04PM (#10762100)
Great comment. This reasoning is probably intuitive to anyone who's familiar with a logographic writing system.

I feel like you can also draw a parallel with programming languages. Consider:

  def sum1(array)
    sum = 0
    array.each { |e| sum += e }
    sum
  end

  def sum2(array)
    array.reduce(:+)
  end
sum2 isn't just a different way to write the same thing. It's a construct that expresses a specific pattern of evaluation and aggregation. It doesn't describe what it's doing like sum1 does. It's more expressive than that. It's "clearer" once you learn it.

Similarly (at least in the US) green means proceed/go/forward/continue and red means cancel/go back/stop/error. This is something that was learned, not something that was known by instinct.

Re:Engineers can’t gauge their own interview performance on Thursday December 17, 2015 @03:04PM (#10754102)
Can you elaborate?
Re:Engineers can’t gauge their own interview performance on Thursday December 17, 2015 @02:33PM (#10753835)
Right. You'd only know someone was "hard to impress" with that information.
Re:Engineers can’t gauge their own interview performance on Thursday December 17, 2015 @02:29PM (#10753800)
Being easy to work with is certainly something interviewers should look for, but software doesn't care how nice you are. Your technical competency should ideally be measured outside of any subjectivity. Of course that's not possible but companies try their best.
Re:Engineers can’t gauge their own interview performance on Thursday December 17, 2015 @02:22PM (#10753744)
Beat me to it. When I interviewed at Google there were multiple interviewers and then there were multiple committees and people who look at their feedback.

Comparing interviewers to other interviewers makes a "He did above average" from a person who's hard to impress as good as a "She did really great!" from someone else.

Re:Everyone’s been rejected – these are our stories on Wednesday December 16, 2015 @08:22AM (#10744050)
Being charming, likable or whatever you want to call it is important. Technical competency should be the biggest factor but there are plenty of people who have that and are personable too.
Re:Killing SEO by Using Angular on Wednesday December 02, 2015 @06:57AM (#10662416)
All he did was provide a counter-example to "Search engines do not render JS".
Re:Killing SEO by Using Angular on Wednesday December 02, 2015 @06:25AM (#10662313)
Google's search definitely renders JS. The question is how much does it impact your page's rank to have it download and execute that JS?

I'm not sure, so I'd rather not think about it and just render my JS server side. React does with minimal effort https://facebook.github.io/react/docs/top-level-api.html#rea.... This also has the added benefit of making you think what the UX is like for people browsing without JS enabled.