How to Promote Primitive Values To Value Objects
I originally posted this post on my blog a long time ago in a galaxy far, far away. Not every primitive value deserves to be promoted to a value object. Some time ago, at a past job, I reviewed a pull request that triggered a discussion about when to use value objects instead of primitive […]
How to implement a Distributed Lock using Redis
I am Dumb Well, whenever we work in our local system everything works as butter. That is why we call “No better place than 127.0.0.1” but WAKE UP TO THE REALITY Well things not always work in production as expected. Mostly when you are running multiple instances of your application. 🚀 As you can see […]
How to Change Colours in Command Prompt?
Last Updated : 24 Jun, 2024 Customizing the appearance of your Command Prompt can make your coding or command execution sessions more enjoyable and easier on the eyes. In this guide, we’ll walk you through the process of changing colours in Command Prompt, from altering text colour to adjusting the background for better clarity and […]
Database 101: How to Model Leaderboards for 1M Player’s Game.
Ever wondered how a game like League of Legends, Fortnite, or even Rockband models its leaderboards? In this article, we’ll find out how to properly model a schema to handle them in a monstrously performative way! If you’re just getting started with databases in general or databases, you might want to start off by reading […]
How to Review Code – DEV Community
Everyone of us does code reviews daily, weekly, or at least monthly, however, what strategy do you use to review code? I hope you’re not jumping on a piece of code and start reviewing. Writing code is an art, similarly reviewing it. Background Even after writing and reviewing the code in different languages for more […]
How To Build a Web Application with HTMX and Go
This UI and backend are implemented with only 150 lines of code, including the HTML!The full example code for this tutorial is available in the babyapi GitHub repository if you’re eager to get into it. In my recent article, The Easiest Way to Create a REST API With Go, I demonstrated how babyapi can jumpstart […]