douwei7203 2011-10-25 07:25
浏览 19
已采纳

关于框架的一般问题[已结束]

Ok so I've been programming in PHP for several years now. I always enjoyed building content systems from the ground-up for practice (forums, blogs, comics, general CMSs etc), however in the past few months I have come to the conclusion I am focusing too much time in doing redundant work like building the base content system every time - fetching information from databases, making the basic layout actually work before bringing any valuable content management to it, etc. Now, im aware of development frameworks such as Zend, CakePHP, etc; but I've always failed to work with them to my satisfaction, and seemed to give up on them rather quickly.

So my questions are:

  • How customizable are those frameworks? Can I really get full freedom with them once I learn to use them properly and get to work on actual features instead of wasting weeks on getting a simple base ground up and running?
  • How much can I write my own functions for doing stuff in the background?
  • Are the results usually fast? Or do the frameworks provide slow and heavy code?
  • How intuitive is it to really get them working in my favor and how easy is it to get past the basics nd working with what's really important?

I'd love any insights in this subject. Also I'd love to know if any of you have any preferred frameworks to work with. Thanks in advance!

  • 写回答

6条回答 默认 最新

  • dpj96988 2011-10-25 07:48
    关注

    How customizable are those frameworks? Can I really get full freedom with them once I learn to use them properly and get to work on actual features instead of wasting weeks on getting a simple base ground up and running?

    It depends. If you get a framework that have everything included you'll spend time to find out the right way to use it. One approach I could recommend is to get a micro framework and to add everything you need by yourself. I. e. you get microframework like Slim or Glue, that provide routing, add you favourite ORM like propel, doctrine, red bean or Pear DB, add your favorite view engine like smarty, twig or anithing else, add Zend modules that you need in your application or Pear classes, add third party tools. This is a longer, but more flexible approach.

    How much can I write my own functions for doing stuff in the background?

    This method allows your to write everything that you cannot find ready for your work.

    Are the results usually fast? Or do the frameworks provide slow and heavy code?

    Thus performance completely depends on you. It does not much depend on the factors that you cannot control.

    How intuitive is it to really get them working in my favor and how easy is it to get past the basics nd working with what's really important?

    It depends on the complexity of your planned project. You can add parts as you need more functionality.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题