Parsing the pattern "Module" in JavaScript

In many programming languages, there are mechanisms that allow you to hide, for example, the methods and properties of classes. jаvascript does not have built-in tools that allow, without additional effort, to achieve such effects. However, such things can be imitated using other language features.
 
 
Parsing the pattern "Module" in JavaScript

 
The material we are translating today is devoted to analyzing the design pattern "Module", which allows you to hide private information in closures, giving access only to what the developer decided to make publicly available. This article is intended mainly for beginning programmers - for those who...
+ 0 -

angular-ngrx-data - state management and CRUD for five minutes

angular-ngrx-data - state management and CRUD for five minutes
 
To date, no single large SPA the application does not do without state management . For Angular in this direction there are several solutions. The most popular of them is NgRx . It implements Redux Pattern using the library RxJs and has good tools.
 
In this article, we briefly go through the main modules NgRx and in more detail we will concentrate on the library angular-ngrx-data , which allows you to make a full ...
+ 0 -

How to make a user search using Github using Angular

How to make a user search using Github using Angular
 
 
This article is the answer to:
 
- How to make a user search using GitHub using React + RxJS 6 + Recompose ,
 
- How to make a user search by GitHub without React + RxJS 6 + Recompose ,
 
- How to make a user search using Github using VanillaJS .
 
 
The purpose of the article is:
 
- show that on Angular too it is possible to write a simple application quickly, although this is not its main point,
 
- show the pros of the application on Angular.
 
 
The purpose of the article is NOT:
 
- Kindle of the next holivara.
 
 
To all who are interested please under the ...
+ 0 -

How JS works: custom elements

+ 0 -

Secret Keyboard Level 3 or how to print a long dash

Secret Keyboard Level 3 or how to print a long dash  
 
Each user of the hub, at least once typing a "space-hyphen-space" here, can see how the hyphen is magically replaced with a long dash. It worked autocorrect, similar to the one that exists in the Word and other word processors.
 
typography , and to design the text correctly and immediately, without relying on the grace of the iron brain, you need to be able to enter characters from the keyboard that you can not enter. In particular, the longest dash, which is often used in the design of direct speech.
 
 
But, as we know: if you can not, but really want, then you can. For a long time sat on Windows...
+ 0 -

Cheating

Cheating Physics, which almost never quarreled with our PM-a developer
 
 
Sometimes, the designer painted pale gray dies on the layout, and the make-up artist did not see and bored without them. It seems like the problem is solved simply: calibrate the monitors, and business. Really? The process can interfere with physics, which for the layout, customer or PM-ma can work out completely unexpectedly and which no calibration is at all.
 
 
The designer gave the layout to the layout, and it was tested by check-sheet - there could be no mistake. The make-up artist did everything beautifully, and ...
+ 0 -

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 -

Basics of progressive web applications

Basics of progressive web applicationsDid you ever see the button "Add to the main screen" that appeared on the screen of your Android-smartphone when you were browsing a website? If you click this button, an application will be installed on the phone in the background, the icon for launching it will go to the main screen. Now this application can be launched and run with the site in much the same way as before, but only in the usual telephone interface.
 
 
What we are talking about is a mobile application that was downloaded from a web application. And, as you can see, to install such an application you do not have to interact with ...
+ 0 -

GraphQL API (CRUD) on Go &lt;{short}&gt; &lt;{full}&gt; <div class="post__text post__text-html js-mediator-article"> <p> Hello! About GraphQL many articles on the habr, but running through them found that they all bypassed such a wonderful language as G

<{full}>
Hello! About GraphQL many articles on the habr, but running through them found that they all bypassed such a wonderful language as Go. Today I will try to correct this misunderstanding. To do this, we'll write an API on Go using GraphQL.
 
If very briefly: GraphQL is a query language for building an API that describes how to request and return data (for more information on the official resource <{short}>Hello! About GraphQL many articles on the habr, but running through them found that they all bypassed such a wonderful language as Go. Today I will try to correct this misunderstanding. To do this, we'll write an API on Go using GraphQL. , On the habr.) To argue that GraphQL or REST is better than here  We will have a classic API: CRUD (Create, Read, Update, Delete) adding, receiving, editing and deleting items in the online store. On the server side, we will use the ready implementation of GraphQL graphql-go  First you need to download graphql-go, this can be done with the command  ...
+ 0 -

What programming language should be taught in 2018 and why exactly?

What programming language should be taught in 2018 and why exactly?If you persistently want to get into the team of compiler developers or into the "world of the wild West" - then boldly choose and teach top language programming from TIOBE and best of all: at the level of its specification. But seriously, now in the industry everything is so confusing with logic and conclusions, so much marketing and water, that the most winning strategy is to include your own brains and make an express re-evaluation of the technical values ​​that we are so used to. In my post, I will try to orient the developers who are starting their career as clearly as possible on the ...
+ 0 -