JavaRush /Java Blog /Random EN /Bookmark: “clean code” - articles and lectures on the rul...

Bookmark: “clean code” - articles and lectures on the rules of coding and refactoring

Published in the Random EN group
For the convenience of CodeGym students, we decided to collect lectures and articles on the most important topics in programming. The eighth collection is about how to work with code: the rules for writing high-quality code and the rules for refactoring, writing comments on the code. In the mini-guide, we briefly outline the essence of the articles, and if you follow the link, you can learn more about the topic of interest. Add a collection to your bookmarks and return to it when you need to. Bookmark: “clean code” - articles and lectures about the rules of writing code and refactoring - 1

Articles and lectures

Rules for writing code: from creating a system to working with objects

This is a small guide for writing higher level code. The article lists the basic rules and concepts that relate to creating a system, working with interfaces, classes and objects. The structure of the article is formed “from top to bottom”, that is, from the general structure of the appendix to more narrowly focused details.

Code writing rules: the power of proper naming, good and bad comments

This article will discuss the correct naming of certain elements. Correct names make the code much easier to read. Also in the article there are examples of comments in the code.

Best Practices for Java Code Analysis

Development tips are never redundant, especially if you are just starting to write code. The article contains recommendations for code analysis that are specific to the Java language.

Comments in Java: not so simple

When monitoring the quality of code, it is important to keep in mind the quality of the comments that accompany that code. This article will introduce you to the topic of commenting and explain why it is worth taking the time to comment on.

5 helpful tips for maintaining someone else's code

Working with code that someone else wrote can lead to some problems. The code may refer to technology that is unfamiliar to you. Perhaps this code needs to be improved. Or you may need to urgently fix a bug found in an old codebase. In this text, the author gives some tips that can make it easier to work with legacy code.

Tools that improve the quality of Java code

An overview article about static code analysis tools. They can help you find and fix problematic code before it goes into production. The text presents some popular static analysis tools that can be used to test code in various situations. For example, DeepSource or SonarQube.

Hell of a problem: getting started refactoring legacy code

It's one thing to refactor your own code, it's another to refactor legacy code. It's much more difficult. The text contains tips for working with legacy code.

Code Refactoring - Use Cases and Benefits

One way to improve the quality of code in a company is refactoring. It is often overlooked because it is almost invisible to users. The code still works, so everything is in order, right? However, problematic and messy code affects the speed of the product and its overall performance. The author of the article talks about the main benefits that can be obtained from code refactoring.

5 useful tricks for writing clean code

Anyone can learn to write code. But can you write it cleanly? In this article, the author shows his methods of writing clean code. The tips are simple, so even a beginner can handle them.

IntelliJ IDEA: Code Style and Formatting

Modern tools make it possible to simplify the development process. Including, it is easier to follow the style of your code, trying to minimize its "unauthorized" formatting. This overview talks about what tools the IntelliJ Idea IDE provides to the developer so that the code is pleasant to read and easy to understand.

How to quickly learn to read someone else's code

The text contains two simple tips that will help a novice developer read someone else's code. Read and put into practice.

10 ways to improve the code, proven by personal experience

Another article on how to make your code better. Big one this time. It has a lot of simple tips. For example, one of them is writing unit tests. For the rest, read the text.

How to write clean code

Writing clean code is not easy. This is hard hard work. Through trial and error, you will improve, repeating the same steps over and over until you find the solution you want. This article lists some tips to help you learn how to write clean code.

Antipatterns to avoid in code

In software, an anti-pattern (anti-pattern) is a term for techniques that should NOT be applied when solving problems. The author talks about the six most common anti-patterns: Spaghetti Code, Golden Hammer, Boat Anchor, Dead Code, Code Growth, and God Object.

Code Quality Control and why you need it

This text discusses the topic of lack of control over code quality in IT companies and why this is important. You will learn what technical debt is, why automation is the key to success, and how to build a code quality control process.

4 Ways to Analyze Code Every Developer Should Know About

You have probably heard the term "static analysis". Most often, it means any one well-known tool or method. But in fact there are several varieties of static analysis, each of which has a certain meaning when used. About what types of analysis are and will be discussed in this article.


SOLID clean code based on simple examples

SOLID are five design principles in object-oriented programming. In addition to the theory that you will be asked about at the interview, you also need to learn how to write code according to the principles of SOLID. How to achieve this will be discussed in the report of the lead developer from the St. Petersburg office of EPAM Alexander Barmin. The author's presentation is accompanied by examples of "pure" Java code written according to SOLID conditions. The author also answers questions from viewers.


"Clean Code" by Robert Martin. Book review on "kung fu code" for the developer

The article is devoted to the review of the book "Clean Code" by Robert Martin. The author considers ways to improve and optimize the code, and at the end he gives a small but interesting problem. Bookmark: “clean code” - articles and lectures on the rules of writing code and refactoring - 2