Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating code patches


It is often stated in three simple statements:

  • Do it

  • Do it right

  • Do it right now

The statement is simple, but the intent is not. Every manager wants the task to be done, and it is you, the programmer's, headache to do it somehow. You often end up writing erroneous code. The misery does not end here; you happen to push it to Subversion at the end of the day to tell your manager what you worked on during the day. In this rush, you happened to push some bugs to version control. Thus, any fellow member working in another time zone will end up screwing his working copy by taking updates from version control. Now, there will be two types of resource wastage:

  • That member (and any other member who's done the same) will spend time in locating the bug—a waste of person hours

  • Having located the bug, you will have to undo the changes and make a few other changes—a waste of the previous person's day (when you pushed the buggy code)

Not only this, it will be an abuse of the version control...