CoffeeScript: https://github.com/joneath/infiniScroll.coffeeHere’s the short list of issues I had while working on the CoffeeScript version.
2. Ruby style automatic returns are awesome but I found that most of my functions do not need to return anything. This left me with a bunch of weirdly compiled code with return statements being abused. I tried forcing a return of undefined to clean up the compiled code but then my I CoffeeScript code had needless return statements everywhere :(
Gist showing crazy returns in compiled code if empty return statements are left our of CoffeeScript.
Gist showing crazy empty return statements in CoffeeScript to remove unneeded returns in compiled code.
3. Executing a typeof in a ternary resulted in horribly insane compiled code.
P.S. Please let me know how wrong I am. I would love to know CoffeeScript best practices!