|
|
|
|
|
by ansman
4860 days ago
|
|
If you understand programming (there is a difference between knowing how to program and understanding, a lot of people lack the latter) there is absolutely no difficulty learning CS if you know JS. I've been coding CS for over a year now and I like it, I've never found it hard to debug and it's just easier to read. |
|
1. @ = this
2. -> to => solves almost every context problem
3. Object notation by simply using colons ':'
4. statement if condition5. jsondata?[2]?.hierarchy?.url
6. Optional brackets allow very terse/clean code:
7. (function_argument = 'default_value') ->8. Automatic return on last line
9. I also like how CS handles scoping, even though others might not. My very few globals are ALLCAPS and everything else is local scoped. I don't do things like {log, tan} = Math in the global scope just to save a few keystrokes elsewhere.
Add jQuery/Backbone/Underscore/Bootstrap to the mix and you can develop some very large, complex apps with CS in a very clean way. Of course, people may not like some of the above syntax but I love not having to write/parse 2x as much code.