Web Programming in PHP with Design Patterns by 1098399
Web Programming in PHP with Design Patterns by 1098399
Braam, “Design Patterns applied to Web Programming in PHP,” 2004, http://www.cs.vu.nl/~pajbraam/Essay_OOP.pdf. [6] S. McConnell, Code Complete. Abstract: Programmers face many problems when designing and programming a web site. Most of these problems have been dealt with before and by industry professionals with years of programming experience behind them. It is possible for a programmer to make use of this experience by way of design patterns, instead of coming up with solutions to …
1 Web Programming in PHP with Design Patterns 1. Introduction: Over the years, as Internet web sites have become more and more complex, the need for good and careful design has become a major issue in the web development community. Although the issue of design has been dealt with in classical software engineering in great detail, it has only begun to be dealt with by web developers. The goal of this paper is to look at web site design from the perspective of PHP programming and see how using generalized solutions to problems, Design Patterns, can greatly aid in the design process. 2. The Programming Language: PHP Hypertext Preprocessor, more commonly known as just PHP, is a server-side scripting language created specifically for web programming [1]. As a server-side scripting language, PHP code is interpreted by the web server at run-time (when the web page is called for by a client) and not compiled like traditional programming languages such as C++.
The server translates the PHP code into Hypertext Markup Language (HTML) each time a page is requested and sends the resulting HTML document to the client computer for the web browser to display. The actual PHP code is not seen by the client, only the HTML [1]. In the nine years since PHP was conceived [1], it has moved from a small scale scripting language used by non-professional web programmers to a powerful language used in large scale enterprise applications [2],[3]. Many professional web programmers are drawn to PHP instead of other similar languages (Perl, ASP and Python to name a few) because of its specific strengths [1],[3]. First of all PHP is free. It costs nothing to put on a server and use. It is also an open source programming language, meaning that anyone has access to its inner workings and is allowed to modify and add to the language. On top of all that, PHP has a large number of built-in function libraries, giving programmers the ability to do many different tasks without having to create the code themselves [1]. An example of this would be the built-in interfaces with most of the well- known databases (electronic collections of easily searched data), such as Oracle and MySQL [1]. This makes PHP a powerful tool when designing large-scale (and even small-scale) web sites. Although PHP started as a simple language, it has grown into a language capable of supporting many of the more advanced programming concepts seen today [3]. With the advent of PHP5, the most current release of PHP, the language is capable of supporting almost all of the object-orientated features languages such as C++ and Java are capable of [3]. Unlike previous releases of PHP, PHP5 has the ability to encapsulate data and class member functions, as well as create abstract classes and interfaces [2],[3]. The ability to do object-orientated programming with PHP, as well as procedural programming, opens up a host of possibilities for web programmers seeking to find solutions to problems faced while designing and programming a large scale web site…
|
Web Programming in PHP with Design Patterns by 1098399
( 23.0 KiB - 49 hits )
|

Entries












