Why do I need to use a popular framework?

后端 未结 18 2160
无人共我
无人共我 2020-12-01 18:11

I\'ve been a PHP developer for many years now, with many tools under my belt; tools that I\'ve either developed myself, or free-to-use solutions that I have learned to trust

18条回答
  •  情歌与酒
    2020-12-01 18:58

    Disadvantages.

    Most frame works are not object orientated. (code igniter does show some promiss)

    Most of the code is done via includes. trying to track down the problem is like pulling on a thread on a sweater, and having to unravel the entire garment to fully understand the creation.

    Most frame works have poorly written documentation.

    Most frame works try to do many many many things.

    I find from my experience developing with frame works that it takes a good 3-6 months to get on top of the code base. And its only after that period of time that you will find out weather you are trying to fit a square peg into a round hole. Given that most php projects want to be finished before that period has elapsed, it will cost employers more to get any project using a big "frame work" to fruition.

    Many of the php Frame works were written for php 4, and were written in a different enviroment. They have been extended greatly, but are showing their origins. The use of global constraints is particularly prevalent. I am hoping that php 6 puts most of them to death. Code igniter escapes most of this, but it is new, and has object orientated parts.

    Some frame works have written code that is not needed, and causes problems.. eg: CAKE has a most excellent model view controller, but its session handling is a disaster. Unfortunately frame works are not written in a modular way. Often its an all or nothing option.

    MOst programers "hack" the frame work to get it to do what they want. This leaves future programers sractching their heads. It also makes "upgrading" the frame work a impossibility.

    I have yet to see a frame work that implements unit testing. (how do you know that you have not broken it).

    give me a well written object any time. At least them you know the scope right off the bat.

提交回复
热议问题