It's me ;-)

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 😡 Rất cám ơn anh

One thought on “Library vs Framework

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

Leave a Reply to lastpenny Cancel reply

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