MENU

Comments (1) Tech Trend, Workshops

Open discussion: PHP Raw vs PHP Frameworks

This month’s edition of #TechTrend Thursdays took a different approach where everyone was a key discussant on the topic above.
In June of 1995, Rasmus Lerdorf released the source code for PHP Tools to the public, which allowed developers to use it as they saw fit. Twenty years later, PHP has really grown to have a great market share in the web. Its used by some of the most common CMS like Joomla and WordPress, and by some of the most common frameworks.
However, there have been several debates as to whether PHP Raw/ Custom PHP is actually better than using PHP frameworks or viceversa.
 

Why Raw PHP is better than a Framework

    o

  • It’s faster as it doesn’t have the framework library overhead
  • o

  • You’re not bound by someone else’s rules or concepts
  • o

  • You can add in as many or as few 3rd party libraries as you choose
  • o

  • You can write to your own standard
  • o

  • You can license it as you choose
  • o

  • You build your own philosophy of the project
Advantages of frameworks

    o

  • Less Duplication of Code
  • o

  • Clear & Thorough Documentation
  • o

  • Built-in Libraries and Helpers
  • o

  • Easy Error Handling
  • o

  • Security and Encryption
  • o

  • It comes pre – loaded with different very useful classes


#TechTrend Thursdays is an m:lab East Africa initiative that focuses on technology trends in the mobile developer world and mentoring sessions for upcoming mobile developers by incubated startups, individuals or established tech companies.
 The following were the key discussion points:

    o

  • Frameworks have bugs and most of the time unnecessary overcomplicated, we roughly get to use only 10% – 15% of their features.
  • o

  • It takes less time to do a project while using framework
  • o

  • There too many frameworks and each has its own strengths hence still takes time to learn them
  • o

  • Is anyone building on raw php actually building his own custom framework?
  • o

  • Is it true you can’t actually claim to be a guru if you don’t know how to code raw?

 
Different lines of thought were raised by some of the best developers in the ecosystem.Two main points that came out boldly were that:

    o

  • Even though coding raw gives you a sense of control and code philosophy that you understand and is suited for your needs, a problem arises when someone else has to join in the project because of the learning curve involved.
  • o

  • Even though there many frameworks, each with its own strenght and weakness; their code is contributed by the best minds in the world and hence could be way superior to a custom made framework.

We also go to know of some projects in the ecosystem that the public can use and contribute code to:
 Michael Pedersen | PesaPi – https://github.com/pluspeople/pesaPi
Kago Kagichiri | USSD – https://github.com/kulemantu/ussd-tree
 

Comments are closed.