Chapter 1. The Tenets
As applications on the Web become larger and larger, how can web developers manage the complexity? In many ways, we need to turn to some of the same good practices used in other types of software development. Generally speaking, these practices are not yet pervasive in web development—that is, in software development primarily using HTML, CSS, JavaScript, and various server-side scripting languages (we’ll use PHP for the server-side scripting in this book, but the same principles apply to many other languages). Furthermore, the uniqueness of these technologies poses a challenge for developers trying to apply good practices in a cohesive way.
One of the themes that you’ll see repeated in this book is the importance of extending modular development practices to web development. This book presents concrete, practical techniques to achieve modularity in large web applications. In the process, we’ll explore many of the finer aspects of HTML, CSS, JavaScript, and PHP. You’ll find that most of the techniques are relatively simple to apply, and none rely on the use of specific frameworks. That said, it’s important to realize that they don’t preclude you from using various frameworks, either; to the contrary, these techniques create a better landscape in which to use many frameworks. As a case in point, we’ll look at several examples that utilize the Yahoo! User Interface (YUI) JavaScript library.
At the outset, it’s important to establish why the techniques that we’re ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access