In my last article, I talked about the flyweight design pattern. I mostly talked about how it can save you (and your end user) bandwidth. I failed to mention the save on memory. If we continue the example from the aforementioned blog post, let’s measure the memory consumption. A short reminder – the client code […]
Your users expect a fast and smooth experience. Sometimes what stands in the way is how long it takes to download data. The flyweight design pattern is a possible solution to help reduce bandwidth in your app.
After the Object Pool article went online, I was asked this on Facebook: What I take from here is 2 fold: The one paragraph spent explaining about use cases might not be enough – we need an example that is somewhat like real life. From the article, it might seem that Object Pool is the […]
In a former article I’ve shown the consequences of memory allocation and garbage collection. Object pool is a simple design pattern that can be used in order to solve both problems.
Javascript developers usually don’t care much about memory management. The JS engine does most of the heavy lifting for us. In this post I’m going to demonstrate how important it is to understand JavaScript memory management. Let’s take a look at an example: The two functions – buildArray and buildArray2 do the same thing. They […]
I’ve just uploaded all of my publications to github. It was super easy using https://stackedit.io/. If you want to publish something with markdown, stackedit will make your life super easy. Oh – and here’s the link to my publications repository: https://github.com/YonatanKra/publications
About a year and a half ago I spoke at fullstackon 2018 London. I just got off stage, and the first people to catch me were a bunch of guys who called themselves WarsawJS. Still light headed from my talk, I let them convince me to solve some JS riddle. I don’t really remember what […]