New React Context API
I like new react API for creating and using context. It feels right. One thing I immediately tried to do was creating a helper which simplifies consuming multiple contexts. Because they create context hell. When you component uses more than one context and because of a children as a function pattern (which is basically the…
Goroutines don’t panic if channel they write to is gone
Couple of months ago I wrote an article about error handling in concurrent Go programs. One concern I had about it was if other goroutines would panic if some goroutine produces an error value which causes return from function when the channel is iterated with range construct. So I made another program that mimics scenario.…
Auto-reloading (safe-write) issues of application development servers
I have discovered new module bundler for developing applications in JavaScript. It’s called Parcel.js and my initial impressions are positive. That’s what I tweeted about it: Take a look at @parceljs if you are looking for fast #webpack alternative with no config (supports features associated with a good module bundlers). https://t.co/ad4AVaWGXE #javascript — Jernej (@jernejsila)…
TV series and movies I’m watching these days
I like watching TV series and movies from time to time. Not on TV, but on my laptop because advantages are clear to me; no annoying ads and you can watch video on-demand. You can also organize time how you are going to watch it. For example often I don’t watch a movie from start…
Total Lunar Eclipse (Super Blue Blood Moon), January 31, 2018
Yesterday sister sent me a request over an e-mail if I could print some document for her. Of course I wanted to grant her wish immediately only to find out after first page being printed, a black cartridge was out. Since it was only 6 pm and the nearest shop that sells cartridges was still…