I'm currently thinking about the Froncontroller refactoring and try to
get some inspiration where it is.
While going through the doc of Symfony I'm asking myself "why not use it
directly ?"
The answer seems obvious : one more dependency ... and a big one !
but on the other hand we will introduce one more dependency every time
we try not to reinvent the wheel so why might it still be a problem ?
-> performance ?
Actually I'm pretty sure the professionnaly written and tested code of
Symfony will probably more performant tha anything we write naively.
-> codebase size ?
Is that really a problem
-> freedom ?
Might definitely be a problem if we consider Symfony as a Framework but
we can also consider it as a Library and only use parts of it which we
call (I basically call framework something that calls your code and
library some code that we call). Symfony2 has been written as a
Framework around libraries and deliberately be designed in order to
enable project to use it as a Library.
Then we go to the question : if we add SF2 as a dependency why not add
Zend Framework (which is also designed to be a library) or anything else
? I have no answer to that question (except for the size of the
codebase) but this is why I'm asking you, what do you think of adding
such a big library as a potential dependency ?
Systho
_______________________________________________
Dev mailing list
[email protected]
http://lists.chamilo.org/listinfo/dev