July 1, 2011
I think this may be the best JavaScript error I’ve ever been given: Uncaught TypeError: Object [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object [...]
Filed under: JavaScript |
Comments (0)
April 27, 2011
I just became aware of an interesting JavaScript ‘feature’. The code y = x % 1; is equivalent to y = x – Math.floor(x); because ECMA-262 says: … the floating-point remainder r from a dividend n and a divisor d is defined by the mathematical relation r = n − (d * q) where q [...]
Filed under: JavaScript |
Comments (1)
October 14, 2010
Something that often confuses people new to JavaScript is the use of the function keyword. That’s because it represents two completely different operations, both called function. First of all, there’s the lambda operator “function”. It works exactly like (lambda) in Scheme, {|| } in Ruby, or λ in lambda calculus. That is, it binds one [...]
Filed under: JavaScript, Programming |
Comments (0)
January 12, 2009
The SANS Institute has published a list of the Top 25 Most Dangerous Programming Errors. The list itself contains all the usual suspects–buffer overflows, SQL injection, relying on client code to perform data validation, and various other classics. If any of the items on the list strike you as surprising, you probably shouldn’t be writing [...]
Filed under: Java, JavaScript, Programming |
Comments (0)
August 9, 2008
A review of O’Reilly’s “JavaScript: The Good Parts” by Douglas Crockford
Filed under: JavaScript |
Comments (2)