티스토리 뷰

Martin Fowler 의 library 와 framework 정의

library

A library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.

라이브러리는 개발자가 호출할 수 있는 필수적인 함수의 집합이다. 요즘은 보통 클래스로 구조화된다. 각각의 호출은 주어진 일을 하고 클라이언트에게 제어권을 넘겨준다.

framework

A framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by subclassing or by plugging in your own classes. The framework's code then calls your code at these points.

프레임워크는 어떤 추상적인 디자인에 어떤 행동들을 만들어서 구체화한다. 이것을 사용하기 위해서는 프레임워크안에서 다양한 공간에 행위를 만들어서 서브클래싱하거나 자신의 클래스를 플러그인한다. 프레임워크의 코드는 이런 포인트에서 개발자의 코드는 호출한다.

James Curran by http://honestillusion.com

마음에 드는 설명이다.

http://stackoverflow.com/a/148781 
As I've always described it:
A Library is a tool.
A Framework is a way of life.
A library you can use whatever tiny part helps you. A Framework you must commit your entire project to.

기타

  • A framework calls your code.

참고자료

댓글