PHP: anonymous functions, lambdas and closures

Three months ago I wrote post about arrow functions in JavaScript. It’s very nice feature, that can help write code faster and also solves “this” keyword range and visibility. This method is available in JavaScript and several other languages. But what about PHP? Unfortunatelly, we can’t use arrow functions in this language, they aren’t supported now (November 2018), there is only a RFC and experimental implementantion. Maybe in next versions… But we can also use anonymous functions, we can also use closures and lambdas. This post is about them.

Continue reading “PHP: anonymous functions, lambdas and closures”

Panaracer Gravelking SK 35mm – review

I use only one bike for everything and it causes some issues – different conditions required different tires. Last winter I wrote about Schwalbe X-One: completely disappointing in Performance version and very nice in Evo. These tires was great, but for CX-usage: on light mud, on wet grass etc. Not on tarmac and gravel, because of noticeable changes in rolling resistance. In the spring I decided to change them to something else, something for dry conditions and gravel. Now, after many kilometers and many rides, I can review Panaracer Gravelking SK’s.

Continue reading “Panaracer Gravelking SK 35mm – review”

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”