7 recommendations on how to code JavaScript

7 recommendations on how to code JavaScriptThe author of the material, the translation of which we publish today, says that she is directly obsessed with writing clean code. She believes that the code should be written so that, firstly, with it, in the future, it would be convenient to work for other programmers, including its author, and secondly, taking into account the possibility of extending this code. That is, you need to strive to ensure that the application is relatively easy to add new features, and that its code base would be convenient to accompany. If the programs were written, taking into account only the needs of computers...
+ 0 -

Resistance testing automation

Resistance testing automationDespite the fact that module testing technologies have existed for 30 years (in 1989 Kent Beck wrote the article "Simple Smalltalk Testing: With Patterns"), nevertheless not all programmers own this technology and not all companies have made automatic testing part of their corporate culture . Even despite the obvious advantages of automatic testing, the behavioral resistance is still strong enough. Who tried to implement automatic tests, he knows that there is always some reason why this could not be done.
 
From my personal experience in implementing reliable programming methods in my company...
+ 0 -

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 4.2.

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 4.2.

The summary of the previous parts


 
Because of the limitations on the ability to use the C ++ 11 compilers and the non-alternative to boost, there was a desire to write your own implementation of the standard C ++ 11 library on top of the C ++ 98 /C ++ 03 library supplied with the compiler.
 
 
were implemented. static_assert , noexcept , countof , as well as after reviewing all nonstandard defenses and compiler features, information has appeared on the functionality that is supported by the current compiler. The implementation of is included. nullptr , which is selected at ...[/h]
+ 0 -

About M and about V and impossible about C

News from the number of pleasantly unexpected ones it aroused all sorts of memories, sweet and not very much. And from her I got on this article is , and immediately felt sick of nostalgia, and wanted from the height of the past seven years to make a big dent in front of her like that.
 
Dephi was an absolutely brilliant decision. You know, like the Beatles, as a graphical user interface with a mouse control, like an internal combustion engine. An ingenious solution that has entered our life so extensively that one can not believe that it once was not there, and drawing windows, flags ...
+ 0 -

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 4.1

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 4.1

The summary of the previous parts


 
Because of the limitations on the ability to use C ++ 11 compilers and the non-alternative boost, there was a desire to write your own implementation of the standard C ++ 11 library on top of the C ++ 98 /C ++ 03 library delivered with the compiler.
 
 
were realized. static_assert , noexcept , countof , as well as after reviewing all nonstandard defenses and compiler features, information has appeared on the functionality that is supported by the current compiler. The implementation of is included. nullptr , which is selected at the compilation ...[/h]
+ 0 -

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 2

How I standard C ++ library wrote 11 or why boost is so terrible. Chapter 2

The summary of the previous parts


 
Because of the limitations on the ability to use C ++ 11 compilers and the non-alternative boost, there was a desire to write your own implementation of the standard C ++ 11 library on top of the C ++ 98 /C ++ 03 library supplied with the compiler.
 
 
In addition to the standard header files type_traits , thread , mutex , chrono were also added. nullptr.h which realizes std :: nullptr_t and core.h where macros relating to the compiler-dependent functional were rendered, and also extending the standard library.
 
 
A ...[/h]
+ 0 -

How do I write a standard C ++ 11 library or why is boost such a terrible

How do I write a standard C ++ 11 library or why is boost such a terrible

Instead of the preface


 
Perhaps this picture should begin with any narration about boost , Loki , standalone, and also the implementations of the standard C ++ library that are supplied with compilers.
 
 
Yes, and if you thought that the developers of the standard library for the same g ++, clang, Visual Studio or, sorry Lord, C ++ Builder (former Borland, and the current Embarcadero) - gurus that do not crutches, do not break the standard for their compiler and do not write bicycles, then, most likely, you are not so actively using the standard C ++ library as it seemed to you.
 
 
The article ...[/h]
+ 0 -

Contribute in Go using a static analyzer go-critic

Contribute in Go using a static analyzer go-critic
 
You may remember the recent the announcement of a new static analyzer for Go under the name go-critic .
 
I checked with his help project golang /go and sent a few patches that fix some of the problems found there.
 
In this article we will look at the corrected code, and we will also be motivated to send even more similar changes to Go.
 
For the most impatient: updated list of trophies .
net: combine append calls in reverseaddr appendCombine ...
+ 0 -

What's wrong with std :: visit in modern C ++

Sigma-type and you


 
Let's talk about a simple but powerful concept in programming - sigma-type .
 
 
The sigma type (a sum-type labeled join) can contain the values ​​of one and only one of several types. For example, consider the settings in INI -like configuration file. Let each setting be a string, an integer, or a Boolean value. If we wanted to make our library in C ++, we would write something like this:
 
std :: variant , and now we will get to know him better.
 
 

Use of std :: variant


 
variant Is a template for a class ...[/h][/h]
+ 0 -

Habits in the service of the developer

The first steps in the career are over. You can already safely wear a sweater, beard and work remotely.
 
 
Friends are jealously called IT people rock stars, but you know something that had to go through and how much more to do. While the magic pill of success is not invented, choose the right habits. They are good friends with working efficiency.
 
 
Habits in the service of the developer
 
 

Self-development and laziness


 

Self-development


 
No matter how many diplomas you receive, do not stop learning. It's hard and boring, but the thirst for knowledge will not let you get behind the progress.
 
 
According to a study by HackerRank...[/h][/h]
+ 0 -