When you are learning about a new frontend library, such as Vue or React you can read up a lot on certain best practices. There should be no problem finding resources on effective component composition, how to prevent performance bottlenecks, and the basics of state management, such as Redux, VueX, and so on.

But then, there’s an area that is hard to find any information for and that’s how to build a good data layer. …

Part 2 — canceling, throttling, debouncing, polling

Visualization of a restartable task in vue-concurrency

In the previous article, I talked about promises and handling async state. This article will point towards another weak point of promises: lack of cancelation.

It’s easy to think that you have no need for cancelation. Paradoxically, because with the current default tools in JavaScript cancelation is hard, it’s not often talked about and recommended. But there indeed are use cases when cancelation is a powerful tool and not just for some advanced use cases, but also in common features such as debouncing and polling or just to make asynchronous logic overall more safe. You just need the right tool.

Part 1: Managing Async state

Reactive state in vue-concurrency

A couple of months ago at work, we’ve decided to go all-in on Composition API with a new version of our product.

And from what I can tell — looking around at new plugins appearing, all the discussions in the discord community — the composition API gets increasingly more popular. It’s not just us.

Composition API makes a lot of things easier but it also brings some challenges as some things need to be rethought regarding how they fit into this new concept and it might take some time before the best practices are established.

One of the challenges is…

Fang Congyi, Cloudy Mountains

Last year I kept thinking about the self and the ego and what those really are and how they matter in my work, my personal life and maybe also overall in the grand scheme of things.

It seems like a topic that was hot in 2019, and rightfully so. On the other hand, there seems to be a tremendous amount of confusion about what the ego actually is.

I approached this from different perspectives. Rationally, intuitively, spiritually. I’ve read a lot of articles and books that directly or indirectly covered it. It was also very very relevant to my work…

Hi! Statistics are better visualized, and if we’re dealing with countries, it makes the most sense to visualize the data on a map. MapStats.io allows doing that in the quickest and easiest way possible.

MapStats.io is free and it doesn’t require signing up for you to create a map.

If you visit mapstats.io, you’ll be presented with a blank canvas:

It feels strange to go sit in a coffee shop in a different country. I mean at least now. I did that for a year when I was working remotely but up until now, it meant I would be working — all the things related to software development -communicating with colleagues, programming, reviewing code, testing. Now I’m yet again staring into a computer, but I don’t have that big queue of work stacked up. I haven’t done any coding for three months. …

Leaving Porto to Braga

I’ve always idealised travelling. When I was a little kid I asked one of my friends what the sea is like. “It’s fun, but it gets boring after some time”, he said. I honestly thought he’s not telling the truth. I thought he is just bragging, trying to pretend like the sea is not a big deal anymore. In my mind, the sea was just amazing. I imagined the waves calmly hitting the shore, the serenity, the sunsets, the dawns, the peace. Soon I realised these things are relative. The sea is only amazing if you look at it with…

Chapter 3/3

Eluah kept walking briskly forward, otherwise, the hot sand would burn his soles. He followed a narrow sandy path between two narrow cliffs. There was a small stream running by his side which gave him the confidence to go forward. As long as there was water, he could withstand the heat. The forest distracted him with chaotic sounds, poisonous pollen and constant danger. Now only the desert sun blurred his mind. Finally, he had time to think and make a clear goal.

He escaped the village because he had to leave the others. He would not be accepted…

Chapter 1/3

Eluah slowly descended into the darkness. The cold touch of the ocean embraced his whole body, slowing his heart rate and perception of time. He did not rush, it would only make him run out of air faster. He swam down slowly, patiently — until the depths pressured his body enough that he naturally started to sink. As the world got darker, his pupils dilated wildly trying to catch the remnants of blue and violet light. He started caressing the rocks in front of him, looking for small crevasses. That’s where the silver eels lived. …

Chapter 2/3

It was dark and quiet. Darkness was expected but the silence was suspicious. She pressed her body closer to the rough surface of a very tall and a very old tree. She listened. Nothing. She looked straight up. The moon was new and the clouds were bright red. No wind and the evening was warm. Strange. This silence could mean several things and none of them was good. Those thoughts made her cold and she could feel the goosebumps on her arms and legs. With a little effort, she climbed the tree, jumped from branch to branch and…

Martin Malinda

Creative through code. Inspired by nature.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store