Higher-order components using Recompose

Higher-order components using Recompose HOC - too loud a word for a simple functional pattern!
A month ago, the first frontend-mitap was held in Raiffeisenbank, and since I had just prepared a presentation on the topic "High order components with functional patterns using Recompose" in just a couple of days, and I briefly got information about Recompose on the Internet a week before the report, I did not have time to prepare any reference material, and did not even write your contact information at the end of the presentation, which was not very good. And to the question: "Where can we see your slides?" I hesitated and did not ...
+ 0 -

In the continuation of the topic of automating the output of files from the template. Excel

In the continuation of the topic of automating the output of files from the template. Excel  
Automating the filling and output of files from routine documents templates is one of those areas in the construction industry where traditionally soft, except for accounting, is at the level of licked handicrafts, in my humble opinion. Therefore, developing the theme , I invite you to discuss those problems and opportunities that were encountered in the implementation process on the basis of MS Excel.
of the previous article it's been half a year already. During this time, with the help of this preparation, the text part of the Executive Documentation was developed and handed over ...
+ 0 -

Use of nuclear regression for forecasting demand in chain stores

Kind time of the day, dear Khabarovsk! In this publication, we will talk about a model for forecasting the demand for goods in chain stores and its implementation in C ++.

Statement of the problem

Suppose we have a chain of shops, each of which imports goods. Goods (for the forecast model) fall into each store in an arbitrary way. For a certain period of time we have statistics - how many in each store are sold those or other goods. It is required to forecast sales of goods for a period of time similar to the one chosen for all stores for all goods that were not imported.
Notes and ...[/h]
+ 0 -

Cofree Will Tear Us Apart

Lately I've been working with distributed systems and I often have problems with working with data, parts of which can be in different places. Well, since I have been writing for a long time on Haskell, the description of the problem and the powerful type system have helped me to further develop this idea. We will talk about how only one carrier algebraic design has allowed to solve the problem of recycling data in general.
library , which is not yet on Hackage, but in the active development phase.
At the moment I managed to describe the directed acyclic graph, binary, prefix, pink...
+ 0 -

Thinking in the style of Ramda: Lethal notation

1. The first steps are
2. We combine the functions
3. Partial application (currying)
4. Declarative programming
5. Lossless notation
6. Unchangeability and objects
7. Indestructibility and arrays
8. Lenses
9. Conclusion
This post is the fifth part of a series of articles about functional programming called "Thinking in the style of Ramda".
In fourth part we talked about writing code in a declarative style (we explain to the computer what to do) instead of imperative (we tell him how to do it).
You could ...
+ 0 -

Is it possible to deliberately abandon functional programming?

Functional programming pervades much of the core programming world - the jаvascript ecosystem, Linq for C #, even high-order functions in Java. So it looks like Java in 2018:
getUserName (users, user -> user.getUserName ());
Functional programming is so useful and convenient that, as far as I can see, it has penetrated all modern, widely used languages.
But not everything is so radiant. Many developers resist this tectonic shift in our approach to software. Honestly, today it is difficult to find a job related to jаvascript, which does not require knowledge of the concepts of ...
+ 0 -

Why functional programming is opposed to object-oriented programming, and is not understood as complement

Alan Kay: May the sky help me to give a short answer to this question.
Why functional programming is opposed to object-oriented programming, and is not understood as complement

In the second half of the 1950s, John McCarthy became more and more interested in what he called "Artificial Intelligence." He also consulted a lot, which brought him down with the SAGE air defense system: huge systems of even larger computers attached to radar stations and each other and driven by graphic display systems using pointing devices.
John's response was "this will be in every house in America." He saw that computers connected to each other can be a "public information service" (as in parallel with electrical...
+ 0 -

We understand implicit'y in Scala

We understand implicit'y in Scala
Recently, I've had a few conversations with friends from the Java world about their experience using Scala. Most used Scala as an improved Java and, in the end, were disappointed. The main criticism was directed but that Scala is too powerful a language with a high level of freedom, where the same can be realized in various ways. Well, and cherry on the cake of discontent are, of course, implicit'y. I agree that implicit is one of the most controversial features of the language, especially for beginners. The very name "implicit," as it were, hints. In inexperienced hands implicit'y can cause a poor design ...
+ 0 -

The character of Kotlin

The character of KotlinHello, Habr! We hope to get to Kotlin in the foreseeable future. By this article (February) could not pass.
Read and comment!
Bruce Tate " Seven languages ​​in seven weeks " - and since then I adore her! Although, I have experience working with most of the languages ​​described in the book, I really liked how the author characterizes languages, and how these characteristics ultimately affect the practical use of the language.
So I decided to write another chapter for this book, an additional one. It will be devoted to a language that I know well enough, I understand its advantages ...
+ 0 -

A little about physics in almost Agar IO on aicups.ru

A little about physics in almost Agar IO on aicups.ru
In the competition MiniAICup # 2 Almost Agar IO should be managed by amoeba, there is food and other amoebas.
The implementation of the amoeba control algorithm involves potential fields, but there is one large NO.
The physics of motion in the game is given here by the following equations:
speed_x + = (nx * max_speed - speed_x) * INERTION_FACTOR /mass;
speed_y + = (ny * max_speed - speed_y) * INERTION_FACTOR /mass;
It turns out physics with friction and inertia, which all spoils. If physics is not taken into account, and direct the force vector (nx) directly to the nearest target, then it ...
+ 0 -