Deliver toBahrain
Clean Code in JavaScript

Description:

About this item:

Get the most out of JavaScript for building web applications through a series of patterns, techniques, and case studies for clean coding

Key Features

  • Write maintainable JS code using internal abstraction, well-written tests, and well-documented code
  • Understand the agents of clean coding like SOLID principles, OOP, and functional programming
  • Explore solutions to tackle common JavaScript challenges in building UIs, managing APIs, and writing states

Book Description

Building robust apps starts with creating clean code. In this book, you'll explore techniques for doing this by learning everything from the basics of JavaScript through to the practices of clean code. You'll write functional, intuitive, and maintainable code while also understanding how your code affects the end user and the wider community.

The book starts with popular clean-coding principles such as SOLID, and the Law of Demeter (LoD), along with highlighting the enemies of writing clean code such as cargo culting and over-management. You'll then delve into JavaScript, understanding the more complex aspects of the language. Next, you'll create meaningful abstractions using design patterns, such as the Class Pattern and the Revealing Module Pattern. You'll explore real-world challenges such as DOM reconciliation, state management, dependency management, and security, both within browser and server environments. Later, you'll cover tooling and testing methodologies and the importance of documenting code. Finally, the book will focus on advocacy and good communication for improving code cleanliness within teams or workplaces, along with covering a case study for clean coding.

By the end of this book, you'll be well-versed with JavaScript and have learned how to create clean abstractions, test them, and communicate about them via documentation.

What you will learn

  • Understand the true purpose of code and the problems it solves for your end-users and colleagues
  • Discover the tenets and enemies of clean code considering the effects of cultural and syntactic conventions
  • Use modern JavaScript syntax and design patterns to craft intuitive abstractions
  • Maintain code quality within your team via wise adoption of tooling and advocating best practices
  • Learn the modern ecosystem of JavaScript and its challenges like DOM reconciliation and state management
  • Express the behavior of your code both within tests and via various forms of documentation

Who this book is for

This book is for anyone who writes JavaScript, professionally or otherwise. As this book does not relate specifically to any particular framework or environment, no prior experience of any JavaScript web framework is required. Some knowledge of programming is assumed to understand the concepts covered in the book more effectively.

Table of Contents

  1. Setting the Scene
  2. The Tenets of Clean Code
  3. The Enemies of Clean Code
  4. SOLID and Other Principles
  5. Naming Things is Hard
  6. Primitive and Built-In Types
  7. Dynamic Typing
  8. Operators
  9. Parts of Syntax and Scope
  10. Control Flow
  11. Design Patterns
  12. Real-World Challenges
  13. The Landscape of Testing
  14. Writing Clean Tests
  15. Tools for Cleaner Code
  16. Documenting Your Code
  17. Other Peoples' Code
  18. Communication & Advocacy
  19. Case Study

Editorial Reviews

About the Author

James Padolsey is a passionate JavaScript and UI engineer with over 12 years' experience. James began his journey into JavaScript as a teenager, teaching himself how to build websites for school and small freelance projects. In the early years, he was a prolific blogger, sharing his unique solutions to common problems in the domains of jQuery, JavaScript, and the DOM. He later contributed to the jQuery library itself and authored a chapter within the jQuery Cookbook published by O'Reilly Media. Over subsequent years, James has been exposed to many unique software projects in his employment at Stripe, Twitter, and Facebook, informing his philosophy on what clean coding truly means in the ever-changing ecosystem of JavaScript.

Review:

4.1 out of 5

82.86% of customers are satisfied

5.0 out of 5 stars My Favorite Software Engineering Book Ever

N. · August 11, 2020

