Developers Club geek daily blog

Recipes from CHEFa: the automated expansion of environments of business applications with use of HPE OneView

1 year, 1 month ago
Information technologies become an integral part of products and services of new IT style in which business expects to receive the requested resources under new applications almost instantly. IT resources, in a paradigm of new requirements from modern applications, have to be selected, used, return and be reused automatically from the general pool of nodes of calculations, storage, and a network.

Read more »

As Cloud Foundry is developed

1 year, 1 month ago
CF community logoI briefly will tell about development process Cloud Foundry (CF), features of open source of model and a little personal experience.

In 2013 I became the active user of a platform when IBM started an internal beta of Bluemix, at the beginning of this year I took part in porting of Cloud Foundry on architecture of POWER8, and from the middle of October I became the member of CF core team, having passed CF Dojo. But about everything one after another.

I will not go deep into history or to explain that such Cloud Foundry, but here a necessary minimum of the facts. CF is Platform as a Service (PaaS) developed by VMWare and later the transferred Pivotal Software. The source code was open, now still there is a separate incubator of CF projects. A bit later Cloud Foundry Foundation which Pivotal entered, IBM was created, VMWare, EMC, GE, Intel, SAP, the present is included into it more than 50 organizations. Initially the platform was written on Ruby, later part a component were rewritten on Go.

Read more »

The lightweight designer of parsers with an interactive mode

1 year, 1 month ago
Periodically facing small problems on development of unpretentious analyzers of the text, solved this problem to automate and the academic interest haunted. Originally looked towards Racc (one of interpretations of Yacc), but it seemed me rather not a simple solution for my small tasks and then I decided to develop the unpretentious analyzer. Though, of course, if you develop the compiler or something similar and still commercially, then definitely you should look towards Racc.

But if you want to understand what is the parser and as fast to write it most, at the same time without reading a lot of articles about lexical analyzers like book of a dragon, then forward under kat (though the book very good).

Read more »

We program 1C on Ruby

1 year, 1 month ago
The controling mechanism "thick client" 1C on OLE gives full access to all functions and data. It gives the chance at customization 1C or its integration with external systems not to use the built-in programming language at all and, respectively, not to limit itself it to syntax, opportunities and the environment of execution.

Instead it is possible to use any modern language having library for work with Win32 OLE. For example, JavaScript (Win32 OLE supports Node.JS) or Ruby (the necessary library is included into a set of standard libraries of language).

Below some practical experience of work with the OLE interface on Ruby will be described. The description does not apply for completeness, only the fact that it is necessary for simple automation or integration at the level of data is selected and described: reading record reference books and documents, execution of requests.

Read more »

As we live year without sprockets and with react

1 year, 1 month ago

We live one and a half years in on a react-a and nearly a year without sprockets. It is so healthy, I want to share. For one I will tell as react works with rails in the prerender mode.


Read more »

The automated testing of controllers in Rails

1 year, 1 month ago
Hi, Habr! Long ago monasteries attract me to be the author, and here, at last, that light hour when I dopinat myself came to provide my small opus on your court.
Studying at a leisure Ruby and Rails, trying RSpec, suddenly Minitest, I reached creation of a web application with a frontend on JavaScript and the backend on Ruby which is sticking out outside REST API based on normal Rails controllers. I use Rails though it is perfect not essentially. The approach described below can be applied to anything.
Here it is necessary to make small retreat. At heart I am a person exacting, and in every possible way I fight for the proved stability of a code (in words precisely). And when the speech comes about safety of users in my application, without tests at least showing that anyone will not obtain my data, I feel absolutely not comfortably. I begin to long and in general not to write any code. Even if I — the user one and only so far.
It would seem, everything is very simple: we take RSpec and we write tests. But same it is boring! For each controller, for each supported method to check, at least, that without the token issued earlier the user will get the heave-ho — it how many an identical code it is necessary to write! And further as? It is more and more controllers, it is boring to copy tests and in opportunities to change approaches I remain is limited. Go then rewrite all these tests if I want to transfer, for example, the API version not to URL, and in heading, or on the contrary. Generally, I conceived to write the generator.

Read more »

GeekWeek results. How to find a job on what to develop and what systems to use

1 year, 2 months ago
Not so long ago we already wrote about GeekWeek-2015. Online conference takes place literally now, and you still can manage to take the last day of webinars. Believe, there is what to look at and to whom to listen. We, in turn, begin to sum up the results.

Fifty respondents tried to cover all hot topics of the IT present as much as possible. We spoke about languages and programming methods, imparted experience of employment, a timliding and creation of home companies, gossiped a little and quite seriously argued on perspectives of the digital world. So, about everything one after another.


