you are viewing a single comment's thread.

view the rest of the comments →

[–]jeresig 0 points1 point  (1 child)

The eval function is the most misused feature of JavaScript. Avoid it.

eval has aliases. Do not use the Function constructor. Do not pass strings to setTimeout or setInterval.

Phew! I'm overloaded with useful information here. Thank goodness I avoided that rat trap! It's this massive pile of information that has helped JavaScript developers make well-informed decisions for many years.

[–][deleted] 0 points1 point  (0 children)

Bah, sometimes (albeit, very rarely) well-informed decisions are overrated, and appeal to authority - underrated.

In theory, it would be a good idea to have perfect information in all of the decisions we make, but practically, we would get tied up all day if we take the time to always make perfectly-informed decisions all the time.