使用软件框架的优点
这些天我正在阅读有关用 python 和 Flex 实现大型项目的文章,人们经常称赞使用框架(如 Cairngorm、PureMVC 或其他)而不是传统的 OOP 编码。
我想我真的不明白使用FW的优势,这比经典编程的优点是什么?需要多大的工程才能使用FW?它主要用于网络应用程序?或者也可以用于桌面应用程序?
希望,所有这些疑问对你来说听起来并不愚蠢,我不是计算机工程师,只是电子工程师,所以我对软件架构的了解非常有限。
溴
I was reading these days about large projects implementation in python and Flex, and very often people praise the use of framework (like Cairngorm, PureMVC or others) over traditional OOP coding.
I think i dont really understand the advantage of using FW, which is the strong point over classic programming? how big should be the project in order to use FW? it is intended mainly for web-applications? or can be used for desktop apps as well?
hope, all these doubts dont sound stupid to you, i am not Computer engineer, just electronic, so my knowledge of sw architecture is very limited.
Br
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用框架与经典的 OOP 编程没有什么不同。
当您在类似的环境中编写项目时,您可能会看到自己一遍又一遍地编写一个框架(或一组工具)。
框架实际上只是代码重用 - 不是您编写管理常见任务的逻辑,而是其他人(或您)已经编写了它供您在项目中使用。
设计良好的框架将使您专注于您的任务,而不是花时间解决已经解决的问题。
Using a framework is not really any different from classic OOP programming.
When you write projects in a similar environment, you will probably see yourself writing a framework (or a set of tools) over and over again.
A framework is really just code reuse - instead of you writing the logic for managing a common task, someone else (or you) has written it already for you to use in your project.
A well designed framework will keep you focused on your task, rather than spending time solving problems that has been solved already.
我想在这里添加我的 2 美分,使用框架也将有助于更好地组织协作环境。如果您遵循标准框架,您的团队成员将很容易了解代码。
在企业应用程序中,使用框架有助于满足截止日期并提高代码质量。
I would add my 2 cents here, using a framework will also help a better organized collaborative environment too. Your team mates will get to know about the code easily if you are following a standard framework.
In enterprise applications using framework helps meeting the deadline and better code quiality.