Traverse – very useful npm package

NPM has a lot, a lot of useful packages… and a lot of useless packages of course. Sometimes we can find something very nice. Last time I must modified nested object in JavaScript. I can write my own function to do this, use recursion for example, but I simply… didn’t have enough time to do this. I must find solution quickly, good solution. I and found – it’s traverse package. Yes, its name is very meaningful.

Continue reading “Traverse – very useful npm package”

MDL 2018 – Fantastic gravel, terrible weather

I started beginning of September in Lubin, on this year’s edition of Marathon Around the Lubin (in Polish: Maraton Dookoła Lubina, MDL). Some competitors (runners) started day before – they must run 100 kilometers… I started on Saturday morning with few friends – they decided to ride 75 kilometers distanse, I again ride 110 km. Everyone could choose distance and also choose path during day: we only must visit some checkpoints and get some stamps on received maps. 

As year before, it was again very nice time and great riding. A lot of gravel – on forest, on paths, sometimes on sands, and with some tarmac kilometers. Everything was great except weather. Forecasts said: it will be sunny… or it will be rainy day. It was pretty nice in the morning, but after few hours… heavy rain and we all completed race completely soaked. But it still was great. And gravel bike was also great again :) 

Arrow functions in JavaScript

One of very, very nice ES6 capabilities are arrow functions. Using them, we can creae shorter, cleaner code, and also avoid important issues with this keyword – I wrote about this keyword in one of some ealier posts. This time I would like to write few sentences about arrow functions. If you do not know them yet, you should get to know them as soon as possible.

Continue reading “Arrow functions in JavaScript”