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.

  571

 

You may also be interested in:

Linux slips into Microsoft's warm, deadly embrace
How Apple Will Kill the Desktop Computer
Storyboard: Converts Videos Into a Readable PDF Files
How a 16-yo Kid Made His First Million Dollars Following His Hero, Steve Jobs
IBM Develops Even Smaller Microprocessors Using Carbon Nanotubes