Homepage
Open in app
Sign inGet started

Reflecting on bits

Go to the profile of Alexey Komov
Alexey Komov
Jan 8, 2017

Game of life in simplest terms

Hi there!

I was always compelled to implement Conway’s game of life. What a blunt start of the story 😆.

But yeah, I’ve always was astonished of how quite simple starting conditions and equally simple set of rules can lead…

Read more…
Go to the profile of Alexey Komov
Alexey Komov
Sep 7, 2016

Fun exercise: sum of numbers through infinite currying in JS.

There’s a fun question (depending on you definition of fun, of course 😆). How do you write function sum, so that the following is true?

sum(1) == 1;//true
sum(1)(2) == 3;//true
sum(1)(4)(1) ==…
Read more…
2 responses
Go to the profile of Alexey Komov
Alexey Komov
Jun 2, 2016

Internals of momentum scrolling in GMail iOS web app are pretty interesting!

Why would anyone want to re-implement scrolling in browser? The quick answer would be: in modern times — no-one. Isn’t it obvious? Well, it turns out, not quite.

Read more…
Go to the profile of Alexey Komov
Alexey Komov
Apr 28, 2016

How to solve ‘missing %output%’ error when using Closure Compiler.

TLDR; Use --output_wrapper_file option.

If you’re, like me, using closurebuilder.py to launch Closure Compiler compilation using output_wrapper option, you might be encountering this error:

Read more…
Go to the profile of Alexey Komov
Alexey Komov
Apr 6, 2016

How to export closure-compiled code in npm module.

Recently, I’ve discovered that it’s somewhat non-trivial to add block of closure-compiled code to npm as a module.

In order for it to be discoverable by Node.js module system, I did the following:

Read more…
Go to the profile of Alexey Komov
Alexey Komov
Oct 10, 2013

Hardest bug to find. So far…

Be wary… Closure compiler related post. And, by accident, my first post on medium. So be wary even more. 😆

Read more…
About Reflecting on bitsLatest StoriesArchiveAbout MediumTermsPrivacyTeams