框架与引擎

框架提供了一组库,用于简化应用程序开发,避免重复实现常见功能。例如.NET Framework,它包括基础运行时和各种库。而引擎则是一个独立但可控制的代码块,专注于执行特定任务,如搜索引擎或图形引擎,它们在接收到指令后高效地处理复杂任务。引擎负责细节,框架则简化开发流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值