AngularJS风格指南 - 托德座右铭VS约翰爸爸VS Minko Gechev [英] AngularJS Style Guides - Todd Motto vs John Papa vs Minko Gechev

查看:129
本文介绍了AngularJS风格指南 - 托德座右铭VS约翰爸爸VS Minko Gechev的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pretty新角度,我想学习从一开始的良好做法。我来跨越三个角风格指南,他们都似乎是巨大的。我想知道的哪一个是最好给我采纳,但我没有立场上,法官,因为我有大角度的应用程序的经验。

I'm pretty new to Angular and I'd like to learn good practices from the beginning. I've come across three Angular style guides and they all seem to be great. I'd like to know which one would be best for me to adopt, but I'm in no position to be the judge on that, since I have little experience with big Angular apps.

那么,哪一个是最好的?甚至如果不是更好的话更直观/开发过程中产生的问题较少?也许你们中的一些有经验,所有这些,可以指出他们的优点和缺点是什么?

So which one is the best? Or even if not better, then more intuitive / causing less problems during development? Maybe some of you have experience with all of them and can point out their pros and cons?

链接:


  • 托德座右铭的:<一href=\"https://github.com/toddmotto/angularjs-styleguide\">https://github.com/toddmotto/angularjs-styleguide

  • 约翰爸爸的:<一href=\"https://github.com/johnpapa/angularjs-styleguide\">https://github.com/johnpapa/angularjs-styleguide

  • Minko Gechev的:<一href=\"https://github.com/mgechev/angularjs-style-guide\">https://github.com/mgechev/angularjs-style-guide

推荐答案

我已经经历了托德的爸爸和指南和90%的时间在同一个导游和使用他们都同意了。 Todds一个是短,容易执行,爸爸的一个是长,但几乎涵盖了一切。我想你最好是跟其中一方开始(preferably较短),当你来到新的东西(例如:你可能不会在第一,但一段时间后执行指令),然后去阅读指令部分。不要试图阅读一切从上到下,因为它可能会迷惑你。与最需要的人开始你去开始编写应用程序。

I have gone through Todd's and Papa's guides and 90% of the time both of them agree on same guides and usage. Todds one is short and easy to follow, Papa's one is long but covers almost everything. I think you better be start with either of them (preferably shorter one) and when you comes to new thing (ex: you may not implementing directive at first but after sometime) then go and read directives section. Don't try to read everything top to bottom as it may confuse you. Start with most needed ones you to go and start coding the application.


  • 文件结构(Minko) - 应用程序结构(爸爸)

  • IIFE(爸爸)

  • 模块(托德和爸爸) - 模块化(爸爸)

  • 控制器声明和最佳实践(Todd和爸爸)

  • 报关服务和最佳实践(Todd和爸爸)

  • 的意见(Todd和爸爸)

  • 命名(爸爸)

这些应该足够你开始和角度做大部分的开发工作,那么当你来到角前的新领域:如果你打算建立指令,然后去和阅读部分对这些指南,否则,你只会花几天阅读和思考导游没有做实际的工作,除非你使用它,你将不会看到自己实现一些最佳做法的背后原因,而且最好的方式。

These should be enough you to start and do most of your development work with angular, then when you come to new area of angular ex: if you're planning to build directive, then go and read that section on those guides, otherwise you will just spend days reading and thinking about guides without doing actual work, unless you do use it you won't see the best way to implement something by yourself moreover reasons behind the best practices.

这篇关于AngularJS风格指南 - 托德座右铭VS约翰爸爸VS Minko Gechev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