A common critique of Rails is that it encourages a poor separation of concerns. That when things get serious, you need an alternative that brings the missing pieces. We disagree.
Most programmers are familiar with the concept of premature optimization and the reasons why it’s bad. As a reminder, the main reason premature optimization is bad is because it’s an effort to solve problems that probably aren’t real. It’s more economical to wait and observe where the performance bottlenecks are than to try to predict […]
I am a web developer from Germany, mostly working with Ruby on Rails, but also like to do Frontend Javascript with Vue, Svelte, Server-Deployment with Docker, Ansible, Terraform on Hetzner Cloud or build small mobile Apps with Flutter.
Nowadays web application security is a crucial and unfortunately sometimes a bit neglected matter. Today, I'll focus on Content Security Policy - a handy mechanism that can protect our app from XSS attacks.
This article will teach you how to create drop-down selects with Rails and Hotwire.
I want to add country and state to the user. When users select a country, we want to fetch all states from this country and add to the states input-select. Let's sta...
HTML elements receive different types of events, from click, to blur, to scroll, and so on. One behavior these events have in common is Event Bubbling. I'll explain what this behavior means in this article. I also made a video version of this article which you can watch here [https://www.youtube.com/watch?v=KaHZdW02Tg0].
If you've ever wanted to build a web app that you can control with hand gestures as if by magic, this article is for you. With a couple of APIs and some JavaScript, you can build apps that behave like sorcery.
This week’s system design refresher: ByteByteGo talent collective Why PostgreSQL is the most loved database What is a proxy? What is time/clock? Twitter architecture in 2012 ByteByteGo talent collective We are excited to announce the launch of the ByteByteGo talent collective! The collective's members will have exclusive access to opportunities at high-growth startups and world-class companies such as Meta, Stripe, Snowflake, etc.
Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats. - GitHub - adzap/validates_timeliness: Date and time validation plugin for Ac...
Adding authentication to your Rails app but don't want to store passwords or rely on third-party OAuth? Let's build a passwordless login system that emails users magic links!
This past weekend on a side project (RelationKit) I implemented a combined mentions feature to let my users do multiple quick actions while writing text with...
The Payment Request API provides a cross-browser standard that lets you collect payments, addresses, and contact information from your customers. You can then use this info to process their order. It also facilitates the exchange of this information between the browser and the website. The fundamental idea behind this is
I was recently asked to give an overview of how to add markdown support to a Ruby on Rails application. This guide will leverage a gem called [Redcarpet](htt...