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

被折叠的 条评论
为什么被折叠?



