Functional kotlin part 3: scoping functions

In the part 3 of the series of the posts about kotlin we going to look into the one of the intensively used kotlin extension functions from the standard library - they allow to write very expressive and safe, functionally-looking code.

For folks who got lost on the word "extension functions" - it's a way to attach a function or property to the instances of the existing classes. For example, val d = 10.twice()It's very much like a classic Java Util classes with method twice(int) but done in a very clean way. Visually it looks like you're calling a member of the class, but in reality, the compiler calls your function passing receiver as an argument.

Read more

JavaScript vs logic

In programming world we are working with logic. Everything relies on it, it's a fundamental part of computers.

If we do 3+4 we always expect to get 7. Call to createDatabase shall not destroy database. As experience grows developer grasps more and more concepts and approaches because of the past experience and logic. It's very important part of programming ecosystem which helps to grow skill set without getting another Masters degree or attending classes/courses

People ended up with very common concepts and gave them names - algorithms, design patterns, data types, naming conventions.

Read more

ruX mind: о подкастах

В начале 2012 года я открыл для себя удивительный формат - подкасты. Не сказать, чтоб я про это услышал впервые, но все руки не доходили попробовать. Казалось, что когда идешь по улице или едешь в транспорте - может быть только музыка и иногда радио (в основном bfm).

Знакомый посоветовал начать слушать с Радио-Т. Это было настоящим открытием.

Информация по дороге

Подкасты сами по себе так или иначе существовали и раньше, в виде записанных кусков радиопрограмм и "голосовых заметок", абсолютно ничего нового. Просто включаешь запись - и слушаешь, как обычное радио.

Read more