Questions of creation of career were discussed at conference, perhaps, most often. Certainly, it was promoted by a situation in the country and the world, but also the level of guests in not smaller degree located to obvious questions of how to achieve the same success. Ivan Nemytchenko from Skillgrid advised not to be proud of only one university diploma, and directly during training to aim to apply skills in the real world. Vladimir Zheleznyak from IT Boost and Ewan Booth (ex-Google) passings of interviews in the large companies touched upon a subject and asked a key question: "and whether it is necessary to you?". Andrey Sidelnikov from the HR Expert on Thursday told of difficulties of transition to the head's position, and Sergey Kuryavtsev (, Evgenia Soboleva (GENIARS), Alexey Poimtsevpoimtsev (Progress Engine) and Dmitry Shkolnikov (Avito) issued some secrets of how competently to open the business, to give it powerful acceleration and, the main thing how to avoid a failure.

Speakers avoided vast reasonings that it is necessary to study, try well, to wait for the chance and to trust in a miracle, themselves and the command. For anyone to begin successful career or to cardinally change its practical data checked on others experience, far more important and more interestingly. We trust and hope that we managed to make the contribution to this work, and the exchange of IT work will be replenished with qualitatively trained staff and not less good sentences about work soon.


Second topical issue practically any IT conference: "And how you incense?". The scope for reflections gave the benefit, structure of speakers and their approaches. Also adherents of classical training and those who prefer to try new methods acted. Yury Afanasyev from in the first day of conference shared interesting opinion on advantage and harm of comments in a code, and also told why in work he uses the DRY method. Sergey Baranov and Vladimir Grinenko, in turn, told about delights of creation of the final product from procurements and integral components. It is remarkable that children represent absolutely different fields of activity.

The correspondence dispute ran high between supporters of old and modern languages of programming. The role and value of the first were upheld by the head of DriverPack Artur Kuzyakov and the founder of community Khasang and the teacher of GeekBrains Igor Dolgov. The first told about ample opportunities of application of Javascript for creation of commercial Windows applications, the second went further and gave a number of master classes for beginners of development. Other point of view Nikolay Ryzhikov who will show the principles of functional programming on the example of the clojure language not really known to a wide range of people will provide CTO Health Samurai already today.

A little IT philosophy on Monday was offered by Georgy Gadzhiyev. It predicted fast death of classical system administration and suggested to look towards DevOPS methodology. In general about the personal relations with codes a kind third of respondents told, perhaps, therefore to think really is over what.


At conference we talked also about specific products. For example, Igor Bochkaryov from "Promtekh" during the performance on Thursday urged to stop infinite dispute on benefits of meynstrimovsky mobile platforms. Certainly, to suggest to take new Ubuntu Touch as a basis. It was talked of optimization of system for the applications connected with collecting and structuring data. Said also about the Ruby on Rails, about how it is easy to pass to it and as conveniently on it is mute to work. If council for the most ruby all of them languages is necessary and to not less ruby framework — address Fateev Evgeny and Ivan Nemytchenko. Did not do without dialogs about Python and its application — initiators in Dylan Jay and the head of ITCANFLY Vladimir Filonov is mute CTO steel in PretaGov. And the day before yesterday we much and fruitfully discussed testing. Alexey Lavrenyuk's presentation was devoted to testing of graphics and performance during creation of online games in Yandex. Anton Bevzyuk told a unit tests why you should not be afraid of them of knowledge of use, and, on the contrary, actively to apply to improvement of quality of a code.

Generally, we made every effort that each registered user found a webinar on interests. It is even more interesting speakers and hot topics we will prepare for GeekWeek-2016. Thank you that were with us all this week, and do not forget to glance on the completing performances today.

Read more »

Highload Dev Conf' passed 2015 on October 17 in Minsk

1 year, 2 months ago
On October 17 there took place the annual brutal Highload Dev Conf conference.
More than 300 severe developers to whom the high-loaded projects and BigData are interesting became participants.


Read more »

Recipes of testing of Ruby and Rails of applications

1 year, 2 months ago

In this post I would like to tell about approaches, acceptances and means of preparation of tests. I will tell how not to write superfluous, to duplicate less a code, to write tests so that they were easy to be supported and how to win in performance in some situations.

To whom will it be interesting?

  • If you began to write tests recently.
  • If you write tests and consider that in them there is a lot of kopipasta, or it is possible to improve them considerably.
  • If you write tests occasionally or do not write absolutely as it is not pleasant to you or consider that it long.
  • If you the master in writing of tests. Perhaps, you learn some subtleties or will find several useful trifles.

Read more »

Ghost Methods in Ruby (transfer)

1 year, 2 months ago
I bring to your attention transfer of a fragment of the book Metaprogramming Ruby 2 behind authorship Paolo Perrotta (Paolo Perrotta).

What is method_missing?

In Ruby we can call methods which do not exist, but it will return us an error. For an example:

class Lawyer; end
nick =
nick = talk_simple

NoMethodError: undefine method 'talk_simple' for #<Lawyer:0x007f801aa81938>

Whether you remember as search of methods works? When you call the method talk_simple, Ruby goes to object class of nick, and touches methods there. If it cannot find a method there, he looks for it in parents of this class, then in Object and at last in BasicObject. Well and as Ruby cannot find the talk_simple method anywhere, it starts the method_missing method for nick’a. Ruby knows that this method is because it is the private BasicObject method from which all objects are inherited.

Read more »