HNHacker News
TopNewBestAskShowJobs

jpeterson

1,637 karma · joined March 28, 2008

submissionscomments
jpeterson··on Find the Bug in my Fizz Buzz Interview (2:47 video)
This was my first thought as well. If he instead initializes:

    var result = "";
and checks for:

    if (result.length === 0) {
    ...
in the third conditional, is there still a bug?
jpeterson··on Search: .lenght - Github
The same pattern is widely used to test whether an array-like object is empty. Since a length of 0 is also "falsey", it evaluates as false when the array has no elements. A typo in this case would result in the tested array always being "empty".
jpeterson··on Good Creative People are Never Bored
Yea, the author really means creative and motivated people.
jpeterson··on Philosopher invents clever iPhone case
Pretty cool, but what exactly qualifies someone as a "philosopher", and how is that relevant to this product?
jpeterson··on [dead]
Really? This is what we've come to, people?
jpeterson··on Job placement program for top students in Stanford's online AI class
I know a few people (who shall remain nameless) who collaborate and check each others

Why would someone do this for a free online course that gives no credit for a degree? I mean, the whole point is to learn, not get the highest grade. I really fail to understand people sometimes.

jpeterson··on Job placement program for top students in Stanford's online AI class
Well, finding out that I've no chance of making the top 1,000 in the class or any opportunity of a job is certainly a swift kick in the huevos, 2 days before the final...

:(

jpeterson··on Solarized color theme for Emacs 24
Can someone fill me in on why the regular solarized theme is not proper for Emacs 24? I've been using it for a few weeks, and it seems to work fine.
jpeterson··on Notch is no longer lead developer on Minecraft
Too late. HN has basically become reddit.com/r/programming in the last year or so. The glory days are over. You have to admire how long the quality remained high, though.
jpeterson··on Clojure & Python, Side by Side
Funny, I was thinking the opposite -- the Clojure code is far more readable.
jpeterson··on Oppenheimer's recommendation letter for Richard Feynman
Every time I read something like this, I feel a certain sense of regret for idolizing this man--alas, no one will ever say these kind of things about me.
jpeterson··on Underrated Features of PostgreSQL

    #> psql mydb
jpeterson··on Jeremy Ashkenas's proposal for minimalist JS classes
I can think of a few reasons:

* Some of us are actually comfortable with and enjoy programming in JavaScript. :)

* Are we absolutely sure as of now that adding the CoffeeScript abstraction will not introduce performance regressions and/or subtle bugs?

* Are the niceties and syntactic sugar of CS really worth the time I'll have to invest in mastering it? Or is this just another programming fad that everyone finds "cool" this month?

jpeterson··on On Stack Overflow's recent battles with the .NET Garbage Collector
How is this a defficiency in the C# language, exactly? Sounds more like an issue in the current version of the .Net CLR to me.
jpeterson··on Apple Lossless Audio Codec is now open source (Apache license)
iTunes does not support FLAC.
jpeterson··on How to turn a biased coin into a Fair Coin
Yes, and they're also useful for helping the interviewer feel "smart".
jpeterson··on Bounce your http requests around with bouncy
Yes. Better still would be a proper health-monitoring load balancer like HAProxy.
jpeterson··on Amazon Route 53 Reduces Hosted Zone Pricing
I'm a little confused here. Wouldn't client DNS resolution performance really depend on your local DNS cache (e.g. the DNS server at your ISP)? Nobody going to your site will hit Route 53 or MediaTemple's DNS servers directly. These only serve as the source of truth for the thousands of DNS caches out there that clients actually hit.
jpeterson··on [dead]
This might be the dumbest thing I've ever seen on Hacker News.
jpeterson··on How an argument with Hawking suggested the Universe is a hologram
If you're going to try to convince someone that our universe has multiple parallel futures, you should be ready to explain how that relates to our lives.

Isn't it a bit presumptuous to demand that any theoretical truth about the nature of the entire universe should be relatable to the life of a human?

jpeterson··on Airbnb's new safety page
Is this still Hacker News, or have I traveled to a strange and horrifying dimension where we've become Reddit? Enough Airbnb posts already!
jpeterson··on Bing Becomes a Distraction for Microsoft
If Microsoft can't bring it traffic... who can?

Facebook. Even though IE is still in the lead (for now), everyone "googles" and "facebooks" their way through the internet. No one "microsofts" anything.

jpeterson··on Remove any Site From Google (even if you don't control it)
Well, people are down voting me, but everyone ripped the developers of Diaspora apart for basically the same exact flaw in an early alpha release of their system. The Google fanboyism seems to be running strong here.
jpeterson··on Remove any Site From Google (even if you don't control it)
This is a pretty amateurish mistake, actually, and I'm shocked that it was in production at Google. Proper authorization checks are web programming 101.
jpeterson··on Aaronsw indicted for hacking MIT network to download millions of JSTOR docs
Alternate link, in case these are taken down: http://pastebin.com/9vjfkigY
jpeterson··on Why Quora is in trouble
Isn't this true of basically any post (the author expressing his belief)?
jpeterson··on MemSQL (YC W11) Raises $2.1 Million From Ashton Kutcher, SV Angel And More
Don't be "that guy".
jpeterson··on How To Safely Store A Password
Oh man, please tell me I'm misreading you, and you don't actually store your users' usernames and passwords in a cookie.
jpeterson··on What You Learned About Static Electricity Is Wrong
Been a few years since Latin class, but I believe it would be more like:

JOURNAL PAYWALLS DELENDAE SUNT

jpeterson··on Why I've built an alternative to Github
I imagine part of the use case is "quickly and easily getting back to a snippet within one of those old files", in which case the tarball and archive method won't really work.
← PreviousPage 4 of 12Next →