Manning PHP in action

554 3.6K 0
Manning PHP in action

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tài liệu về học lập trình web bằng ngôn ngữ PHP cho tất cả mọi người.

[...]... highlighting important concepts In some cases, numbered bullets link to explanations that follow the listing Source code for all of the working examples in this book is available for download from www .manning. com/reiersol or www .manning. com/PHPinAction ABOUT THIS BOOK xxiii Author Online Purchase of PHP in Action includes free access to a private web forum run by Manning Publications where you can make... code into a more manageable state Chapter 12 finishes the subject of testing by moving the searchlight from unit testing to web testing Using the contact manager once again, it shows how to make sure the user interface is what the customer wanted and how to design the entire web application top-down Part 3: Building the web interface Part 3 is about the defining feature of web programming: the web interface... leader in the PHP community He is the founder of the PHP Security Consortium and the author of the HTTP Developer’s Handbook and Essential PHP Security He lives in Brooklyn, New York xxiv ABOUT THIS BOOK about the title By combining introductions, overviews, and how-to examples, the In Action books are designed to help learning and remembering According to research in cognitive science, the things people... may gain popularity through massive marketing efforts, but PHP clearly is not among them In this section, we will see how PHP encourages a pragmatic attitude and how convenient it is—being easy to use and deploy, having important security features built in, and supporting standard ways of doing basic things Finally, we will note how PHP also works with “enterprise” design and technology, including commercial... 8 shows how design principles and patterns work in the context of an extended example: date and time handling Part 2: Testing and refactoring Part 2 focuses on testing and refactoring (improving the design of existing code) from two perspectives: as quality assurance, and as a learning process Chapter 9 introduces unit testing and test-driven development, using a database transaction class as an example... access the forum and subscribe to it, point your web browser to www .manning. com/reiersol or www .manning. com/PHPinAction This page provides information on how to get on the forum once you are registered, what kind of help is available, and the rules of conduct on the forum Manning s commitment to our readers is to provide a venue where a meaningful dialog between individual readers and between readers... 11.5 Refactoring from procedural to object-oriented 262 Getting procedural code under test Doing the refactorings 264 11.6 Summary CONTENTS 263 267 xi 12 Taking control with web tests 269 12.1 Revisiting the contact manager 270 The mock-up 271 ✦ Setting up web testing 272 Satisfying the test with fake web page interaction 274 Write once, test everywhere 275 12.2 Getting a working form 277 Trying to save... are things they discover during self-motivated exploration Although no one at Manning is a cognitive scientist, we are convinced that for learning to become permanent it must pass through stages of exploration, play, and, interestingly, re-telling of what is being learned People understand and remember new things, which is to say they master them, only after actively exploring them Humans learn in action. .. the chapters in each part depend heavily on each other For example, it may be difficult to read the refactoring examples in chapter 11 without understanding the basics of unit testing as explained in chapters 9 and 10 Source code All source code in listings or in text is in a fixed-width font like this to separate it from ordinary text Annotations accompany many of the listings, highlighting important... practices, principles, and techniques, and how to apply them to the everyday challenges of web programming It is not a beginner’s book in PHP; it presupposes a minimum of familiarity with PHP or experience in other programming languages—and with the basic ideas and challenges of web programming How this book is organized The book is divided into four parts Parts 1 and 2 introduce the principles, patterns,

Ngày đăng: 24/01/2014, 15:04

Từ khóa liên quan

Mục lục

  • PHP in Action

    • brief contents

    • contents

    • preface

    • acknowledgments

    • about this book

    • about the title

    • about the cover illustration

    • PHP and modern software development

      • 1.1 How PHP can help you

      • 1.1.1 Why PHP is so popular

      • 1.1.2 Overcoming PHP’s limitations

      • 1.2 Languages, principles, and patterns

      • 1.2.1 Agile methodologies: from hacking to happiness

      • 1.2.2 PHP 5 and software trends

      • 1.2.3 The evolving discipline of object-oriented programming

      • 1.2.4 Design patterns

      • 1.2.5 Refactoring

      • 1.2.6 Unit testing and test-driven development

      • 1.3 Summary

      • Objects in PHP

        • 2.1 Object fundamentals

        • 2.1.1 Why we’re comparing PHP to Java

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan