Laravel Eloquent: MongoDB relations

Laravel offers very complex Eloquent – ORM simple to use, but with a lot of options. One of them is relations support. We can define several types of relations between our models and then use them to simplify get the data. Relations are also support by MongoDB extension for Eloquent, which is available on GitHub. Sometimes it may be difficult to use because of some issues with ObjectId and BSON. Let’s see how it can be solved.

Continue reading “Laravel Eloquent: MongoDB relations”

Few words about meditation

I have been planning this post for a long time, but there has always been something “more important”. But finally, it’s time to write about meditation. In the beginning I must said one important thing – I’m not very experienced in meditation. I tried and use several techniques, but I’m not a big source of knowledge about that. If you want to see professional opinions, professional descriptions and tricks, use good literature for that. I can only describe my feelings, my observations and what I think about mediation. It’s only my opinion, do not use it as general “rating”.

Continue reading “Few words about meditation”

Divide and Conquer

I work as a software developer and very often must solve big, difficult problems. In most cases, first look at the problem is: “what a crap, it’s impossible to do this!”. But it isn’t true, there are no impossible things. I always take a step back, wait a moment and try to see only one or few parts of issue. Now it’s much simpler. This is divide and conquer principle. Very useful not only in IT, but also on whole live, if you know how to use it.

Continue reading “Divide and Conquer”

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

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”