Crafting Clean Code with JavaScript and React: A Practical Guide to Sustainable Front-End Development

Ben Khalfallah, Héla

  • 出版商: Apress
  • 出版日期: 2024-12-14
  • 售價: $2,050
  • 貴賓價: 9.5$1,948
  • 語言: 英文
  • 頁數: 424
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868810039
  • ISBN-13: 9798868810039
  • 相關分類: JavaScriptReact
  • 尚未上市,無法訂購

相關主題

商品描述

Understand the guiding principles of "clean code" and how it applies to modern front-end development, accessibility (a11y), semantics, performance, and the Green Web. Highlighting key topics ranging from the foundations of JavaScript and HTML to popular frameworks like React, this book provides best practices to ensure code and applications are easier, more efficient and cost effective to run.

Using a web-based application as an example, you'll begin by cleaning and improving its code base by dividing the JavaScript into smaller, reusable and composable functions without side effects. Then, you'll improve the HTML code base by applying "Disability Driven Design" patterns, focusing on semantics before moving on to improving the architecture with a functional style (immutable, modular and composable).

Because the web today needs to be green with reduced loading time and energy consumption, you'll apply some tips and tricks to improve code performance and see how to best monitor it in a continuous and scalable way.

What You'll Learn

  • See how the JavaScript engine works and memory management.
  • Explore in greater detail key focus areas of accessibility and green computing
  • Make applications easier and more cost-effective to run
  • Look closely at clean and sustainable development using JavaScript and React

Who This Book Is For

Programmers, developers, engineers and product managers who are looking at cost-efficient ways to make their applications run more smoothly and efficiently.

商品描述(中文翻譯)

了解「乾淨程式碼」的指導原則,以及它如何應用於現代前端開發、無障礙設計(a11y)、語意、效能和綠色網路。本書涵蓋從 JavaScript 和 HTML 的基礎到流行框架如 React 的關鍵主題,提供最佳實踐,以確保程式碼和應用程式更容易、更高效且更具成本效益地運行。

以一個基於網路的應用程式為例,您將開始清理和改善其程式碼庫,將 JavaScript 分割成更小、可重用且可組合的無副作用函數。接著,您將通過應用「以殘障為驅動的設計」模式來改善 HTML 程式碼庫,專注於語意,然後再以函數式風格(不可變、模組化和可組合)改善架構。

因為當今的網路需要綠色化,減少加載時間和能源消耗,您將應用一些技巧來改善程式碼效能,並了解如何以持續和可擴展的方式最佳監控它。

您將學到的內容:
- 了解 JavaScript 引擎的運作和記憶體管理。
- 更深入探索無障礙設計和綠色計算的關鍵焦點領域。
- 使應用程式運行更簡單且更具成本效益。
- 仔細研究使用 JavaScript 和 React 的乾淨和可持續開發。

本書適合對象:
尋求成本效益高的方式,使其應用程式運行更順暢和高效的程式設計師、開發人員、工程師和產品經理。

作者簡介

Héla Ben Khalfallah is a highly accomplished frontend expert with nearly 15 years of experience in the technology sector. Throughout her career, she has taken on diverse roles, including expert, architect, lead developer, software engineer developer, and manager. Her passion for software engineering and coding extends beyond specific languages, though she is particularly interested in JavaScript, functional programming, React, clean code, and performance optimization.

An active contributor to the tech community, Héla frequently shares her knowledge on Medium and in publications like Better Programming and IT Next. She is also a speaker, having given conferences in both 2023 and 2024. Additionally, she leads meetups where she shares her expertise and enthusiasm with others.

作者簡介(中文翻譯)

Héla Ben Khalfallah 是一位成就卓越的前端專家,擁有近 15 年的科技行業經驗。在她的職業生涯中,她擔任過多種角色,包括專家、架構師、首席開發人員、軟體工程師和經理。她對軟體工程和程式設計的熱情超越了特定的程式語言,儘管她特別對 JavaScript、函數式程式設計、React、乾淨程式碼和效能優化感興趣。

作為科技社群的活躍貢獻者,Héla 經常在 Medium 和《Better Programming》及《IT Next》等出版物上分享她的知識。她也是一位演講者,曾在 2023 年和 2024 年舉辦過會議。此外,她還主導聚會,與他人分享她的專業知識和熱情。