Skip to main content

yolk

Member since Dec 11, 2008

Recent Blog Comments By yolk

  • HTTP Status Codes For Invalid Data: 400 vs. 422

    Posted on Jan 22, 2014 at 5:30 PM

    @wizzszz Most public APIs use 4xx to indicate a business logic error, YouTube, Amazon, Twitter etc, so whether or not this fits the rigid definition of the standard, I would much rather go with what these large and technically savvy companies use/ Anyway, by your definition of HTTP status codes, 4... read more »

  • Javascript Array Methods: Unshift(), Shift(), Push(), And Pop()

    Posted on Jan 19, 2010 at 3:23 AM

    @Danilo, to add multiple items using splice, with no type checking etc. It even uses unshif ftw. function multiSplice ( arrayToAddTo, index, howmany, arrayOfItemsToAdd) { return arrayToAddTo.splice.apply(arrayToAddTo, arrayOfItemsToAdd.unshift(index, howmany) ); } apply takes a context and... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel