相關主題
商品描述
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 Examples
Put 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) Formatting
8) Error handling
9) Comments
10) Static code checks
11) Testing
12) Implementation
商品描述(中文翻譯)
SAPUI5 代碼需要易於閱讀和更新。透過這本專家的指南來清理您的代碼!學習如何利用 JavaScript 的特性來撰寫更好的 SAPUI5 代碼。然後,詳細了解使用模組、類別、函數、命名、變數、字面量、註解、代碼指標等的代碼範例和解釋。獲取您在格式化、測試、實作等方面所需的最佳實踐!
在這本書中,您將學到:
a. 主要概念
了解 SAPUI5 的基礎:JavaScript。探索 JavaScript ES6 的關鍵特性,如箭頭函數、展開語法等。然後了解不同類型的 SAPUI5 專案,從庫專案到自由風格應用程式。
b. 最佳實踐
學習乾淨代碼的規則。深入了解模組解耦、函數結構、變數和字面量的宣告、控制流程語句和迴圈的使用、錯誤處理、自動化測試等的最佳實踐。
c. 實用範例
將理論付諸實踐。使用每個概念的詳細代碼範例,幫助您區分乾淨和雜亂的 SAPUI5 代碼。
重點包括:
1) JavaScript
2) 模組和類別
3) 函數
4) 命名
5) 變數和字面量
6) 控制流程
7) 格式化
8) 錯誤處理
9) 註解
10) 靜態代碼檢查
11) 測試
12) 實作