Create development environment on MacOS using Homebrew

I prefer MacOS to develop, because it’s much more stable than Windows 10 – last issues with October update are the best evidence, that something is not ok with this OS development. It’s similar to Linux in many ways, but not exactly Linux like Debian, Ubuntu, RHEL etc. In effect, we can’t just use build-in repositories to install some required software, services and servers. But there is very nice option called Homebrew. Using this, we can make MacOS even closer to Linux system and configuration will be simpler.

Continue reading “Create development environment on MacOS using Homebrew”

Carbon handlebars in CX bike – is it worth it?

I have carbon-based frame and fork on my CX bike (used also as road bike and gravel) and I make a lot of experiments with it – changing chainrings, wheels, derailleurs, tires. One of interesting test was carbon-based handlebars. I decided to buy it and try, on road cycling, but also on light terrain. After few months I really can’t recommend this solution, because of many disadvantages and a lack of real life advantages. Maybe you can say something different about that, but I don’t have great opinion about carbon in this place.

Continue reading “Carbon handlebars in CX bike – is it worth it?”

Why I stopped using tubeless and why it sucks

I wrote few times about tubeless or about tyres which I use in tubeless system – for example Schwalbe X-One on CX rides, Schwalbe Pro One on road (road tubeless), and Panaracer Gravelking SK as gravel allround tyres. After more than I year, I decided to stop this madness and go back to inner tubes. Why? Because tubeless isn’t perfect, and on real, amateur usage, can be very problematic. Read more to see why.

Continue reading “Why I stopped using tubeless and why it sucks”

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”