Advertisement

Responsive Advertisement

Welcoming RibbonPHP

Is programming a website with PHP difficult? What's the easiest PHP framework out there right now? Questions like these are often asked by novice coders and the answers to these questions are right in front of their eyes. Let's welcome, RibbonPHP, the simplest PHP MVC framework today.


The motivation behind the development of RibbonPHP

Programming a PHP-based website should only require someone to master PHP, HTML, CSS and JS. By using RibbonPHP, you don't need to "learn RibbonPHP" but you only need to learn object-oriented PHP. This was my first motivation in developing RibbonPHP: I wanted to provide convenience to users.


Did you know that Rasmus Lerdorf said that all PHP frameworks suck?

At a conference event, one of the participants asked Rasmus Lerdorf, the father of PHP, the creator of PHP, who is still sitting in the development section, regarding his opinion on current PHP technology, namely the PHP framework, always the php framework. What is the opinion of Rasmus Lerdorf as the father of PHP regarding the PHP Framework which is now growing.

The answer is quite surprising indeed. Rasmus said "They All Suck", not referring to a single framework, but he said "All PHP Frameworks SUCKS!". This is an expression of disappointment from the father of PHP, towards the PHP framework which is now increasingly in demand by developers, web developers.

While saying "All PHP Frameworks suck" accompanied by laughter from the conference participants Rasmus added "Even though all PHP frameworks suck, but people still need frameworks, what people (developers) don't need is general purpose frameworks, frameworks made for general purpose. No one has a general problem, but everyone has a very specific problem, and trying to solve. Although a general purpose framework can provide solutions to specific problems but still a lot of things that are not needed present in a general-purpose framework.

For example, suppose a developer uses mysql, then the general purpose framework checks, what database is used, oh it turns out it uses mysql, okay, the MySQL class is loaded immediately, then the other libraries are loaded again which will be initialized so that the database can be used, after 2 milliseconds then there is another check by this general purpose framework, what database is used, oh it turns out it's still mysql, every request from this general purpose framework always checks every hooks. The php framework always executes the same code over and over again even when it's not needed.


There are at least 4 reasons why Rasmus says all PHP frameworks suck:

  1. Framework Repeatedly executing code that is not really needed.
  2. There are too many classes that are interrelated and depend on each other, so that even simple features require many classes to be loaded.
  3. Solutions that are complicated but useless, for example tools for database migration, a developer is required to write code that will affect the database schema
  4. Duplicating the Functions/Features of the Web Server, sometimes the PHP framework requires PHP code which actually the web server already provides, for example when handling URL patterns, and much more. In fact, PHP does not need these features because PHP is already integrated with the web server, unlike the PHP framework mecca, namely Ruby and Java.

Efficiency produces speed, this is actually the point that must be observed.


What saves RibbonPHP from Lerdorf's "insults"?

Well... RibbonPHP works on the principle of: (1) don't call it when it's not needed, (2) don't repeat yourself, (3) make it easy and fast. Thus, RibbonPHP seems to have survived Lerdorf's ridicule :)

Post a Comment

0 Comments