News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Web Mozarts:
On Libraries and Dependencies
December 17, 2012 @ 13:42:08

On the Web Mozarts blog there's a recent post from Bernhard Schussek looking at some of the recent talk about dependencies in the PHP community sharing some of his thoughts on the subject and the Not Invented Here thought pattern.

The general attitude of people arguing against dependencies is that dependencies are a bad thing. Why could they be a bad thing? [...] Why do libraries have dependencies at all? Is a library with dependencies less decoupled than one without?

He includes some of the common reasons dependencies might be a bad thing (including maintenance issues and space concerns) as well as comparing two similar concepts - "coupling" versus "cohesion".

What does this mean in practice? Can we just increase the amount of dependencies as we like? My personal stance on this topic is that a library should require as little as possible dependencies to run (hard dependencies) - as long as it is highly cohesive - but support as many different libraries as it can (optional dependencies).
0 comments voice your opinion now!
library dependency management composer aura framework


blog comments powered by Disqus

Similar Posts

Palmcoder.net: Ruby on Rails for PHP developers

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginnerís Guide

PHPMaster.com: An Introduction to Dependency Injection, Service Locators & Factories (Part 1)

PHPMaster.com: Laravel: Is It Really Clean and Classy?

Jim Plush's Blog: How to Install the MyBic Firebug PHP Debugger


Community Events





Don't see your event here?
Let us know!


deployment language release series podcast code voicesoftheelephpant zendserver conference community development framework interview tips list symfony laravel api bugfix introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework