Clean SAPUI5

A Style Guide for Developers
Sofort lieferbar | Lieferzeit: Sofort lieferbar I
ISBN-13:
9781493222285
Veröffentl:
2022
Erscheinungsdatum:
01.01.2023
Seiten:
530
Autor:
Daniel Bertolozi
Gewicht:
1292 g
Format:
260x185x36 mm
Serie:
SAP Press
Sprache:
Englisch
Beschreibung:

SAPUI5 code needs to be easy to read and easy to update. Clean up your code with this guide from the experts! Learn how to leverage JavaScript features to write better SAPUI5 code. Then walk through detailed code examples and explanations for using modules, classes, functions, names, variables, literals, comments, code metrics, and more. Get the best practices you need for formatting, testing, implementation, and beyond! In this book, you'll learn about:a. Key Concepts Understand the foundation of SAPUI5: JavaScript. Explore key JavaScript ES6 features such as arrow functions, spread syntax, and more. Then walk through different types of SAPUI5 projects, from library projects to freestyle applications. b. Best Practices Learn the rules for clean code. Dive into best practices for decoupling modules, structuring functions, declaring variables and literals, using control flow statements and loops, handling errors, performing automated tests, and more. c. Practical ExamplesPut theory into practice. Use detailed code examples for each concept to help you differentiate between clean and messy SAPUI5 code.Highlights include:1) JavaScript 2) Modules and classes 3) Functions 4) Naming 5) Variables and literals 6) Control flow 7) Formatting8) Error handling 9) Comments10) Static code checks 11) Testing12) Implementation
Create descriptive program names, write strong comments, and format code correctly
... Preface ... 17... Who This Book Is For ... 17... How This Book Is Organized ... 18... Acknowledgments ... 20... Conclusion ... 221 ... Introduction ... 231.1 ... What Is Clean SAPUI5? ... 231.2 ... How to Get Started with Clean SAPUI5 ... 261.3 ... How to Handle Legacy Code ... 271.4 ... How to Check Code Automatically ... 291.5 ... How Does Clean SAPUI5 Relate to Other Guides? ... 291.6 ... Summary ... 302 ... JavaScript and SAPUI5 ... 312.1 ... JavaScript ES6+ Features ... 322.2 ... TypeScript ... 1062.3 ... Summary ... 1173 ... Project Structure ... 1193.1 ... Components in SAPUI5 ... 1193.2 ... Important Artifacts ... 1223.3 ... Freestyle Applications ... 1293.4 ... SAP Fiori Elements ... 1323.5 ... Library Projects ... 1393.6 ... Model-View-Controller Assets ... 1423.7 ... Summary ... 1444 ... Modules and Classes ... 1474.1 ... Controller Inflation ... 1484.2 ... Module Lifecycle ... 1794.3 ... Reusability and Testability ... 1874.4 ... Service Modules versus Class Modules ... 1974.5 ... Summary ... 2045 ... Functions ... 2055.1 ... Function Definition ... 2055.2 ... The Function Object ... 2065.3 ... Instance Methods ... 2085.4 ... Event Handlers and Callbacks ... 2115.5 ... Callback Execution Context ... 2115.6 ... Getters and Setters ... 2135.7 ... Anonymous Functions ... 2155.8 ... Function Parameters ... 2175.9 ... Promises ... 2305.10 ... Generators ... 2365.11 ... Function Body ... 2375.12 ... Invoking Functions ... 2455.13 ... Closures ... 2475.14 ... Summary ... 2486 ... Naming ... 2496.1 ... Descriptive Names ... 2496.2 ... Domain Terms ... 2516.3 ... Design Patterns ... 2526.4 ... Consistency ... 2536.5 ... Shortening Names ... 2546.6 ... Noise Words ... 2556.7 ... Casing ... 2556.8 ... Classes and Enums ... 2576.9 ... Functions and Methods ... 2586.10 ... Variables and Parameters ... 2606.11 ... Private Members ... 2656.12 ... Namespaces ... 2676.13 ... Control IDs ... 2686.14 ... Hungarian Notation ... 2706.15 ... Alternative Rules ... 2716.16 ... Summary ... 2737 ... Variables and Literals ... 2757.1 ... Variables ... 2757.2 ... Literals ... 2797.3 ... Summary ... 2978 ... Control Flow ... 2998.1 ... Conditionals ... 2998.2 ... Loops ... 3038.3 ... Conditional Complexity ... 3068.4 ... Summary ... 3139 ... Error Handling ... 3159.1 ... throw and try/catch Statements ... 3159.2 ... Using Error Objects ... 3179.3 ... Error Handling Using Messages ... 3189.4 ... Error Handling Using Controls ... 3209.5 ... Error Handling Best Practices ... 3239.6 ... Summary ... 32710 ... Formatting ... 32910.1 ... Motivation ... 32910.2 ... Vertical versus Horizontal Formatting ... 33010.3 ... Indentation ... 33910.4 ... XML Views ... 34110.5 ... Additional Considerations ... 34710.6 ... Formatting for TypeScript in SAPUI5 ... 35110.7 ... Building and Maintaining a Code Style Guide ... 36110.8 ... Formatting Tools ... 36310.9 ... Summary ... 36811 ... Comments ... 36911.1 ... Express Yourself in Code ... 36911.2 ... The Good: Comment Placement and Usage ... 37111.3 ... The Bad: Comments to Avoid or Refactor ... 38111.4 ... The Ugly: Special Comments ... 39111.5 ... Summary ... 39412 ... Static Code Checks and Code Metrics ... 39712.1 ... Linting ... 39912.2 ... Code Metrics ... 41712.3 ... Summary ... 43713 ... Testing ... 43913.1 ... Principles ... 44013.2 ... Code under Test ... 45113.3 ... Injection ... 45313.4 ... Test Methods and Journeys ... 45813.5 ... Test Data ... 46113.6 ... Assertions ... 46413.7 ... Summary ... 47014 ... TypeScript and Related Technologies ... 47114.1 ... TypeScript ... 47114.2 ... Web Components ... 48514.3 ... Fundamental Library ... 49414.4 ... Summary ... 49815 ... Implementing Clean SAPUI5 ... 49915.1 ... A Common Understanding among Team Members ... 49915.2 ... Collective Code Ownership ... 50015.3 ... Clean Code Developer Initiative ... 50115.4 ... Tackling the Broken Window Effect ... 50315.5 ... Code Review and Learning ... 50615.6 ... Clean Code Advisors ... 50915.7 ... Learning Techniques ... 51015.8 ... Continuous Learning in Cross-Functional Teams ... 51415.9 ... Summary ... 516... The Authors ... 517... Index ... 519

Kunden Rezensionen

Zu diesem Artikel ist noch keine Rezension vorhanden.
Helfen sie anderen Besuchern und verfassen Sie selbst eine Rezension.

Google Plus
Powered by Inooga