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.

  764

 

You may also be interested in:

Hacking Android Using Body Implants
C++ is a waste of time
Concept Keyboard With Arrangeable Keys
The Leopard is out
Infographic Explains the Origins of User Interface Symbols We Commonly See