Comments in code on eval()

note: this code uses eval(). eval()'s behind a pair of [].each calls

which filter it and make

it safe to use. use similar precautions and be careful using eval().

also, profile it for

performance. never expose eval() to user input. wash eval() before

and after use. do not

eat eval() or attempt to operate heavy machinery after using eval().

let’s see if that makes it to production.


Giles B.

Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com/

let’s see if that makes it to production.

Not a chance.

On Aug 17, 2007, at 9:26 PM, Giles B. wrote:

note: this code uses eval(). eval()'s behind a pair of [].each calls

which filter it and make

it safe to use. use similar precautions and be careful using eval().

also, profile it for

performance. never expose eval() to user input. wash eval() before

and after use. do not

eat eval() or attempt to operate heavy machinery after using eval().

let’s see if that makes it to production.

Giles, why do I feel like there’s only one tool in your toolbox? :wink:

On second thought, maybe it’s just your favorite hammer…

James Edward G. II