background preloader

Pypes - Flow Based Programming

Pypes - Flow Based Programming

Lift :: Home Easy front-end framework The no-framework PHP MVC framework - Rasmus' Toys Page March 1, 2006 - Disclaimer: Since a lot of people seem to me misunderstanding this article. It isn't about OOP vs. Procedural programming styles. So you want to build the next fancy Web 2.0 site? I don't have much of a problem with MVC itself. Goals for this approach Clean and simple designHTML should look like HTMLKeep the PHP code in the views extremely simple: function calls, simple loops and variable substitutions should be all you needSecureInput validation using pecl/filter as a data firewallWhen possible, avoid layers and other complexities to make code easier to audit FastAvoid include_once and require_onceUse APC and apc_store/apc_fetch for caching data that rarely changesStay with procedural style unless something is truly an objectAvoid locks at all costs Example Application Here is the example application I will be describing. It is a form entry page with a bit of Javascript magic along with an sqlite backend. The Code This is the code layout. Input Filtering View - add.html

Related: