作者:PYTEL, CHAD/ SALEH, TAMMER 出版社:ADDISON-WESLEY 出版日期:2010年11月09日 語言:英文 ISBN:9780321604811 裝訂:平裝 內容簡介TOPTHE COMPLETE GUIDE TO AVOIDING AND FIXING COMMON RAILS 3 CODE AND DESIGN PROBLEMS
AS DEVELOPERS WORLDWIDE HAVE ADOPTED THE POWERFUL RUBY ON RAILS WEB FRAMEWORK, MANY HAVE FALLEN VICTIM TO COMMON MISTAKES THAT REDUCE CODE QUALITY, PERFORMANCE, RELIABILITY, STABILITY, SCALABILITY, AND MAINTAINABILITY. RAILS"" ANTIPATTERNS IDENTIFIES THESE WIDESPREAD RAILS CODE AND DESIGN PROBLEMS, EXPLAINS WHY THEY’RE BAD AND WHY THEY HAPPEN羅AND SHOWS EXACTLY WHAT TO DO INSTEAD.
THE BOOK IS ORGANIZED INTO CONCISE, MODULAR CHAPTERS羅EACH OUTLINES A SINGLE COMMON ANTIPATTERN AND OFFERS DETAILED, COOKBOOK-STYLE CODE SOLUTIONS THAT WERE PREVIOUSLY DIFFICULT OR IMPOSSIBLE TO FIND. LEADING RAILS DEVELOPERS CHAD PYTEL AND TAMMER SALEH ALSO OFFER SPECIFIC GUIDANCE FOR REFACTORING EXISTING BAD CODE OR DESIGN TO REFLECT SOUND OBJECT-ORIENTED PRINCIPLES AND ESTABLISHED RAILS BEST PRACTICES. WITH THEIR HELP, DEVELOPERS, ARCHITECTS, AND TESTERS CAN DRAMATICALLY IMPROVE NEW AND EXISTING APPLICATIONS, AVOID FUTURE PROBLEMS, AND ESTABLISH SUPERIOR RAILS CODING STANDARDS THROUGHOUT THEIR ORGANIZATIONS.
THIS BOOK WILL HELP YOU UNDERSTAND, AVOID, AND SOLVE PROBLEMS WITH
-MODEL LAYER CODE, FROM GENERAL OBJECT-ORIENTED PROGRAMMING VIOLATIONS TO COMPLEX SQL AND EXCESSIVE REDUNDANCY
-DOMAIN MODELING, INCLUDING SCHEMA AND DATABASE ISSUES SUCH AS NORMALIZATION AND SERIALIZATION
-VIEW LAYER TOOLS AND CONVENTIONS
-CONTROLLER-LAYER CODE, INCLUDING RESTFUL CODE
-SERVICE-RELATED APIS, INCLUDING TIMEOUTS, EXCEPTIONS, BACKGROUNDING, AND RESPONSE CODES
-THIRD-PARTY CODE, INCLUDING PLUG-INS AND GEMS
-TESTING, FROM TEST SUITES TO TEST-DRIVEN DEVELOPMENT PROCESSES
-SCALING AND DEPLOYMENT
-DATABASE ISSUES, INCLUDING MIGRATIONS AND VALIDATIONS
-SYSTEM DESIGN FOR "GRACEFUL DEGRADATION" IN THE REAL WORLD |