r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

http://donatstudios.com/CoffeeScript-Madness
207 Upvotes

315 comments sorted by

View all comments

Show parent comment

4

u/illamint Jul 25 '13

Yeah, over 20,000 lines of CoffeeScript in production for us and it's never been a problem. 10,000 or so at my last gig and, again, never a problem.

18

u/Eirenarch Jul 25 '13

Don't worry you'll find your problem at some point. It is there somewhere in those 20K lines :)

16

u/vincentk Jul 26 '13

Most likely, somebody else will find the problem. After first having to study 20K lines.

1

u/mitsuhiko Jul 26 '13

The big problem is that this scoping bug is usually related to the order in which you call functions. You might already have made that mistake, you just have not seen it yet.