FatFingerJS
source link: http://fatfingerjs.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
FatFingerJS
Daniel Temkin, 2017
on GitHub
FatFinger is a JavaScript library expanding JS to allow typos and misspellings as valid code. Why bother with clean, well-formatted JS when you can write this and FatFinger will guess at your intentions?
<script type="text/javascript" src="fatfinger.js"></script> <script type="text/javoscript"> // any misspelling of javascript works in the type attribute above vart x = "herrrllo werld" dokkkkumint.rit3(xx) </script>
Don't bother with semi-colons. Open brackets and never close them. Misspell keywords, variables, and functions.
- Neutralize the autocorrect mentality
- Question forty-five years of advice against expressiveness in the text of code
- Play against the compulsiveness of programming
- Embrace the chaos of JavaScript
Test out your code:
How To Use
Include fatfinger.js in your project, add a script tag with any misspelling of JavaScript containing your FatFingered code. You'll need to declare all your vars as if option explicit; FatFinger assumes implicit declarations are actually misspelled statements. FatFinger has a poor concept of scope, so if you're doing fancy OO stuff, ask yourself: is there a good reason I haven't made everything global??? If not, this might not be the right library / coding style for you.
See Also
Previous Languages
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK