41 stories
published so far


Introduction to the CSS rule

last modified: 5 February, 2019

Rethinking technical writing. Can Poet provide a better experience?

last modified: 4 February, 2019

Being a blogger for so long (roughly ten years) and having written three books I started questioning the process of writing and later reading technical materials. It looks like there is a lot of room for improvements. Especially those materials that involve JavaScript, HTML and CSS and usually have code mixed with text. This article summarizes my thoughts and it is a gentle introduction to Poet - a platform that I recently lunched.


My Story

last modified: 28 January, 2019

A simple story description to introduce the reader to the material. Useful for some introductory words.


Test poet

last modified: 25 January, 2019



Implementing Git in JavaScript

last modified: 30 January, 2019

This article is showing how Gitfred was build. A library that provides git-like experience for storing content in JavaScript. Poet.codes, the place where you are now, is using that library in order to optimize the data storing and transfer. And this material is presenting some of the ideas behind Gitfred.


React hooks: changing the mindset or maybe not

last modified: 29 December, 2019

If you use React you probably know about the so called hooks. They were officially announced at this year's ReactConf by Sophie Alpert and Dan Abramov. Their presentation could be seen here. I, same as many others got intrigued by this new feature. A little bit confused by if I like them or not but kind of excited. This article pretty much sums up my thinkings around React hooks and aims to give a balanced opinion.

Have in mind that the hooks just got released and they are (maybe) a subject of change. Beign an experimental feature React team suggests to check the official documentation at https://reactjs.org/docs/hooks-intro.html and monitor the RFC.


Meet sequence expression

last modified: 20 January, 2019

You have no idea how fun is to transpiler JavaScript. I’m digging into that last few weeks and there is a step where I have to transform an AST into valid code. There is one tree node which I really like - sequence expression.


Javascript template engine in just 20 lines of code

last modified: 3 February, 2019

Nowadays we don't think about this stuff but back in the days filling markup with data was not a simple task. Today frameworks like React fill the gap and it is quite easy to render content from a given HTML. This article explains how to build your own template engine with just a few lines of JavaScript. Even though you probably don't need such logic it is interesting to see how small this could be.


Hello world

last modified: 6 January, 2019

An example of how to use Demoit commits to form a Story.



last modified: 14 January, 2019

I've made the library as part of my work on demoit.app where I need to store multiple files and their different versions. Storing all the content every time simply doesn't scale so I needed a smarter approach. Something like Git but running in the browser. It needed to be lightweight and to provide similar diff/patch experience. That's what Gitfred is.


Introduction to Function-as-child-component pattern

last modified: 2 March, 2019

The Function-as-child component or the so called FaCC is one of the most popular patterns in React nowadays. There are numerous libraries using this approach and this article is revealing how it works.