/ Blog
-
JavaScript _ 2021-01-14
Transpile to ES modules with Babel
While I was working on Navigo an issue popped out. It was about using the library in the context of Web Dev Server where we have everything in TypeScript. And something was not ok with Navigo. The npm package wasn't exported properly and we were keep getting a
does not provide an export named 'default'error. It turned out the problem is that Navigo is not exported properly as ES module (also known as ESM). -
JavaScript _ 2021-01-01
Mocking console methods with Jest
-
Architecture _ 2020-12-11
Copy files and directories from and to Kubernetes pods
At work we have a project that uses
node:10-jessieimage as a base for its docker container. That image has noviinside so I wondered how to check the content of a file. Luckilykubectlhas a neat command to copy files from and to a pod. -
JavaScript _ 2020-11-29
Replacing code for production with Babel transformation
If you are building some sort of an app, Babel is probably part of your build system. It is that thing which converts our fancy code to valid, working in a browser, JavaScript. Just recently at work I had to design a solution that swaps a class based on the environment. Or in another words, we have logic that should not reach our users. The file should be available locally and on our staging environment but not in production. A tiny Babel plugin was the cheapest solution for me so I decided to share the result.
-
Other _ 2020-11-27
iPhone stuck on the Apple logo
Last weekend I was helping a friend to deal with his "broken" iPhone XR. It was stuck on the Apple logo. No mather what we do the phone was just black and the apple shows up.
-
Other _ 2020-09-18
Transfer MP3 file from Mac OS Catalina to iPhone iOS 14.0
I did transfer MP3 files from my mac to my iPhone three times and every time I'm forgetting how it actually works. So I decided to document the process into a blog post.
-
JavaScript _ 2020-09-13
What the heck is Google Tag Manager and what it has to do with Google Analytics
Just recently I had to do changes in Google Tag Manager at work. It's interesting how I keep forgetting how everything works. So I finally decided to sit down and write an article about these things. If nothing else I will have a good memory snapshot to remind me what is what.
-
JavaScript _ 2020-09-12
You Really Don't Need All That JavaScript, I Promise by Stuart Langridge
JavaScript is your behavior layer; the way to add interactivity to your sites, to provide a slick and delightful user experience, to make everything fast and easy and clean. But at some point everything changed: the tail started to wag the dog instead and development became JavaScript-first.
-
JavaScript _ 2020-09-07
ReactNative: using SVG as a button
Just recently I started using ReactNative. I've been using React for years but this thing is a whole new world. There are tons of basic stuff which I don't know how to do. Using an SVG as a button is one of them. Find my solution below and expect more short #reactnative blog post soon.
-
JavaScript _ 2020-07-21
React: 50 shades of state
We all know that one of the most challenging task in software development is state management. This is especially true for the JavaScript world. There are thousands of articles on this topic and so I decided to write another one 😁. I wanted to share my current thoughts on the different state types. I found that answering "What lives where?" question is far more important than the actual state management. Which more or less is an implementation detail.