News for hackers. Stuff that matters.
Re:Libraries vs Frameworks by nsomaru on Thursday July 14, 2011 @06:17AM (#2762406)
I guess the best of both worlds for a beginner like myself is to find a framework (Django) that treats its parts as libraries (i.e. you can swap out any one part for another).

Granted, it's not completely seamless, but the option exists. Many Django programmers, for example, do not use the standard templating language available with Django.

Re:Libraries vs Frameworks by lucian1900 on Thursday July 14, 2011 @07:34AM (#2762570)
Sadly, Django is both highly interconnected and has less than clean design. So while you can swap one bit for another, you'll still depend on all of django, and the stranger will be obvious.
Re:Libraries vs Frameworks by zeemonkee on Thursday July 14, 2011 @07:42AM (#2762586)
A lot of useful stuff in Django also lives in 3rd party apps that depend on Django-specific things e.g. authentication or templates.
Re:Libraries vs Frameworks by l0st3d on Thursday July 14, 2011 @06:32AM (#2762440)
I think that point is kinda conceded in the post. The problems arise when you get to some part of the framework that cannot be swapped out. In my experience, almost every project I've worked on has got to this point. The ones that didn't were small things that were basically 'done' in under 6 months. Software being 'done' tends to be a sign of a failing business, as you've run out of places to grow into, or things to optimise. That said, I've learned a lot from working with frameworks, and I would support your statement that frameworks are great for beginners.

Disclamer: I wrote the article, but didn't post it to hacker news

Re:Libraries vs Frameworks by nsomaru on Friday July 15, 2011 @06:15AM (#2766867)
Could you provide some examples? It's interesting to know what problems others come up against when working with frameworks...