Tuesday, July 26, 2016

Thank you, my readers!

Now 33% from you are from Russia and 77% of you are using the Mozilla Firefox and 70% are under UNIX (yes, not Linux but a real UNIX, and the other 9% - MAC OS X). You are returning my faith in people, my dear readers ;)
P.S.: I think the big amount of UNIX users (mainly BSD of course) and less then 1% of Linux users is exactly what would be expected after they've made a shit instead of GNOME in near all Linux distros? Am I wrong? ;)

Monday, July 25, 2016

American pragmatism was an attack on European metaphysics on the grounds of impracticality. American culture was obsessed with the practical and contemptuous of the metaphysical. The computer and computer language are the perfect manifestations of the pragmatic notion of reason. Every line of code must have a practical consequence. Functionality is the only standard. That a line of code could be appreciated not for its use but for its intrinsic beauty is inconceivable. The idea of pragmatism, as it has evolved into languages like C++, is a radical simplification and contraction of the sphere of reason. Reason now deals only with some things, all of which are measured by their practical consequences. Everything that lacks practical consequence is excluded from the sphere of reason and sent to another, inferior sphere. In other words, American culture does not deal easily with the true and beautiful. It values getting things done and not worrying too much about why whatever thing you are doing is important. [...] Computing culture [...] constitutes not reason contemplating its complexity, but reason reducing itself to its simplest expression and justifying itself through practical achievement.

© 2009 George Friedman, "The Next 100 Years: A Forecast for the 21st Century"


My attitude to different programming languages

Let's consider the different programming languages used by me in a real work and my attitude towards them (that's what you need to know for sure ;)

Well, I love so much:
pure JavaScript (before CS6)
pure C


I like:
Lua
Ruby
Erlang
Qt (not a language but anyway)
Shell scripting like BASH etc
C++ early standards
MASM
XML


I'm indifferent to:
C#
Objective-C
Pascal
NASM
ARM
Basic
HTML
CSS


I don't like:
Swift
CoffeeScript
SQL (any alternatives?)
PHP
JavaScript CS6
Perl
Python
Object Pascal
Visual Basic
XUL/XBL/XPCOM


I really hate:
Java
C++ > 11 standard
XAML


Have I forgotten some?..

P.S.: no miracle that for the money you always will be asked to write in Java ;)

Tuesday, May 24, 2016

One more piece of shit discovered

Unfortunately I've discovered the one more shit "tool" that can ruin your code in 1 minute —F... JADE. And yes, I hate all tabulation dependent languages, so fuck all these Python, Ruby, Stylus, CoffeeScript etc. CoffeeScript btw is probably the most unreasonable shit invention. These days every fucking jerk invents his own "programming language" and hundreds of other nerds are applauding - "wow! cool! its great! because... its NEW" :)

Tuesday, May 17, 2016

Zeplin

 — the brilliant tool to collaborate between designers and coders within the distributed development team.

Sunday, May 8, 2016

fucking MASTERPIECE garbage collectors I ever seen :)

1.
while(1) free(rand());


2.
typedef unsigned long long ull;
for( ull i = 0; i < std::numeric_limits<ull>::max(); ++i )
{
    free( (void*)i );
}

Tuesday, April 19, 2016

WHY JAVASCRIPT DEVELOPMENT IS CRAZY — I appreciate it. Thank you, Sean. Although actually not the JS development is crazy but the so called front-end development (btw who is that idiot who invented this term?) is crazy.

Thursday, January 28, 2016

Интервью кандидата на вакансию senior frontend-developer в 21 веке

– Откуда вы узнали о нашей компании?
– Да просто вакансию увидел. Не слышал никогда раньше про вашу компанию, если честно.
– Наша компания бла-бла-бла пиздец крутая бла-бла-бла бороздят бла-бла-бла просторы больших театров [и так далее на полчаса] Теперь давайте поговорим о вас? Вот у меня тут лежит ваше резюме, там написано, что вы работали c Evernote, Barnes&Noble и другими всемирно известными брендами?
– Да, работал. И с ними в том числе.
– А что вы там делали?? [читаем между строк: а на хер ты тогда к нам-то пришёл, если такой крутой?]
– Программировал.
– А почему больше не программируете там?
– Потому что всё написали, что требовалось, контракт закончился.
– А можно посмотреть на код вот того модуля, который, как указано в вашем резюме вы написали?
– Нет, нельзя.
– Почему?
– Потому что копирайт.
– У вас есть диплом прогроммизда? [а у меня есть!!!]
– Нет.
– Как?! И как же вы без него?
– Да очень просто. Бьют-то ведь не по паспорту, а по морде. К тому же во времена моей юности нигде на прогроммиздов не учили.
– ОК. С какими фреймворками вам приходилось работать?
– Видел многие. Не работал ни с какими.
– Почему?
– Потому, что все они — говно и на фиг не нужны.
– Но как же вы можете говорить, что, скажем, фреймворк N — говно, если вы его даже не пробовали?
– Не всем нужно попробовать говно на вкус, чтобы понять, что это говно. Суть абсолютно любого из существующих на сегодняшний день фронтенд-говнофреймворков одна и та же: нагромоздить горы неотрезанных Оккамом сущностей для того, чтобы китайская кухарка смогла нарисовать кнопку для нажимания. Пожрать при этом невтрахенное количество машинных ресурсов — благо сейчас машины зверски мощные. Засунуть всё в глобал-скоп. Параллельно можно придумать еще один никому на хрен не нужный идиотский как бы язык как бы программирования (благо тулзы для их создания есть на халяву) и вонзить его в недра. Выступать на модных фрикерских тусовках, чтобы показать себя как бы гениальным. Когда всё напиленное таиландскими скотоводами говнище станет окончательно неподдерживаемым — наконец-то нанять какого-нибудь программиста по имени Геракл разгребать потихоньку, самому же красиво отойти в сторону, внезапно обнаружив в себе зов к служению Будде в горах Тибета или что-то типа того (благо бабло с инвесторов вытянуто нормальное). Попутно пусть все заметят, как без Тебя всё стало разрабатываться не быстро.
– А как же вы без фреймворка организуете, скажем, большой проект, состоящий из пятидесяти модулей??
– Головой и руками, естественно.
– А вы, случайно, не Геракл?
– Уже не он.
– Жаль… Тогда, может быть, поговорим о дизайн-паттернах?
– Ну, давайте попробуем. Можем сразу с поведенческих начать.
– Вам знаком такой паттерн MVC?
– Извините, идите на хуй…

Sunday, July 12, 2015

A memory leaking code example (for best practice with AngularJS) ?

GO HERE.
At the bottom ("Accessing the backend") let's look into the file "finance3.js".
Do you see there this line: usdToForeignRates = newUsdToForeignRates; ?
If I understood the things correctly, this is a good memory-leak, huh? Or not?