(function() { P.when('cr-A', 'ready').execute(function(A) { if(typeof A.toggleExpanderAriaLabel === 'function') { A.toggleExpanderAriaLabel('review_text_read_more', 'Read more of this review', 'Read less of this review'); } }); })(); .review-text-read-more-expander:focus-visible { outline: 2px solid #2162a1; outline-offset: 2px; border-radius: 5px; } This book was very important in my JavaScript journey. It teaches concepts that transcend the language of JavaScript (clean code, smart abstractions, architectural patters, working with others, etc.). I would recommend it for anybody novice to pro.I would not, however, recommend this as your very first JavaScript book/course. This book is mostly useful if you already have some JavaScript experience. If you are brand new to JavaScript, I would start with at least one more intro book/course before moving on to this.

5.0 out of 5 stars Should be mandatory read for developers

D. · July 6, 2020

I used to recommend great book "Secrets of the Javascript Ninja" by John Resig and Bear Bibeault as most important book to understand JavaScript for junior developers. This book is just as good and more relevant now that ES6+ and TypeScript are default and popular way to code in JavaScript. I highly recommend it.I'm a very experienced developer and still learned quite a bit I'd either forgot or never thought about. Book will make your code less smelly and worth reading cover to cover.

2.0 out of 5 stars Not very good

A.C. · April 16, 2022

The author is clearly very skilled with JavaScript, however there are numerous places where simple errors are very annoying. The author will say there are 8 ways a Boolean is false and then has a bullet list of 7 items, this type of error occurs in multiple places.The Author will clearly speak to the Law of Demeter and later in the book will violate it in the code examples.I was disappointed by this book.

5.0 out of 5 stars Excellent

H.J. · August 15, 2022

Excellent

An ok intro to clean code concepts

R.K. · September 7, 2020

(function() { P.when('cr-A', 'ready').execute(function(A) { if(typeof A.toggleExpanderAriaLabel === 'function') { A.toggleExpanderAriaLabel('review_text_read_more', 'Read more of this review', 'Read less of this review'); } }); })(); .review-text-read-more-expander:focus-visible { outline: 2px solid #2162a1; outline-offset: 2px; border-radius: 5px; } The book felt a little rushed. It is littered with grammar mistakes, and even the code snippets had syntax errors! I found the chapters very short and lacking in real-world examples; you could easily get more value by skimming the titles and searching the internet for more in-depth, update-to-date, and relevant information (which, honestly, it feels like that's how this book was written, by stitching together information from such searches).For better books and articles on clean code, I'd recommend looking into authors like Martin Fowler, Michael Feathers, and Robert Martin.

Take your time to absorb these concepts!

J. · May 23, 2022

The book is not for the feint-hearted. It makes you think a lot about the ways you write code .. all the way up to thinking about what we're even doing when we are creating software for users (it gets deep). Respecting the users' needs. And seeing fellow programmers as 'users' as well. In a way, tho the book is for JS developers, a tonne of what it covers, especially in the first few chapters, are really applicable to all people who design and create software or web apps.

Well written, clear and accessible

N. · February 13, 2022

The book addresses several issues to raise awareness before, during and after writing the code. Recommended

Clean Code in JavaScript

4.6

BHD27188

Type: Paperback

Quantity:

|

Order today to get by

Free delivery on orders over BHD 20

Return and refund policies

Product origin: United States

Electrical items shipped from the US are by default considered to be 120v, unless stated otherwise in the product description. Contact Bolo support for voltage information of specific products. A step-up transformer is required to convert from 120v to 240v. All heating electrical items of 120v will be automatically cancelled.

All product information listed on the site are from 3rd party sources, including images and reviews. bolo.bh is not liable for any claims or promotions mentioned on the product description or images with textual content. For detailed product information, please contact the manufacturer or Bolo support by logging into your account. Unless stated otherwise during checkout, all import taxes and duty are included in the price mentioned on the product page. bolo.bh follows the rules and regulations of sale in Bahrain and will cancel items in an order that are illegal for sale in Bahrain. We take all the necessary steps to ensure only products for sale in Bahrain are displayed. Product stock and delivery estimate may change with the seller even after placing the order. All items are shipped by air and items marked “Dangerous Goods (DG)” by the IATA will be cancelled from orders. We strive to process your order as soon as it is finalized.

Similar suggestions by Bolo

More from this brand

Similar items from “Algorithms”