About the composition of functions in JavaScript

Let's fantasize about the functional composition, as well as clarify the meaning of the composition /pipeline operator.
 
TL; DR
 
Compose functions like a boss:
 
About the composition of functions in JavaScript
 
Popular implementations compose - when calling create new and new functions based on recursion, what are the disadvantages here and how to get around it. designed the repository here .
 
NPM package: npm i lazy-compose .
 
It is interesting to get feedback about the limitation of the cache created in runtime functions dependent on the circuitLet's fantasize about the functional composition, as well as clarify the meaning of the composition /pipeline operator. TL; DR Compose functions like a boss:  Popular implementations compose - when calling create new and new functions based on recursion, what are the disadvantages here and how to get around it. designed the repository here . NPM package: npm i lazy-compose . It is interesting to get feedback about the limitation of the cache created in runtime functions dependent on the circuit...
+ 0 -

Angular 6+ complete dependency deployment guide. providedIn vs providers:[]

Angular 6+ complete dependency deployment guide. providedIn vs providers:[] 3r3609.  3r3619. 3r3609.  3r3619. In Angular ? a new improved syntax has appeared for injecting service dependencies into the application (3r-3589. ProvideIn 3r-3590.). Despite the fact that Angular 7 has already been released, this topic is still relevant. 3r3-3589. There is a lot of confusion in GitHub, Slack and Stack Overflow comments, so let's take a closer look at this topic. 3r3609.  3r3619. 3r33590. 3r3609.  3r3619. 3r3599. In this article we will look at: 3r30000. 3r3609.  3r3619. 1. The introduction of dependencies (3r3-389. Dependency injection 3r3- 3590.); 3r3609.  3r3619. 2. The old way of ...
+ 0 -

Azure DevOps is free for small companies in 1 hour

Azure DevOps is free for small companies in 1 hour 3r3115. 3r3-31. Good day! 3r3102.  3r3115. 3r3102.  3r3115. We have long wanted to implement devOps, but there was no time and money for maintenance, or you want to understand how devOps works in action using the example of an Internet agency, then we read further. 3r3102.  3r3115. 3r3102.  3r3115. In this article, we will look at how to deploy Azure’s free devops for your company (up to 5 developers for free) without specific technical skills and a lot of settings. 3r3102.  3r3115. 3r3102.  3r3115. 3r314. 3r3102.  3r3115. devOps in our example:
 3r3115. 1) When you commit the code of one ...
+ 0 -

A practical typeScript. React + Redux

A practical typeScript. React + Redux
 
 
Currently, the development of any modern front-end application is more complex than the level of 3r-3263. hello world The team is working on (the composition of which periodically changes) makes high demands on the quality of the code base. In order to maintain the quality level of the code at the proper level, we are in the front-line team of 3r3122. #gostgroup
We keep up with the times and are not afraid to apply modern technologies that show their practical benefits in projects 3r314. companies of all sizes
.
...
+ 0 -

TypeScript: Deserializing JSON into classes with property type validation

 3r3179. 3r3-31. Hi, Habr! I want to share with you my library for deserializing JSON objects into classes, which also automatically validates input data by type.
 3r3179.
 3r3179. Not so long ago in jаvascript there was such a wonderful thing as classes, which greatly simplified the process of writing code. But unfortunately, there is no functionality for deserializing JSON into these same classes, i.e. You can serialize a class into a string, but you can do it yourself. And to correct this deficiency, the library was written. ts-serializable which I want to share with you.
 3r3179.
3r311.
 3r3179. T...
+ 0 -

TypeScript magic school: generics and

TypeScript magic school: generics andtype extensions. 3r33430. 3r3-31. The author of the article, the translation of which we are publishing today, says that TypeScript is simply amazing. When he first started using TS, he terribly liked the freedom that is inherent in this language. The more power a programmer puts into his work with TS-specific mechanisms, the more significant are the benefits he receives. Then he used type annotations only periodically. Sometimes he used the code auto-completion capabilities and compiler hints, but mostly relied only on his own vision of the problems he was solving. 3r3155.  3r33430. 3r3155.  3r33430. Over time...
+ 0 -

Customize a handy npm project for yourself and the team or a little bit about the modern frontend tools

Customize a handy npm project for yourself and the team or a little bit about the modern frontend tools
 
Hello. Recently I got the task to configure the turnover of private npm packages. Everything sounded very interesting and promising until it turned out that there is not much to do there. It would have ended there, but there was a second task - to write a demo repository for the npm package, which could be taken, cloned and based on it quickly create something useful and in the same style.
 
The result was a project with customized formatting, codesteeling, tests for each pool, limits on code coverage, coverage of the code and automatic documentation. Plus a handy publication in npm. Details on the configuration ...
+ 0 -

Angular: Create a multiple checkbox component that is suitable for reusing

Angular: Create a multiple checkbox component that is suitable for reusingLet's create Angular component to create multiple checkboxes from a specific logical group. The component will be written with ideas for reuse. What does it mean? Let's give an example below:
 
 
Imagine before you the task of making user editing. When you edit it, it usually opens a form with all fields. The user can have one or multiple roles from the list Adimin, Director, Professor, Student.
 
 
To implement multiple choice of roles, it was decided to draw on the form one checkbox for each role. Putting a tick or removing the user's role will change.
 
 
To start, let's create a ...
+ 0 -

Angular: ngx-translate. We improve the infrastructure using Webpack

Angular: ngx-translate. We improve the infrastructure using WebpackGood day.
 
It's time to ngx-translate lifhak. Initially, I planned 3 parts, but because the second part is in fact little informative - in this I will try to summarize the 2nd part as briefly as possible.
 
read 1
 
Consider AppTranslateLoader in the replacement of TranslateHttpLoader . Our AppTranslateLoader will primarily pay attention to the language of the browser and contain fallback logic, import the localization of MomentJs, and perform the download via APP_INITIALIZER. As a result of the merger of the two parts of the lifhaks, along the way, we will delve into the ...
+ +1 -

Angular cli 6: what is needed and how to use

Angular cli 6: what is needed and how to use
 
 
Hello!
 
 
The version of Angular ??? was released in September 2016. And immediately appeared a large number of approaches to building and building applications on this framework. On the Internet, you can find the Angular seed for every taste.
 
 
We also created our own Angular seed: we created a common project-template, ordered all the teams developing the front-end to use one application structure.
 
 
And in half a year, in March 201? the version of Angular cli (cli-command-line interface) ??? was released. The idea, taken as a basis, is simply excellent: to systematize the approach to developing ...
+ 0 -