tailieunhanh - Practical prototype and scipt.aculo.us part 5

Practical prototype and part 5:The information in this book is distributed on an "as is" basis, without warranty Although every pre-caution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. | CHAPTER 1 WHAT YOU SHOULD KNOW ABOUT PROTOTYPE JAVASCRIPT AND THE DOM 11 The 80 percent rule As an informal corollary to the famous 80 20 rule Prototype pledges to solve the common problems that are shared by the vast majority of developers. Proposed additions to the framework need to demonstrate widespread need. But the common 80 percent shouldn t exclude the unique 20 percent either Prototype is designed to be easily extensible and customizable. Self-documenting code In the README file of Prototype Sam Stephenson states Prototype is embarrassingly lacking in documentation. In lieu of providing plain English documentation Sam did the next best thing he made the code itself easy to read and understand. These days Prototype enjoys exhaustive documentation both official and unofficial. But readability intuitive naming schemes and cleanliness are still virtues of Prototype s source code. Prototype s Purpose and Scope Prototype is all about the abstract rather than the concrete. It isn t a widget toolkit or a graphing library or a form validation utility but all these things can be built atop Prototype. Most famously which we ll cover in Part 2 uses Prototype as a basis for a rich library of effects and UI controls. Many JavaScript toolkits included allow you to do complex things without knowing much JavaScript. That s not what Prototype is for. If you don t want to get elbow-deep in JavaScript development you won t like Prototype very much. Prototype s Web Site You can get Prototype learn more about it and read current project news at Prototype s web site at . You ll also learn where to go if you get stuck how to contribute to Prototype and who uses Prototype in the real world. Prototype s download page always features the latest stable version plus instructions on how to build a bleeding-edge version if you re feeling particularly daring. Contributing to Prototype Prototype is an open source project that bears .

TỪ KHÓA LIÊN QUAN