Vue-fragment – many components inside template

Vue is very nice JS framework with – in my opinion – very clean and simple structure. It’s separate HTML, CSS and JavaScript, in effect it’s much cleaner than React. But Vue is not ideal, and sometimes its limitations can be strange and annoying. Good example is that we must use only one child elements on every component. It doesn’t matter in many cases, but try to render table with some child components and conditions – I promise you, it will be real nightmare.

Continue reading “Vue-fragment – many components inside template”

Why I love cycling

Love cycling

I often write about cycling and similar topics like stuff reveiews. But… why? Why it’s not only developer, but also cyclist blog, why I like cycling? Answer is not simple, because there are a lot of factors. I can list only few of them – it isn’t complete list, but may be helpful to understand, why I do certain things and why I make such and no other decisions. I’m also open to your opinion and your observations – do you like cycling? Do you love this and… why this exactly?

Continue reading “Why I love cycling”

Vue.js – global event bus

Vue is very nice JavaScript framework – fast to use and with clean code. Most of rules are logical and easy to understand, but some limitations may be strange and problematic. One of them is one-way data flow. We can pass data from parents to child elements automatically, but in reverse, use only events data. Sometimes it may be an issue, because we have nested components structure and would like to send event to top level parent.

Continue reading “Vue.js – global event bus”

Why you should try Zwift

Zwift Cycling #4

I really dislike cycling in winter, in bad weather. There are a lot of difficulties with this, which make me angry and discouraged. It’s cold, so we need more clothes and also more time to prepare. It’s dark, because days are much shorter. I have very good bicycle flashlight, but I don’t like it anyway. It’s a mess, because of conditions, rain, snow we must clean our bike every ride. Not only bike, but also ourselves and flat, if we don’t have special place for our bike. Finally, it’s dangerous, because of lack of light and weather conditions, we have more changes to accident – independently or with car. Solution? Use trainer. But trainer is boring… Really? Not with Zwift.

Continue reading “Why you should try Zwift”

USB-C hub for MacBook: difficult choice

USB-C Hub

Apple redesigned MacBooks in 2016 and since then, these notebooks offers only two types of ports: USB-C with Thunderbolt 3, and audio jack. Most of us have a lot of devices with older, but still great and just enough USB-A port. Also, we sometimes need to connect other devices like LAN for network, external display or SD card. Apple called their devices “Pro”, but it isn’t for professional with such limits in very important matter. I use MacBook Pro 15 2018 and also had troubles with that. Notebook offers four, very advanced and high-bandwitch Thunderbolt 3 ports (do you know, that it can be used to connect external graphics card called eGPU to computer?), but it’s not simple, because I would have to exchange all my devices. Bad a solution, so it’s time to looking for USB-C hub with additional ports like USB-A and Ethernet.

Continue reading “USB-C hub for MacBook: difficult choice”