yolk
Member since Dec 11, 2008
- Profile: /members/1528-yolk.htm
- Comments: 3
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 »