Simon Willison’s Weblog

Subscribe

Wednesday, 7th December 2005

Don’t be eval()

JavaScript is an interpreted language, and like so many of its peers it includes the all powerful eval() function. eval() takes a string and executes it as if it were regular JavaScript code. It’s incredibly powerful and incredibly easy to abuse in ways that make your code slower and harder to maintain. As a general rule, if you’re using eval() there’s probably something wrong with your design.

[... 431 words]

The Japanese game to end all Japanese games. Fighting girls who take pictures of each other’s panties.

# 9:48 pm

Django job in Kansas. This is a case study in how to write a great job advert.

# 9:53 pm

2005 » December

MTWTFSS
   1234
567891011
12131415161718
19202122232425
262728293031