On the decomposition of the code, put in a word: context programming

Of course, ideally is generally better. Do not write unnecessary code . And if you write, then, as you know, you need to think
well. bones of the system
architecture of the system and implement
meat system
logic of the system. In this note, we give recipes for the convenient implementation of the latter.
here .
 
Let's say that we have users, with money, and lots that cost money and which users can buy. We want to write a code that will carry out the purchase of the lot:
 
buy-lot (user_id, lot_id) ->[:ok updated_user]| |[:error reason]
 

For simplicity, the amount ...

+ 0 -

Clojure application in the style of Erlang &lt;{short}&gt; &lt;{full}&gt; <div class="post__text post__text-html js-mediator-article"> <p> As is known in the circle of Erlang developers: only Erlang developers know how to "live" correctly <del> and al

<{full}>
As is known in the circle of Erlang developers: only Erlang developers know how to "live" correctly
and all the rest "live" - ​​wrong
.
 
Without attempting to dispute this fact, let's give an example of Clojure application in the Erlang style, using the library
Otplike
.
 
For understanding the article, the reader may need to know the basics of Clojure
(and unless there are people who do not know Clojure? )
and the Erlang /OTP basic principles (processes, sending messages, <{short}>As is known in the circle of Erlang developers: only Erlang developers know how to "live" correctlyand all the rest "live" - ​​wrong. Without attempting to dispute this fact, let's give an example of Clojure application in the Erlang style, using the library Otplike . Otplike . , supervisor behaviours). In order to deal with everything else, the average Clojure developer has everything you need: code with examples , REPL and "tambourine". Why Clojure? In fact, there are many answers to the question "why Clojure". Here are our favorites: №1. Clojure is a very effective ...
+ 0 -

Java 9 - Have you already switched? No? Do not need !?

About two weeks ago InfoQ recalled , that the official support for Java 9 ends in March 2018. (i.e., in 20 days :)
 
Here is the link on the official EOL from Oracle, in which in the section "Java SE Public Updates" black in English says that
Java 9
will be supported
until March 2018
, and
Java 8
-
until January 2019
(or later) and December 2020 (or later).
how Oracle works from within .
 
Oracle does not plan to migrate desktops from Java 8 to later versions via the auto update feature...
+ 0 -