框架与引擎

A: What’s the difference between an “engine” and a “framework”

  • Q: These terms, and others, do seem very similar. They’re named from a conceptual standpoint, and so could be defined as follows:

    • A “framework” is a “foundation” or “support structure” around which you build your actual application. The .NET Framework includes not only a foundation (the CLR) but a series of libraries that provide standardized functionality that you would otherwise have to implement yourself. Other frameworks or foundations provide more specific areas of support, such as in UI, data storage, client-server interaction, etc. Frameworks provide a relatively static, generic structure on and in which you build something specific and unique.
    • An “engine” is a self-contained, but externally-controllable, piece of code that encapsulates powerful logic designed to perform a specific type of work. Engines exist to do “heavy lifting”, where you instruct it to perform some complex, abstract task, and it handles the specifics in a relatively efficient manner without further external guidance. SQL implementations, and other services that perform searching, are typically called “engines”. There are also physics engines, graphics engines, etc., which all have in common the idea that you tell it “do this” in some generic manner, and it handles the details.
  • Q: A framework is something like a set of libraries that are meant to be able to work together. It’s meant so you don’t need to go around implementing common algorithms, and data structures. You use those libraries (the framework) to arrange them in a way so the functionality they provide helps you solve a problem.

    • An engine is a system, you feed it with data and it does it’s job.
    • It’s worth noting that a library can have an “engine” and an engine can be built using a framework

An engine “does” the job for you.
A framework “simplifies” the job for you.

from: whats-the-difference-between-an-engine-and-a-framework

框架

框架:面向某个特定的应用领域,抽象出这一领域的通用开发模式,提供通用的功能模块,由使用框架的开发者在开发接口内,编码实现自己特定的业务逻辑,快速完成服务的开发。
如:


ref

  • https://www.cnblogs.com/chehaoj/archive/2010/12/09/1901049.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值