Developers Club geek daily blog

Rising of a razrabotchikonomika

1 year, 2 months ago
From the translator
Reading now and then a few years ago the Forbes log, I came across article which I found extremely interesting. Well, you know as happens — you read, you read, and on each paragraph you vosklikat: "About! Qie about me!". Could not believe that I one such, and nobody will be honored if not to translate then to refer to it in the Russian-speaking press. However in four years of it did not occur. Well, "you want to make something correctly — make it", therefore I provide to attention of respectable public the first half of article. (I try to translate artly therefore work moves not quickly; the original size — more 30th kilobyte, and, "having passed mortal life to a half", I understood that to keep there are no more than forces.)

P.S. Could not understand how to put the transfer tag in heading.

Rising of a razrabotchikonomika


Venkatesh Rao's article is published in December, 2011 in the Forbes log.

In evolutionary biology there is a theory according to which mutual altruism and cooperation arose as a solution of the problem of storage of food. If to you, an early hominid, has luck to fill up a large mammoth, you had no slightest chance to skharchit it entirely before it becomes rotten. Then you shared food: attachment in a stomach of your friend was the best attachment for the excess capital. In this case you could demand return of a contribution that time when the mammoth is filled up already by this friend.

Recently I reflected over this paltry idea in the context of human wealth. If only you are not a professional investor (and even if you are), now to find places for storage of surplus of the capital where he would be in safety and was not amortized too quickly (not to mention bringing of the income) it becomes harder and harder. The stock market even more often casts thoughts of a bloody feast of "bears". Volatility and unexpected short-term rallies make game with short positions of unsafe. Even storage of assets in dollars, seemingly, conceals the dangers — thanks to threat of devaluation and any modern words like "quantitative mitigation" which we, average investors, hear for the first time. Euro now too does not look as optimistic alternative. The solution to invest in gold — and in general in any raw materials — seems, demands a little apocalyptic view of the world, and reflections how you are going to get access to actually subject of ownership if all and the truth will depart to depths of hell (there is a wish to note that at the moment I cannot call such view of the world so unjustified).

But there is one smooth water — if you know how to be enclosed in it: software developers.

Read more »


Programming of a microcomputer of LEGO NXT Mindstorms 2.0. Introduction

1 year, 2 months ago
Hello. In the articles I want to acquaint you with programming essentials of a microcomputer of LEGO NXT Mindstorms 2.0. For applications programming I will use the Microsoft Robotics Developer Studio 4 platforms (MRDS 4) and National Instruments LabVIEW (NI LabVIEW). Problems of automatic and automated management of mobile robots will be considered and be implemented. We will move from simple to difficult.



Read more »


String and &str; in the Rust functions

1 year, 2 months ago
КДПВ
This post is devoted to all those who is confused by need to use to_string(), to force programs to be compiled. And I hope to shed a little light on a question of why in Rust two line types String and &str;.

Read more »


Solution of a puzzle of Galakub on the Python

1 year, 2 months ago
For new year purchased to the nephew a puzzle of Galakub. A task to collect a cube of 4х4х4 in size from different parts. Total amount of parts, just, 4х4х4. Before to give it was necessary to collect a puzzle. The beautiful symmetric solution was found quickly enough. But there was interestingly only this solution or not. The intuition prompted that the only thing, but there was a wish to check.


I decided to notch quickly a script for search of all options. It was ideally necessary to be in time before the New Year's speech of Putin. The situation was aggravated with the fact that the code was written on Makbuk my parents. To put on it some libraries is a task more abruptly, than to write the program.

The code turned out surprisingly beautiful and clear. It is convenient to explain it. Perhaps, the text will be useful, for example, studying the Python.

Read more »


Creation of function on Rust which accepts String or &str;

1 year, 2 months ago

From the translator


КДПВArticle — one of a series of the posts telling about use of some useful library types and the related idioms of Rust on the example of line data types. Information undoubtedly useful both for the beginning programmers on Rust, and for those that already managed to try a little this language, but yet not absolutely accustomed with rich library of types. The original post contains several inaccuracies and typographical errors in a code which I tried to correct in translation process, however in general the described approaches and motivation correct, suitable under concept "the best the practician", and therefore deserve attention.


In my last post we spoke about use much &str; as preferable type for the functions accepting line arguments. Closer to the end of a post we discussed when it is better to use String, and when &str; in structures (struct). Though I think that in general council is good, but in certain cases use &str; instead of String not optimum. For such cases we need other strategy.

Read more »


Overview of opportunities of modern JavaScript

1 year, 2 months ago
JavaScript, probably, the most known multiparadigmenny language in which there are a lot of unevident features. But whether nevertheless we love it or we abuse, the fact remains is the main language at which modern web works.

In the left year, there was an ECMAScript 2015 standard (informally ES6) which strongly changed what we got used to. There was a mass of new opportunities which in fact represent a modern superset of the language trying to solve the existing problems. Class, let, const, pointer functions … the developer who did not see the code written on ES6 not at once earlier will guess that before it, in fact, old kind JS.

There is a mass of the fine articles devoted to the modern standard. In the same post I want to show that modern JS when it is necessary to solve an essential problem can offer us. For example, to congratulate all on New Year.

Read more »


Skrinshotim of game — the hard way

1 year, 2 months ago
Well such difficult can be in creation of a screenshot? It would seem — call the function which is kindly provided by an OS and receive the ready picture. For certain many of you did it not once, and, nevertheless, it is impossible to take and zaskrinshotit just like that full-screen directx or opengl the application. To be exact — it is possible, but as a result you receive not a screenshot of this application, but the rectangle which is filled in black.

Read more »


happy (new Year(2016));

1 year, 2 months ago

Actually, I will be laconic, I say hello to all from 2016!
- to all-all to habrozhitel I want to wish all good health, good luck, good, a creative scope and of course a godless code
and on these remembered words and found quotekahi4 from a New Year's topic before last:

Read more »


New Year's voice habrachat (2016)

1 year, 2 months ago
image

New year already not far off, and it can mean only one — time for warm, lamp communication in a voice habrachatik (there is also a normal chat).

Let's communicate in TeamSpeak 3.
It is possible to download it here.

For connection to the server it is enough to enter IP — speakserver.cloudapp.net and your nickname.

With coming, friends!

Read more »


Webpack ProvidePlugin: how not to write the import/require sheet at the beginning of module javascript

1 year, 2 months ago
If you develop on modern javascript, then almost any your module contains a sheet of such lines:

import React from 'react'
import $ from 'jquery'
...

As it appeared, the majority of these lines can be not written, having entrusted their generation to automatic equipment. Also modern webpack in which as it appears, it is complete of pleasant surprises helps with it. Except all the known require and import for any files and "hot module replacement" which is already described on Habré, webpack can analyze your source code and automatically turn on the necessary modules on the basis of the used literals. Under a cat — the short description as works this magic.

Read more »