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.

  514

 

You may also be interested in:

Before we had Photoshop...
Prototype Ergonomic Keyboards
Hewlett Packard's Racist Webcam
"Checking out groceries requires just enough mental-processing skills to be a prohibitive challenge for computers."
10/GUI