Life tips not only for geeks.
Hacks.
Ship Django project as Docker image.
Recently I needed to deploy inherited Django project. My usual approach would be to ship it as docker container. Since python is not exactly my thing, I googled how to. Unfortunately there was no simple and clean tutorial. So I wrote it (with Gunincorn and Nginx to be production ready).
Change your default browser!
Are you a tech-savvy Mac user? Then you'll love this solution: change your default browser to an app that's not even a browser at all! Let me explain the problem: when you receive incoming messages with links, you want to be able to open them easily by clicking, but sometimes you'd like certain links to open in Chrome (like Google Meet) and others in Safari (like Medium.com). Read further to learn how to do this.
Playwright, end to end testing tool done right.
End-to-end testing is essential, especially when considering regression tests. All the platforms I've used in the past feel dated, as though I'm using Windows 95. Recently, while experimenting with Svelte, I came across Playwright. It's amazing! There's hardly any learning curve, and it's all integrated into my IDE. Give it a try - you won't regret it!
Learn FlexBox in minutes.
A few years ago, I conducted a session with individuals who were beginning their journey as front-end developers. It was quite surprising to me that they were having difficulty understanding FlexBox. To assist them, I created this demo using TailwindCSS classes - it might be of help to you too!
Prompt engineering.
AI is revolutionising the way code is written. With the use of AI-based coding tools like GitHub's Copilot, we can rapidly and effortlessly generate intricate algorithms that would ordinarily take an extended amount of time to compose manually. However, these are just blocks of code; soon it will be the entire application. The requisite skill of today is not another framework or programming language; we need to effectively prompt AI to write what we desire.
Turborepo is a good thing.
I was initially hesitant to embrace monorepos, as I preferred the clean and organised structure of my individual project folders. The only downside was the difficulty of reusing design systems across multiple applications. However, Turborepo has changed my opinion; give it a try!