Object oriented programming came late to PHP. It has been around in other languages like C++, Ruby, Python and javascript for much longer, but its demand in PHP is becoming stronger. With that demand for the programming style there is an increasing demand for developers who can program in object oriented PHP. And those programmers typically earn considerably more than their fellow web developers whose background is only limited to procedural PHP.
But this does not tell the full story. Consider the following facts :
Procedural programming is inefficient PHP frameworks rely on object oriented PHP Drupal and other CMS systems are now object oriented There are more and more parts of WordPress becoming object oriented
Let's expand on the first fact as it is the most important one - everything else flows from it, i.e. object oriented programming is gaining popularity because it is more efficient. There are great applications written in the procedural style of PHP, but even the best end up in spaghetti code where functions and variables are mixed together. Add in HTML, CSS and javascript to this mix and the code becomes something that is, well, inefficient. Object oriented code is more organized. Distinct units are created for a single purpose. This means it is easier to find things in the code (ending those days of spending hours trawling through lines of spaghetti code to find a single element). It is also easier to add, replace or remove parts of code as it only has to be done once. With procedural programming, on the other hand, it is necessary to change every instance. Finally, object oriented programming gives the opportunity to developers to integrate code libraries from other resources. This is done without worrying about name collisions, even though some of the functions in the code might have the same name.
Разместите ссылку на эту страницу в социальных сетях. Так о ней узнают тысячи человек:
Facebook
Twitter
Мой мир
Вконтакте
Одноклассники
Нашли ошибку? Сообщите администрации сайта: Выберите один из разделов меню и, если необходимо, напишите комментарий
За ложную информацию бан на месяц
Разместите, пожалуйста, ссылку на эту страницу на своём веб-сайте:
Код для вставки на сайт или в блог: Код для вставки в форум (BBCode): Прямая ссылка на эту публикацию:
If you're new to object-oriented programming techniques, or if you have basic Python skills and wish to learn in depth how and when to correctly apply object-oriented programming in Python to design software, this is the book for you.
This new first to market book on PHP 7 introduces writing solid, secure, object oriented code in the new PHP 7, carfully presented in a well-paced clear fashion.
Completely revised and updated, this best-selling introduction to programming in javascript focuses on writing real applications. Eloquent javascript dives into the javascript language to show programmers how to write elegant, effective javascript code. Like any good programming book, Eloquent javascript begins with fundame ...
C++ is an object-oriented programming language which many universities will teach to early mid-level computer majors. Ever feel like programming, but don’t know where to start?
Данный материал НЕ НАРУШАЕТ авторские права никаких физических или юридических лиц. Если это не так - свяжитесь с администрацией сайта. Материал будет немедленно удален. Электронная версия этой публикации предоставляется только в ознакомительных целях. Для дальнейшего её использования Вам необходимо будет приобрести бумажный (электронный, аудио) вариант у правообладателей.