具有强大命名约定的框架的优点
我了解一些PHP,现在正处于选择框架的阶段。经过一番挖掘,我发现 CakePhp 是一个不错的选择。 在阅读了一些手册/教程并尝试了一些 cakephp 代码示例之后,我想知道 CakePHP 使用的命名约定的想法有多好。
他们使用术语:“约定优于配置”。您对此有何看法(请告诉我您的赞成/反对意见)?
非常感谢。
I know some PHP and now I'm the stage of choosing a framework. After some diggs, I've find that CakePhp is a good choice.
After some manual/tutorial readings and trying some cakephp code samples I'm wondering myself about how good is the idea of naming convention used by CakePHP.
They are using the term: "convention over configuration". What do you think about this (give me your pro/cons opinions )?
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这意味着您只需要指定应用程序的非常规方面。
It means you only need to specify unconventional aspects of the application.
如果您没有任何经验并且没有使用命名约定的习惯,也许是一个不错的选择。对我来说,在代码和文件名中有某种约定总是好的。一旦您熟悉了 Ruby on Rails 等具有这种理念的框架,您的 Web 应用程序的开发就会非常快。但是为了选择一个框架,您还应该分析其他事情。例如性能、可靠性、网络资源等。
If you don't have any experiencie and you don't have the habit of use a naming convention maybe is a good choice. For me, always is good have some kind of convention in code and filenames. And a framework with that philosophy like Ruby on Rails once you now the convention the development of your web app could be really fast. But for choose a framework there is another things that you should analyse. For example perfomance, realiability, resources in the web, etc.