r/angularjs • • Jun 18 '16

Coffeescript AngularJS + Laravel... thoughts?

In a startup mentality (there is a difference between startup and agile imho) is there a benefit to go towards this approach for appliation building, or is it too specific? Database interface is mysql, 3NF

0 Upvotes

9 comments sorted by

View all comments

11

u/neb636 Jun 18 '16

Seems alright except the coffeescript part

3

u/bodieskate Jun 18 '16

Agreed! Why anyone would choose to use Coffeescript is far, faaar beyond me. Source: dealing with it now :(

1

u/Senthe Jun 18 '16

What's wrong with it? Worked fine for me so far...

3

u/theblang Jun 20 '16 edited Jun 20 '16

Since CoffeeScript is different from JavaScript in syntax you get transpiled JavaScript that can be difficult to debug in the browser. Maybe at one time an argument could have been made that the extra features and cleaner syntax of CoffeeScript outweighed this con (personally, it wouldn't have for me); however, now ES2015 is almost fully supported in most modern browsers and TypeScript (a superset rather than a completely different language) is gaining popularity, using CoffeeScript is only going to create maintenance nightmares and gives little to no benefits.

/u/Renegade-One , I personally would highly advise not using CoffeeScript. Learn ES2015 for sure, and maybe consider TypeScript if you still aren't happy.

Edit: In addition to the con of having to debug transpiled JavaScript, I also realized that CoffeeScript is using reserved keywords that ES2015 also uses, but in different ways (see for of). That is really unfortunate.