Hexlet's blog

Code Complete: Descending and Ascending Order in Function Design main picture
Code

There are two approaches to writing code: top-down and bottom-up (descending and ascending). With the top-down approach, high-level logic is implemented first, followed by the details. With the bottom-up approach, everything is reversed; the details come first, followed by the general logic.

These approaches are frequently contrasted in books. It's generally considered that if you choose one approach, then you have to exclude the other one. However, this is not the case. In the article, I'll tell you why only going down one path can cause problems.

User avatar Kirill Mokevnin
Kirill Mokevnin
01 June 2022
2 Article reading time ~5 minutes Read more
Code Complete: Module Interfaces main picture
Code

In some languages, such as Python and JavaScript, variables and constants declared at module level can be imported to other parts of the program. On the one hand, this opens up a world of possibilities when compared to languages that require all data to be contained within functions, classes, etc. On the other hand, it makes it much easier to write code with issues.

User avatar Kirill Mokevnin
Kirill Mokevnin
01 June 2022
0 Article reading time ~2 minutes Read more
Code Complete: Explicit and Implicit Function Parameters main picture
Code

In dynamic languages, there are two main approaches when choosing the input parameters for functions: the first is to use explicit, positional arguments, and the second is to pass a structure containing everything that the function expects. In real code, passing arguments implicitly and explicitly are equally common, and it’s not always clear which one should be chosen for a given function. That's what we're going to look at today.

User avatar Kirill Mokevnin
Kirill Mokevnin
01 June 2022
0 Article reading time ~4 minutes Read more
The Anatomy of a Hexlet Groups: understanding formats and making learning mor... main picture
Code

All of our students come to Hexlet with a certain amount of educational experience, at least at school or university. This experience forms not only the idea of what the learning process should look like, but also their very attitude toward learning. Unfortunately, sometimes this can stunt development. Habits and attitudes built up over time often prevent people from seeing alternative options. In this article, we'll take a look at a few common student attitudes about learning and try to see how true they really are.

User avatar Sergei Melodyn
Sergei Melodyn
20 May 2022
0 Article reading time ~5 minutes Read more
Learning Traps main picture
Code

At some point during the learning process, you'll find that expectations don't match reality, and you don't see the desired result. There can be many reasons, but among them are those associated with cognitive distortions. This is the type of reason we're going to talk about here.

User avatar Kirill Mokevnin
Kirill Mokevnin
20 May 2022
1 Article reading time ~4 minutes Read more
Complex and simple programming tasks main picture
Code

Each of us has our own ideas about what learning should be like. They are based on past experiences, other people's stories, and certain ideals.

These perceptions often differ from how the process of becoming a good developer actually works. Students may feel that they're being taught incorrectly or burdened with unnecessary knowledge. Everyone's had an experience like this at school or university. Hexlet is no different. In this article, I'll explain some theoretical basics of the learning process and give you a different perspective on what is going on around you. This will help you to improve your learning and cope with difficulties more easily.

User avatar Kirill Mokevnin
Kirill Mokevnin
20 May 2022
1 Article reading time ~10 minutes Read more
How to Read Professional Literature More Effectively main picture
Code

Reading is important. However, the process of reading matters just as much. On the one hand, you don't want to miss useful information, on the other hand, trying to understand and comprehend every word stretches this process to infinity. Here, I'll share my way of reading. Most likely, it’s not for everyone, but, as a practice has shown, it still works for plenty of people.

User avatar Kirill Mokevnin
Kirill Mokevnin
05 May 2022
1 Article reading time ~2 minutes Read more
Suggested learning programs
profession
Development of front-end components for web applications
10 months
from scratch
Start at any time
profession
Layout with the latest CSS standards
5 months
from scratch
under development
Start at any time
profession
new
Developing web applications with Django
10 months
from scratch
under development
Start at any time