Skip to main content

Posts

Showing posts from 2013

Web Development Best Practices (PHP Best Practices)

Websites development is one of the most challenging projects ever to develop, according to the large number of components you deal with, integrate, and manage in your application. For example, most web projects Deal with databases as their data source, and I ntegrate with external services called web services and APIs. As well the application M anages its own objects and components from views to models to controllers to plugins and so on. A skilled web developer should have a great/deep knowledge in most of components used in his system, and as well should ha ve intensive focus on how each component work and how can be used, what can be done, and what cannot. On the other hand, the huge amount of requirements, components to manage, and time frame given to you to accomplish your mission, and number of people in your team, all these factors together requires from you to organize your tasks, and priorities your requirements, do deep analysis and planning in order to have a hi

MVC Best Practices, (Tweaking Yii Framework)

Today, I'm going to talk about MVC, what is it, why we should use it in web development, then we'll dig a bit to Yii framework, to see how does it work, and talk about best practices of MVC's and Yii framework as well. On the other hand will talk about tweaking Yii framework to speed up a website performance. What is MVC? MVC is not only a 3 terms combined together. MVC is a design pattern, a software architecture, a standard used by developers to organize high scale projects. The main idea behind using MVC: code re-usability, separation of concerns, modularity, scalability, and maintainability. MVC is a Model, View, Controller. where the model represents the data layer, the view represents the presentation layer, and the controller responsible for handling requests, managing models/views.   What is Yii? Yii is a high performance, component based MVC framework, for developing web applications using PHP.   Yii, one of the fastest/efficient/lightweight/featur