HNHacker News
TopNewBestAskShowJobs

kshay

138 karma · joined August 5, 2013

submissionscomments
kshay··on What is negative engineering?
> Imagine how frustrated you’d be if every now and then, an application simply refused to add items to your cart, navigate to a certain page, or charge your credit card

Sort of interesting that this is framed as a wouldn’t-it-be-awful-if hypothetical; I feel like on the contrary, and for some value of “every now and then,” this is most people’s daily experience of interacting with most commerce websites.

> The truth is, these minor refusals happen surprisingly often, but users never know because of systems dedicated to intercepting those errors and running the erroneous code again.

...Or users do know, and just try again? Fault tolerance has been outsourced to the customer.

kshay··on Frank Sinatra Has a Cold (1966)
After you've read this, read the annotated version: Elon Green's interview with Gay Talese about the piece, interspersed into the text. http://niemanstoryboard.org/stories/annotation-tuesday-gay-t...
kshay··on Choosing an HTTP Status Code
Yes, nice nod to Mark Pilgrim. (Although his sites are now 200 GoDaddy.)
kshay··on Ask HN: Who are your favorite poets?
This is not better.
kshay··on Programmers are hipster librarians
The first thing that came to mind when I read "Wouldn’t it be convenient if the documentation... already had an answer for someone with the same problem?" was "Oh, like the comments on the PHP docs?"

It's a clunky mechanism and there's years' worth of cruft in there, but interspersed with years' worth of knowledge, and I've often wished other languages had a similar canonical repository of user-contributed information. I seldom touch PHP at the moment, but reflecting on how many times I found a quick solution to something simply by perusing the comments on a function's page makes me think this approach could have huge potential if implemented in a more elegant way.

kshay··on Flight rules for Git – What to do when things go wrong
For combining more than 2-3 commits prior to pushing, in cases where you only want to end up with one commit, I find `git fetch; git reset --soft origin/master; git commit` to be quicker than interactive rebase.
kshay··on AngularStrap v2.0
This looks very nice. The only thing that's a little confusing is that you provide a "Typeahead" component, but that was removed from Bootstrap 3 in favor of Twitter's standalone library which is also called Typeahead. I think it's great to provide the functionality (and clever to do it with Tooltip), but wonder if it should be called something else. (Autocomplete? Tipahead?)

Also, it would be nice if you used the inline annotation syntax (['foo', function (foo) {}]) to make the code minifiable.

kshay··on Meet the People Taking over Hacker News
This may just be the cache headers. Most sites have caching that tells browsers either "never cache this site" or "cache for a short time, but after that you must fetch a fresh version and can't use the cached version." HN's say "always try to fetch a fresh version, but if that fails, it's fine to show the user the cached version." So if your connection is actually down (vs. just slow), your browser's old cache of HN may still display, unlike most other sites.
kshay··on Quick tip for developers who use OS X
I saw this too... It looks like when you opt-click above the current line, it jumps back in your history by... the same number of lines as your cursor is above the current line? Sort of an unusual feature. Nevertheless, when I'm careful to actually click on the current line, it works as described.
kshay··on Google Has Officially Penalized Rap Genius For Link Schemes
Shouldn't "Justin Bieber All Bad Lyrics" just show you all Justin Bieber lyrics?
kshay··on How I saved $39,420 by not buying a domain without a prototype
403 I Didn't Buy a Domain
kshay··on Is Your Game Crap? This Fan Will Fix It for You
I thought this would be about a fan (mechanical air-blowing device)... like, so effective that you could wildly overclock your machine or something. Disappointed.
kshay··on Poll: What are your liked and disliked programming languages?
Actually, my dislike of PHP is entirely based on using it. If I hadn't had to "build projects" in it, I wouldn't care one way or the other.
kshay··on JSFuck – Write any JavaScript with 6 Characters: []()!+
The funkiness is really that []["filter"]["constructor"] is a function that behaves like eval(), or rather, it returns a function that when called executes the string that was passed to the constructor function. That's how they're actually running the code.

> []["filter"]["constructor"]("alert(1)")()

← PreviousPage 2 of 2