January 11, 2021

InertiaJS - make scroll regions preserve their scroll on next requests

Problem: Preserve and restore the scroll position of a scroll region when it's on the same page with whatever is displayed when clicking on the list elements. In our example bellow, we have a list with people and a container next to it showing the...


December 18, 2020

Cleaning up old unused records and files in Laravel applications

Sometimes to improve the user's experience, it makes sense to store files and create records hoping they will eventually be used somehow. We're doing it here with this tweet form. We let the user select and upload photos; we then store them on the...


Surviving your first week of Git without losing your mind cover image

December 9, 2020

Surviving your first week of Git without losing your mind

No matter what kind of software you are writing or what technologies and languages you are using, there is a good chance (~74% to be more precise) you need to learn how to use git. The problem is... well, git is quite large and complicated. And the more...


May 31, 2020

Managing SVG Icons in VueJs applications

Using the right icons can make our applications not only better looking but also more intuitive. Inline SVG icons are safe, sharp, and easy to customize, but they tend to ruin our markup and make it less pleasant to navigate. Another problem is that...


Why rewriting applications from scratch is almost always a bad idea cover image

February 9, 2020

Why rewriting applications from scratch is almost always a bad idea

There are many good reasons to rewrite a legacy application, but most of the time, the cost outweighs the benefits. In this article, I try to balance the pros and cons of rewriting applications from scratch and articulate why it is almost always a bad...


January 3, 2020

Less boilerplate and more awesomeness with the new InertiaJS form helper

In this video we'll take a look over Inertia's new form helper – a game changer as it solves some of the old pains we had with forms, while removing a lot of boilerplate as well.


December 21, 2019

4 ways to deal with complexity in your eloquent models

I think everyone loves to work on completely greenfield applications. You get to plan your own course, chose your current favourite technologies, structures, and patterns to follow. There is no legacy code, no technical debt, nothing that stands in your...


October 21, 2019

InertiaJS infinite scrolling example

I just published a new video on how to do infinite scrolling in an InertiaJS and Laravel application – using a twitter-like feed as an example. The gist of it is: Setup a listener for the scroll event Inside the listener calculate the remaining...


July 9, 2019

Composer - everything I should have known

Composer was just something I used to get my project up and running and occasionally install additional libraries. I never put too much thought into it – it just worked. Sometimes I would run into problems, but often they were easily fixed by running...


April 8, 2019

Interfering in the way users are used to doing things is a no-no

Gainslog is a simple calorie tracker I made with only a handful of users. If you ever tracked your macros before, you know reaching your daily protein intake goal is the most difficult to attain from all three macronutrients (proteins, carbs, and fats)....

Constantin Druc

Hi, I'm Constantin!

I am a full stack developer sharing everything I know here on my blog and through my screencasts.

What's your e-mail?

Get a monthly digest of what I've been up to: screencasts, blogposts, and other goodies.

No spam. Unsubscribe anytime.

Recent posts: