FuckItJS: the Original Javascript Error Steamroller

#Computers

Tue, Jun 26th, 2012 10:00 by capnasty NEWS

Whether it's you that writes shitty code or it's Javascript that blows beyond any reasonable doubt, the FuckItJS jQuery plug-in will keep removing all the bits of code that generate an error "like mold on a piece of perfectly good bread," and recompile it until it works. Which it probably won't, ever because Javascript sucks, remember?

Through a process known as Eval-Rinse-Reload-And-Repeat, FuckItJS repeatedly compiles your code, detecting errors and slicing those lines out of the script. To survive such a violent process, FuckItJS reloads itself after each iteration, allowing the onerror handler to catch every single error in your terribly written code.

Please read the rest of the documentation. It's hilarious.

  870

 

You may also be interested in:

Inside the Business of Malware
Apple Probably Moving its Desktop Line to the ARM Platform As Well
The Macintosh Classic iPad Stand
The Psychology Behind Our Screen Savers
Playing GTA IV drunk