框架与引擎

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

你可能感兴趣的:(programming,框架,引擎)