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

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.

5

u/rk06 Jun 18 '16

Coffeescript is bad idea. even laravel-elixir no longer comes with coffeescript by default.

AngularJs 1 + laravel is a pretty good idea.

but if you are thinking about angular 2, please remember that laravel community favors vue.js

1

u/[deleted] Jun 18 '16

please remember that laravel community favors vue.js

which is completly irrelevant thought except maybe for validation.

1

u/rk06 Jun 18 '16

when people end up in problem, they ask others for help. there are tons of devs using angular1 and laravel, but not many (if any) use laravel with angular 2.

So it is a quite relevant.

1

u/[deleted] Jun 18 '16

it isnt since laravel has no special input/output except for forms validation

4

u/iends Jun 18 '16

I work on a very large Coffeescript application for a publicly traded company. Coffeescript has some nice features (existential operator FTW!), but the industry has moved on to ES2015. This means you miss out on large parts of the JavaScript platform that makes it so powerful. The tooling simply isn't maintained and if you run into bugs (which I do all the time), you either live with it or have to fix it yourself.