Skip to main content

JavaScript Objects Cachification

路 14 min read

In one of our backend services, we have a class, that is basically the business model of the service and is used in many locations within the code. At some point, we decided that we need to do some caching since a few methods were doing very expensive calls to other remote services and they didn鈥檛 need to occur that often.

How do you add caching to a class that is used very often within the rest of the codebase in the least intrusive way? You wrap the prototype of the class of course! And how do you wrap the prototype of the class? With another function that does the wrapping of course!

How to tag data in Redis

路 5 min read

Redis is a wonderful piece of technology. An in-memory, super-fast key-value database, which if you do not already know that it exists, you have been living under a rock.

The cool thing about Redis, is that it supports more data types than simply storing string key-value pairs, and that鈥檚 when the fun begins. One of those data types, which will help us with our tagging exercise, is Sets.

Fight or flight? Breathe instead

路 10 min read

We鈥檝e all been there. Feeling the frustration, the unfairness, and the negativity consuming us while everything is getting out of our control.

Emotions take over your brain and you are suddenly overwhelmed by your own feelings, leaving no room for rational thinking. That鈥檚 when your flight or fight response kicks in.

Thanks to amygdala hijacking, rational thinking becomes very difficult, and smashing a chair on someone鈥檚 face or storming out of a meeting room becomes very tempting. But please, do not do it, and instead, take a DEEP breath in order to make the first step into regaining consciousness.

Remote work tips - How NOT to snap

路 3 min read

Lot of these articles going around these days due to COVID-19, but I felt like giving my two cents since I鈥檝e been a freelancer in the past, mostly working from home, so I know how it feels like.

Despite what everyone thinks about the awesomeness of working from the comfort of your couch, it鈥檚 definitely not easy. 螒fter a while, no matter how many tips you are going to read, it鈥檚 up to you to try and achieve mental toughness.

COVID-19

路 One min read

We are facing an unprecedented situation in human history. The COVID-19 virus has affected everyones life and is testing us in ways that we have not been tested before. It has been brutally attacking our health and our economies and imprisoned us in our own homes for our own safety but we need to be patient and go through this together.

Stay safe, be kind to each other and help those that need it.