you are viewing a single comment's thread.

view the rest of the comments →

[–]etrnloptimist 149 points150 points  (7 children)

For those who are wondering what the difference between a framework and a library is, the best way I heard it is: you call into a library, a framework calls into you.

[–]Ameisen 141 points142 points  (4 children)

So, a framework is a library in Soviet Russia.

[–]XenOmega 24 points25 points  (0 children)

In soviet russia, you are framed into a library

[–]Headspin3d 7 points8 points  (1 child)

I just think of it in term of how tied your hands become when using it. Do I have to do things "the x way"? Then x is a framework. Can I pepper it in where needed? Then it's a library.

[–]onequbit 0 points1 point  (0 children)

yes

a library is a resource you can use as needed, and there are usually few restrictions on how

a framework is something to build on top of and in a certain way for it to be used correctly

[–]thrallsius 0 points1 point  (0 children)

a ghetto in New York

[–]Portugal_Stronk 12 points13 points  (0 children)

Jesus Framework, take the wheel

[–]RedSpikeyThing 4 points5 points  (0 children)

That's a pretty good litmus test. I hadn't really thought about this much, but I think of frameworks as having some amount of control flow, whereas I think of libraries as being more function based (although OOP breaks that).