📜 ⬆️ ⬇️

Pure javascript. Introduction

After reading the clean-code-javascript book by Ryan McDermot, I decided to write a series of articles on the translation of this book.

Table of contents:



image


Software engineering principles, from Robert S. Martin’s book Clean code, adapted for JavaScript.

This is not a style guide. This is a guide to writing readable, reusable, and supported javascript code. Not every principle here should be strictly adhered to. These are principles and nothing else, but they are formed over many years of collective experience by the authors of the clean code.

Our software engineering craft is a little over 50 years old and still learning a lot. When the software architecture becomes as old as the architecture itself, maybe then we will have more stringent rules that need to be followed. At the moment, let these principles serve as a stumbling block with which you will evaluate the quality of the JavaScript code that you and your team are writing.
')
One more thing: knowing these principles will not make you immediately the best software developer, and if you adhere to these principles for many years does not mean that you will not make mistakes. Each piece of code begins as a draft, like a piece of wet clay that takes on its final form. Finally, we fix the flaws when we review the code with our colleagues. Do not reproach yourself at the first sketches of code that need improvement. Improve your code instead.

Source: https://habr.com/ru/post/319472/


All Articles