When you’ve got several identical values in your code, you only store one copy. Instead of having several copies of the same thing, they all just point to this one version, which is a lot more efficient. It’s a process often called ‘interning’ in programming circles.
lukepistrol/TimeMachineStatus: TimeMachineStatus is a little menu bar application for macOS which aims to show more useful information than the system default.
TimeMachineStatus is a little menu bar application for macOS which aims to show more useful information than the system default. - lukepistrol/TimeMachineStatus
There’s a new release from Google Gemini this morning: the first in the Gemini 2.5 series. Google call it “a thinking model, designed to tackle increasingly complex problems”. It’s already …
Implementing an Inventory Module in Ruby on Rails: Handling Concurrency with Database Locks and SKIP LOCKED
Implementing an Inventory Module in Ruby on Rails: Handling Concurrency with Database Locks and SKIP LOCKED When implementing an inventory module in a Ruby on Rails application, ensuring consistency in stock levels is crucial. If multiple users try to purchase the same item simultaneously, concurrency issues can lead to overselling. In this post, we’ll explore two approaches to handling inventory management: Using a simple counter with database locks to prevent race conditions. Improving performance using SKIP LOCKED for efficient inventory allocation.
Tabby - Opensource, self-hosted AI coding assistant
Tabby is an open-source AI coding assistant that empowers developers to code faster and smarter. Discover a self-contained alternative to GitHub Copilot, tailored for your development needs.
GitSeek | Copy Complete Code from Any Repo for AI Tools
GitSeek helps you quickly extract the complete code you need from any repository. Paste to Claude for detailed explanations, or feed into Cursor to implement similar features in your projects. With project visualization and architecture insights.
Once a year or so Postgres manages to surprise me for some of those daily DB micro-operations, that come from muscle memory usually, without any braincells spent. Today to my delight I stumbled on one such again - for the task of starting a psql session in a safe read-only...
A Practical Guide to Postgres Isolation Anomalies and How To Tame Them
Postgres is a powerful and versatile database management system, now ubiquitously used in all types of applications. In the context of web services, its most important property is the ability to serve multitudes of users at the same time. This article explores how Postgres makes it possible by examining what can go wrong when transactions from multiple users interweave - it covers isolation levels and possible anomalies, along with ways to avoid them
In this blog post, we explore how we can test that complicated TypeScript types work as expected. To do that, we need assertions at the type level and other tools.
Best Practices for Cognitive Accessibility in Web Design
Unlock the full potential of your website with expert cognitive accessibility tips. Explore WCAG guidelines, design patterns, and real-world case studies.
The bare minimum you need to enable View Transitions on your website
View transitions are a great way to make your website feel more dynamic and engaging when users navigate between pages. The View Transition API, in particular, lets you create animated transitions between different website views.
Minding the gaps: A new way to draw separators in CSS
Drawing separator lines between various sections of a webpage is a common design technique, which can help to structure the content and make it more readable, as well as more aesthetically pleasing.
As we'll see in this article, there are techniques
Should we be using AI to write our documentation? Probably not, as the process is one of the most important parts. But are there ways we could use AI to help with our documentation?
Understanding the trade-offs of using Tailwind CSS
Tailwind helps you build web pages quickly with a utility-first approach — but is it right for your project? Here we explore its benefits and trade-offs.
How to Configure Sign in With Apple in Rails 8 without Omniauth
I recently battled to get “Sign in with Apple” working without using the OmniAuth gem just to get the nice looking button from Apple. 😆 This guide explains all the quirks and gotchas you’ll need to get it working too.
This post is part of a mini series on Rails 8 asset pipeline. For the full picture, start with breakdown of how propshaft and importmap-rails work together and Propshaft deep dive.