컴포넌트 vs 프레임워크

https://stackoverflow.com/questions/22300545/what-is-the-difference-between-component-and-framework

Com­po­nent:

  • Component is essen­tial­ly a set of func­tions that you can call, these days usu­al­ly orga­nized into class­es. Each call does some work and returns con­trol to the client.
  • 컴포넌트는 너가 호출하는 함수의 집합이다. 오늘날 보통은 클래스로 구성되다. 클래스나 함수를 호출하면 작업을 하거나 제어를 사용자에게 반환한다.
  • Component you can use what­ev­er tiny part helps you.
  • 너에게 어떤 작은 기능적 도구로써 도움이 될 수 있다.
  • Component is a tool.
  • 컴포넌트는 도구이다.

Frame­work:

  • framework is a skele­ton where the appli­ca­tion defines the “meat” of the oper­a­tion by fill­ing out the skele­ton. The skele­ton still has code to link up the parts but the most impor­tant work is done by the application.
  • 프레임워크는 뼈대이다. 작동의 요점은 뼈대를 채워나가는 것이다. 프레임워크는 파트를 연결하기 위해 코드를 가지고 있지만, 가장 중요한 작업은 어플리케이션에 의해 작동한다.
  • Framework is a way of life.
  • 프레임워크는 전체 작동의 방법이다.
  • Framework you must com­mit your entire project to.
  • 프레임워크는 너의 초기 프로젝트에 커밋을 해야한다.


결국 내가 생각할 때 컴포넌트와 프레임워크의 가장 큰 차이는 제어를 반환하면 컴포넌트 제어를 반환하지 않는 대신 내부적으로 컴포넌트를 가지고 있으면 프레임워크라고 생각된다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다