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

1

u/Denommus Jul 27 '13

Sure you can use a subset of the language, but THE COMPILER DOES NOT CHECK THAT YOU ARE USING A SUBSET OF THE LANGUAGE.

So? Every language has its own idiosyncrasies that are avoidable, compiled or not. Knowing what can go wrong is important for every developer, ever. And that includes CoffeeScript programmers.

The scope problem has a solution. That's it, why are we still fighting?

1

u/xardox Jul 31 '13

From the preface of the Unix-Haters Handbook:

“I liken starting one’s computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act.” — Ken Pier, Xerox PARC

1

u/Denommus Jul 31 '13

There is an expression in Portuguese that I don't think it makes sense in English, which says:

O que tem a ver o cu com as calças?

Translating literally, it means "what does the asshole has to do with the pants?", which is a way of saying that what you're saying is completely out of scope.

If you can tell me a language that you can program without worrying about a subset, I may agree. But every language has problems. Even haskell, common lisp or scheme, which are well regarded.