Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe common structure, not common parts. "Framework" is a good description: it gives you the shape, you fill it in.


Care to elaborate the difference? In both cases common code is extracted.


The article includes a crucial point about inversion of the flow of control. Somewhat exaggerated: You call into a library; a framework calls into your code.

The old archetype of a framework might be one which expects to control an overall event loop for your application.

In practice many things we would still recognise as frameworks allows you to undo that, but I still think it's a useful rule of thumb in that even many frameworks which technically allows you to remain in control of the overall flow tend to assume the framework will mostly dictate structure and flow.


The difference between a framework and a library is that you call the library, while the framework calls your code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: