FatFinger.JS
August 9, 2017 1:29 PM   Subscribe

FatFinger.JS
FatFinger is a library that allows you to run JavaScript full of typos. It will look at your code, attempt to guess at your intent, and do its best to make the code runnable. Rather than a tool to clean up code, FatFinger encourages the programmer to leave the code full of errors and fully embrace the chaos of JavaScript.

FatFinger works by looking at bad keywords and identifiers and finding the closest ones (according to Damerau-Levenshtein Distance) that work. It is a JavaScript antistyle, designed to counter the compulsiveness of programming.

To use, include the library and put your JS in a script tag with any misspelling of "text/javascript." You can also try out your shitty js here.
Role: programmer
posted by rottytooth (9 comments total) 3 users marked this as a favorite

This gives me anxiety lol
posted by pyro979 at 5:22 PM on August 9, 2017 [2 favorites]


Doesn't seem to be catching console misspellings. Reminds me of volkswagen.
posted by waninggibbon at 7:11 PM on August 9, 2017 [1 favorite]


@waninggibbon: in what context are you seeing the console fails? It's catching the console misspellings in the example on fatfingerjs.com. Feel free to post or open an issue for it.
posted by rottytooth at 6:59 AM on August 10, 2017


When I run the example on the homepage it leaves:

- constole.log
- conssole.lg
- conable.log

It corrects consoles.logg to bottles.counter. It gets console.lo, though.
posted by waninggibbon at 7:40 AM on August 10, 2017


Which browser are you using? I was able to recreate the problem with Firefox
posted by rottytooth at 9:29 AM on August 10, 2017


Chrome 60 on macOS Sierra.
posted by waninggibbon at 11:42 AM on August 10, 2017


Believe it is fixed now - thanks @waninggibbon
posted by rottytooth at 7:07 PM on August 10, 2017


Looks good on my end!
posted by waninggibbon at 10:23 AM on August 11, 2017


You are a monster, rottytooth.
posted by Literaryhero at 3:45 AM on August 17, 2017 [2 favorites]


« Older @MotifBot...   |   Shtacks: Type a painting... Newer »


You are not currently logged in. Log in or create a new account to post comments.