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. On Wed, Aug 26, 2015 at 8:18 AM, Greg Keogh <[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* >
