Library vs Framework

Hôm trước có hỏi ở trên Twitter (mặc dù cái list của mình chả có mấy người :”>):

web framework or library framework :( Ai cho em lời khuyên :(

Hôm nay nhận được reply của anh Định:

Phân biệt nhé: library là you call me, framework là I call you ;)

Do trình độ mình có hạn nên đọc hơi mơ hồ :”>  Search thêm 1 chút thì nó là thế này:

A library is about reusable functionalities, but a framework is about reusable behaviors.
A library is something you call/inherit from your code, but framework is something that calls your code or provide services for your code.
A library is a collection of components and classes, where framwork is how abstract classes and components interact with each others.

Cái đoạn bôi đậm chính là cái anh Định nói đến :-x Rất cám ơn anh

[Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
This entry was posted in Concept. Bookmark the permalink.

One Response to Library vs Framework

  1. lastpenny says:

    Thế tại sao jQuery thì là library còn prototype và mootools lại là framework?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CAPTCHA image
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>