Agree with that.

 

Best practice is a furfy. You don’t get one with server side either. JS is just 
more finicky. I often use Yeoman to generate a folder/project structure but 
never really use it verbatim. I am too opinionated for that :)

 

I do give credit to Greg’s point around multiple dependencies and seemingly 
brittle nature of it all.

 

-          Glav

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Stephen Price
Sent: Wednesday, 26 August 2015 12:26 PM
To: ozDotNet <[email protected]>
Subject: Re: Last words on AngularJS

 

I think the problem you are experiencing, Greg, is that you are looking for the 
"right" way to write Javascript apps. Is that what you mean by "best practice"?

 

I look at that as being similar to someone saying they are looking for the 
"right" woman. There is no "right" woman, there are just a large set of 
permutations of women. As soon as you try to apply rules of classification (ie 
a filter to apply to separate right from wrong) then you are applying an 
artificial, subjective ruleset. 

 

Try not to think of it in terms of right and wrong. Javascript is a guide, 
Greg. She can help you to find the path. 

 

  
<http://t.signauxdeux.com/e1t/o/5/f18dQhb0S1Ll8dDMPbW2n0x6l2B9gXrW7sKj5C56dQtgf3ZlND602?si=6200614728499200&pi=5ca12bb3-5c1e-4829-f544-699eb7379070>
 

 

On Wed, Aug 26, 2015 at 8:18 AM, Greg Keogh <[email protected] 
<mailto:[email protected]> > wrote:

Did you come across yeoman and angular generator?

https://github.com/yeoman/generator-angular#angularjs-generator-

Those tools scaffold/generate code base on “best practice”.

 

This is a great illustration of my gripe with the JS ecosystem.

 

Yeoman generator for AngularJS - lets you quickly set up a project with 
sensible defaults and best practices. There are many starting points for 
building a new Angular single page app, in addition to this one. To see a 
comparison of the popular options, have a look at this comparison.

 

Due to "best practise" confusion we need a JS tool to generate "sensible" code 
which wraps the underlying JS language and you need to install yo, grunt-cli, 
bower, generator-angular and generator-karma as dependencies to make it all 
work. I reads like an IT comedy sketch.

 

I'll bet there are people arguing that the "best practices" aren't the best and 
they know and have implemented better ones! I might write a best practice 
generator in JS and when it's bootstrapped far enough I'll get it to write 
itself.

 

Greg

 

Reply via email to