特定应用的首选设计模式/架构
和平与爱!
我对 Web 开发还比较陌生,主要关注 PHP、JS 和 MySql。到目前为止,我在编码中主要练习了基本的“意大利面条”/过程方法,我认为是时候继续学习和体验 OOP 了。
我正在开始为一家小型企业客户开发一个项目,从头开始为他们开发一个应用程序来管理他们的产品和客户、创建报价、订单、CRM 和分析(数据库查询、图表等)。类似于小型定制的 ERP。
现在,我还不知道任何 OO 设计模式,我的问题是 - 基于这种应用程序 - 您会考虑使用哪种设计模式来开发它,为什么?
一旦我得到了你的想法,我就可以集中精力研究一种方法并开始实施它。我只是不想研究 10 种模式只是为了知道应该使用什么。
ps1.我看到很多“MVC”飞来飞去 - 这可以是我的答案吗?
PS2。我相信我想从头开始编程,而不是使用现有的框架。这是因为我希望直接学习 OOP 的基础知识。
谢谢你!
Peace and Love!
I'm relatively new to Web Dev, focusing on PHP, JS and MySql. Until now I've practiced mainly basic "spaghetti" / procedural approach in my coding, and I think it's time to move on to study and experience OOP.
I'm starting work on a project for a small business client, where I'm developing for them from scratch an application to manage their products and customers, creation of quotes, orders, CRM and analysis (DB queries, charts etc.). something like a small tailor-made ERP.
Now, I don't know yet any of the OO design patterns out there, and my question to you - based on this kind of application - what design pattern will you consider for developing it and why?
Once I get your ideas I can focus and study one approach and start to implement it. I just don't want to study 10 patterns to just know what I should use.
p.s.1. I see lots of "MVC" flying around - could this be my answer?
p.s.2. I believe I want to program it all from scratch, not using an existing framework. This is because i wish to learn firsthand the fundamentals of OOP.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还认为您应该首先尝试 MVC 框架以熟悉该模式,然后再尝试自己开发一个。这里有我使用 Google 找到的 PHP MVC 框架的列表。
mvc 框架列表
I also think that you should first try out an MVC framework to get yourself familiar with the pattern before trying to develop one yourself. Here there's a list of PHP MVC frameworks that I've found using Google.
list of mvc frameworks
MVC 是您想要熟悉的第一个模式。我建议尝试 MVC 框架,例如 CodeIgniter 来帮助您掌握窍门。
MVC is the first pattern you will want to familiarize yourself with. I suggest trying out an MVC framework such as CodeIgniter to help you learn the ropes.