How to embrace absurdity and unlock more creative coding
Articles that I have been reading
Week 2023-13
Week 2023-12
With a folder, some scripts, and some tools, you can make your ruby gem/code faster. Measure, improve and repeat.
How to use CSS Subgrid to solve the problem around aligning content in different columns
One of our favorite CSS preprocessor features is now built into the language: nesting style rules.
Learn to manage flash messages in Rails 7 with Hotwire. We will learn how to handle flash messages in Turbo...
In this post, we will explore the `AttributeAssignment` module in Rails, which allows you to set an object's attributes by...
Just my website. Some Elixir, some Ruby, some more exotic languages and general thoughts on tech.
Counting things can be tough. It’s a metric you need to show your users, but if you’re not careful at...
Introduction It has become common practice to use Docker and Docker compose when building...
Follow good practices with Active Record to make sure that your application's performance is on a good level and the...
Learn about the Ruby on Rails workflow that protects your database and application from accidental downtime and data loss.
GoodJob is a multithreaded, Postgres-based ActiveJob backend for Ruby on Rails.
If we want clients to create small controllers and use resources in their routes, it’s a good idea to know...
Week 2023-11
We’ve been running design sprints for over 10 years, it’s time for us to share everything we know about them...
Comparison of MRSK and Fly.io
Our top picks of the most practical product management frameworks for decision-making, prioritization, product metrics, and agile development
This article explores how to use markdown in Ruby. Learn how to use two popular Ruby libraries—Redcarpet and Kramdown—to parse...
Being more transparent as a Staff+ engineer can help build trust and encourage best practice across entire engineering teams.
I’m Kitty Giraudel, a non-binary trans frontend developer based in Berlin, focused on accessibility and inclusivity.
Common concerns and solutions... because tech is for anyone who cares about it.
A UI design case study to redesign an example user interface using logical rules or guidelines
Testing anti-patterns I learned to stay away from over the years.
You’ve probably been using callbacks. Don’t.
Introduction Views and Common Table Expression or CTE are two important concept in...
When writing an integration or system test in Rails, have you ever needed to click a link in an email?...
Week 2023-10
The router is the entry point of your Rails application. It acts as the gatekeeper for all incoming HTTP requests,...
How can you ensure that a modification on a component won't break the responsiveness on the user...
Confession: I’ve always struggled to understand the difference between stubbing and doubles…
Join my private training platform for web designers:https://www.paitpro.com🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳Perfect Your Web Designs With Thes...
Today we take a look at a Stimulus implementation for nested forms in Ruby on Rails 7. It's a bit...
A practical guide on how you can build a pure-CSS direction-aware hover effect for your navigation menu bar using :has()...
Something non-designers understandably struggle with is how to make things look good. One of those things is long form content...
If you find yourself wrestling with CSS layout, it’s likely you’re making decisions for browsers they should be making themselves....
For years, developers have passed around a set of styles like a magic incantation. It's time we made it a...
Fixing N+1 issues is often the lowest-hanging fruit in optimizing a Rails app performance. However, for non-trivial cases choosing a...
Compare git rebase with the related git merge command and identify all of the potential opportunities to incorporate rebasing into...
Is it an Alert, Toast, Callout, Popup, Snackbar, or Notification?
Week 2023-9
Despite its strong opinions and powerful conventions, Rails is a highly flexible and configurable framework. If you don’t like something,...
Understanding PostgreSQL views and materialized views is essential to fully grasp one of the most popular features in Timescale that...
Developers are passionate about their tools - sometimes to a fault. There is value in being open to change and...
It's easy to get going with logging with Rails, but not so easy to master it. Discover how you can...
It’s a popular internet recommendation to use eager loading in Ruby on Rails applications to eliminate the N+1 query problem....
Week 2023-8
Let's dive into how Kredis works and how you can use it to store short-term UI state.
What is RailsEngine? A Rails engine is a self-contained piece of functionality that can be...
My team’s Managing Director and advisor on the project I’m working on, Kirsten, has noticed how reluctant I am in...
🎓 Start writing CSS with more confidence with one of my courses: https://kevinpowell.co/courses🔗 Links✅ Full list of filter effects: https://developer.mozi......
Calling freeze on an object may not provide the immutability you expect. Here we dig into some of freeze's nuances...
Learn how to effectively render tooltips in Rails without writing any JavaScript.
Week 2023-7
Rails protects your web application from CSRF attack by including an authenticity token in the HTML forms. This token is...
7 techniques to increase the developer’s experience during a Rails console session
A close look at the process we used to make our version of Kanban nice and useful on mobile devices....
More 'things I forgot' - using create_with and where in making new records. We can make use of the resulting...
The idea that hiring more developers will lead to faster time-to-market, is a common misconception.
CSS has been around for 25+ years, gaining tons of features and selectors to create great websites and apps. In...
With iOS and iPadOS 16.4 beta 1 comes support for Web Push for Home Screen web apps, Badging API, Manifest...
#small #methods #code #design #ruby
Thanks to zverok_kha’s awesome writeup of Ruby changes, I noticed a new method released in ruby 3.2: CGI.escapeURIComponent This is...
Let's take a look at what we can expect from the upcoming Rails 7.1 release.
Nithin Bekal's blog about programming - Ruby, Rails, Vim, Elixir.
Use formaction, formenctype, formmethod and formnovalidate to change form configuration with button attributes
Your local data isn’t the same as in production
Week 2023-6
Photo by Joshua Fuller on Unsplash Ruby has joined the ranks of languages capable of targeting...
How to use ActiveRecord transactions, handle errors and avoid pitfalls.
Should you be concerned about Rails concerns?
We had previously talked about the Serialization formats and How Serialization is implemented for storing objects in the relational database...
Although Ruby on Rails is the oldest framework, and some claim that it is no longer in use, developers still...
Outlines are important for keyboard navigation, but maybe you've come up with a replacement and decide to do an outline:...
Pair programming is intimate. It’s the closest collaboration we do as software developers. When it goes well, it feels great!...
It can be helpful in a Rails application to send notifications to a Slack channel, for example, when...
What is psychological safety, and why is it so important? Tips on how to improve your team
With all the advancements in software development, apps could be much better. Why aren't they?
Ruby on Rails and ReactJS consulting company. We also build mobile applications using React Native
Better UX through better HTML: inputmode, enterkeyhint, and autocomplete.
All the best things about VS Code that nobody ever bothered to tell you
Most people know about semantic HTML, but when it comes to CSS, things are a little more wishy-washy most of...
Are your feature flags states leaking between your test cases? Stub them all to make your test suite more reliable....
Week 2023-5
The Decree pattern helps developers write single-purpose service objects that have a predictable API contract, are composable, are easily tested,...
What if your Rails app couldn’t tell who was visiting it? If you had no idea that the same person...
Let's build a table editor in a Rails application using ActionText's Trix editor, and use Turbo Frames to customize your...
Load, parse, compile, and serve assets efficiently in a Rails Engine.
Business Intelligence transforms raw data into actionable insights that support business decisions through reports, dashboards, and charts. You can use...
You may frequently need to extract crucial information from emails in your role as a developer. This...
When we allow users to upload images, they usually upload files without any optimization for the web. It’s up to...
We demonstrate how the popular "Ransack" library (Ruby on Rails) can be abused to exfiltrate sensitive data via character by...
Find out how you can keep your Rails views readable using helpers.
Core fundamentals that inform how we go about building — and shipping — great software at a sustainable pace.
Follow along with my example repo, which has a solution branch. So, you wanna be a Ruby on Rails...
RSpec custom matchers can be written using plain old objects.
A guide to a free Ruby development environment
Lane Shackleton, CPO at Coda, shares his team’s actual templates, processes, and many lessons learned
What companies follow an RFC-like process, and what are templates and examples to get inspiration from?
Week 2023-4
This is a guide for setting up AnyCable locally using Docker Compose, and deploying it on Amazon Web Services (AWS)...
Ruby 3.2.0 was released today! This is a perfect moment to check it out and see how YJIT behaves. I...
Database Views & Rails Active Record: defining new Model classes out of views Learn...
Holly, a blind screenreader user, explains the main accessibility barriers she faces every day. Bad heading structure, alt-text, links, forms...
Do you ever find it challenging to work on your project, side hustle, or even your hobby? Have you ever...
It helps keep your state manageable
Week 2023-3
Lambdas are a powerful feature of the Ruby language. Learn all about Lambdas and how best to leverage them in...
Useful front-end tools for CSS and JavaScript developers that were most popular last year and will help you speed up...
Rails 7.1 will include a Dockerfile to help ease production deployments
An example of refactoring a controller to use local variable and shorthand hash syntax
We unveil the toolbox of the Martian Rails engineer; we begin constructing a Gemfile from the universe of Martian gems...
In this post, we are going to show you tips and techniques on how to effectively store and index JSON...
What is Server-Side Request Forgery (SSRF), and why is it a concern for web security?
Once we include ActiveStorage::Streaming in a controller, we get access to the #send_blob_stream method which takes care of everything, from...
Mailers are used in literally every Rails application, but often an after thought where we throw out the rules of...
I've always hated maintaining database servers. Litestream offers a simple alternative without sacrificing reliability or security.
Have you heard about the ActiveRecord becomes method from Rails? Maybe it’ll come handy one day.
Week 2023-2
The instrumentation API in ActiveSupport serves a dual purpose. You can use it to implement the publish-subscribe pattern, as well...
Originally posted on ahmednadar.com Recently, the inline editing capabilities demand has...
Check out our downloadable Ruby on Rails Interview Questions Template, and learn how can you get the most honest responses...
Build and parse a programming language to extend your Rails application's functionality.
Understanding the need behind a change is important to build better software. Here’s why.
Capybara is an acceptance test framework for web applications. Learn how to use it with Minitest for integration testing of...
Rails developers can add versioning to their APIs with relatively little effort. This article explains why you need to add...
There are several motivations for running your local web application over SSL; making use of service workers being a prime...
With Heroku's free tier gone, this is my work-in-progress configuration for a new ruby on rails apps...
Week 2023-1
Rails 7 series | Ruby 7.0 adds disable_joins for associations
A description of a curios core class design decision made for happier coding
Metaprogramming in Ruby: Beginner Level This post is the first in a series focused on the application of Ruby metaprogramming....
You must have used a ~/.bashrc or ~/.zshrc file to configure your environment. Did you know Ruby on Rails has...
Week 2022-52
How, Why and When I TDD
Reading through Sandi Metz’s book Practical Object-Oritented Design in Ruby (POODR), I found myself yet again hit with several epiphanies…...
I have been working with a client with close to 600k images on their home page. The photos are tagged...
Reacting to events with JavaScript is the foundation of a dynamic experiences on the web. Whether it's a click event...
As makers, software engineers should adopt these 7 essential habits.
As we move into 2023, there are an increasing number of ways companies can engage with their customers. And as...
Sometimes want to skip certain validations on your database models. Maybe you have a multi-step wizard or want admins to...
Learn how to integrate the FilePond upload library with Ruby on Rails' Active Storage framework.
Week 2022-51
From Rails 7.1 has_secure_password now includes a password_challenge accessor to validate it against the currently persisted password.
How to build a clear and transparent process for supporting engineering career progression.
A cheat sheet to help you write interview and follow ups questions for user research and usability test protocols (also...
Let's walk through how you can use GitHub Actions to test a Ruby gem, or any other Library, against an...
Deploy a new Rails APP to Lambda in 5 minutes!
Week 2022-50
If you ask any developer what is technical debt they will probably tell you something along the lines of: Cutting...
Why this approach?
This post was extracted and adapted from The Rails and Hotwire Codex. It also assumes some...
I wanted to mix Hotwire (both Turbo and Stimulus) and View Components together but use it with my normal go-to...
In Ruby on Rails, a polymorphic association allows a model to belong to more than one other model on a...
In this article is for newer developers looking to learn strategy and commands on Rails. When I...
An exploration of how a frontend developer thinks while building an article layout.
All the agility has been sucked out of agile projects
When working with complex forms, it's really easy to immediately start adding JavaScript to implement non-common behaviors. But there are...
So we checked 2 major ways already of creating public (more or less) static pages: 1. brute force drop your...
Disclaimer: prepare for hair-splitting and nitpicking
The "current pattern" or "current context" is a technique that allows you to access some per-request data easily without having...
A four-step guide to leveling up your team from the staff plus position.
Autonomy is a wonderful thing. Here’s how to relinquish control and empower your engineering teams to deliver more impact.
Published on 24 Nov, 2022 | Takes approximately 8 min to read
Premature error messages, aggressively styled fields, and unnecessarily disruptive system-status messages feel bad-mannered and increase cognitive load for users during...
Highlights of what happened in our #dev channel on Slack this week.
A comprehensive overview of Rails’ many safety features that can help you prevent painful mistakes.
Startups use too much technology. My advice: Use Postgres for everyting
New Figma resource, a lightweight UI design starter kit to save you time.
Although Hotwire does not currently provide animations out of the box, it does give us hooks to add in our...
An article, talk, or tool that focuses on HTML every day until Christmas.
Week 2022-49
But there’s a way out of the misery
In the last article, we made a pretty cool little slider (or "carousel" if that’s what you prefer) that rotates...
It's time for a standup! These are the words that always put me in total panic mode. I don't even......
While Rails gained a lot of popularity among companies to develop products quickly, technical debt and scalability issues were challenges...
I never used to pair program, and then I spent four months on a pair-by-default team. Here's what I learned....
Sometimes you might want to enhance your application to notify users they might have lost their...
Time dependent tests are difficult to diagnose, and the symptoms don’t present themselves until it’s too late. This article will...
My experience of migrating from Paperclip to Active Storage on a production site.
Ever struggled to grasp what the Liskov Substitution Principle really mean?
Ruby provides a number of methods which make it very simple to read and write strings, arrays, shell commands etc....
Sometimes it's hard to know what is defined where
Week 2022-48
This week’s system design refresher: RPC vs. gRPC (Youtube video) Monolithic vs. Microservice Architecture What is k8s ChatGPT RPC vs....
A Ruby multithreaded crawler is a type of web crawler that is built using the Ruby programming...
We walk through how we implemented an SSE server that's scalable and load-balanced to simplify and improve a real-time data...
Learn how to build a robust authentication quickly in Rails without using a library like Devise.
In simple terms, Query Object allows you to encapsulate complex database queries. Why do we need it...
Scaling isn’t easy. You will need to set up processes on how things are going to work now that you...
If the thought of handwriting code seems silly, it might surprise you to know that it's inevitable. If you're unsure,...
In the last few years, I’ve had the pleasure of kicking off lots of new reporting relationships with both engineers...
Retaining great developers can be hard. Here are the ten company habits that make employees choose to stay, even when...
HTML lists are boring. They don’t do much, so we don’t really think about them despite how widely used they...
We’re introducing calendar-based versioning for our REST API, so we can keep evolving our API, whilst still giving integrators a...
There are lots of tutorials for building a CLI with Thor from scratch, but there aren't a lot of them...
Level 1: NOT BUSY My schedule is wide open. I can choose infinite paths. Zero commitments. The weekend. I sleep...
A deep dive into the semantics, behaviours and characteristics of some of the most common user interface elements of websites...
Nested HTML elements with different `visibility` properties (`visible` / `hidden`) can be visible even though their parent is hidden.
Week 2022-47
What is memoization? Memoization is a performance optimization technique. The idea with memoization is: “When a method invokes an expensive...
Prompting for a username and password is so 2005. Today, you can just prompt for a fingerprint.
This path gives an overview of how the Shortcut team estimates work and how the Shortcut tool effectively supports that...
It’s time to get me up to speed with modern CSS. There’s so much new in CSS that I know...
What is good software consulting? Watching a staff level engineer is a great way to learn good habits.
Handling third-party webhooks with Rails Event Store Lately, one of our clients asked us to review his Rails Event Store-based...
Week 2022-46
Whether by choice or by circumstance, you may find yourself developing a web application alone. Congratulations! You've got the house...
Adding site-wide configuration with a Rails model can be quite easy to do with Administrate.
More detail on how the thoughtbot team built one of the first Alexa skills in Arabic, and what we learned...
This post was extracted and adapted from The Rails and Hotwire Codex. Turbo Streams are a great...
We break down 13 different types of MVPs with examples, discuss the pros and cons of each type, and suggest...
How we got struck by 5–year–old implementation Recently we discovered that we were wrong on computing lock key for acquiring...
A join can normally only link two static result sets together, but with LATERAL joins an efficient for-each loop with...
In this article, Yosra Emad explains how to create a rollercoaster path that a ball follows using cubic beziers and...
Making a DNS query in Ruby from scratch
If it is important enough to need words, it is important enough to use text content.…
Now that it is a market differentiator to talk about accessibility in projects, that’s all many do — talk about...
Your team’s manual deployment process doesn’t have to be so manual. Here’s how we automated our team’s deployment process with...
A Ruby on Rails SaaS starter kit with two-factor authentication, teams spaces, and administration.
Week 2022-45
A replacement for strong parameters
You might have extended classes or instances in Rails, but do you know you can also extend Rails associations? class...
In this article I’ll discuss a strategy for different readability: a simple way to split your routes file on a...
Interview rubrics are a great way to reduce bias. Here's how to build a rubric for any technical role.
I've been working with Ruby on Rails for about 17 months now and I feel I've learned a lot so...
Sidekiq workers consume a lot of memory: how can I fix that?
I learned to code in the Javascript stack [1] and am building a Javascript based product [2]. I never questioned...
Why the Ruby philosophy is the exact opposite of other programming languages?
Discover what your team needs in their code review checklist, what they don't, and how you can automate code review...
You may know that GitHub encrypts your source code at rest, but you may not have known that we encrypt...
A big climate problem we can actually solve
A common critique of Rails is that it encourages a poor separation of concerns. That when things get serious, you...
A Minimum Viable Product is a lean, simple version of your product which delivers value early. What if we could...
Most programmers are familiar with the concept of premature optimization and the reasons why it’s bad. As a reminder, the...
Velocity is best measured by looking at how much uninterrupted focus time your developer teams have (capacity) and how effective...
Week 2022-44
I am a web developer from Germany, mostly working with Ruby on Rails, but also like to do Frontend Javascript...
Summarizing all the gems shared by our PM team on product strategy and great teamwork.
A comprehensive guide on drag and drop UI/UX design, including pattern UX examples and UI demos.
If you've ever wondered - What is a tuple? What is a Postgres page? What's the difference between a record...
Nowadays web application security is a crucial and unfortunately sometimes a bit neglected matter. Today, I'll focus on Content Security...
Wrap Third Party APIs in Service Wrappers to Simplify Your Code
Move fast but don’t break things.
This article will teach you how to create drop-down selects with Rails and Hotwire. I want to add country and...
Learn about the challenges we’ve encountered while scaling on PostgreSQL and the solutions we've put in place.
HTML elements receive different types of events, from click, to blur, to scroll, and so on. One behavior these events...
Other languages don't have this
Guide to deploying Rails apps to AWS with Cloud 66. We'll briefly explore PaaS options like Heroku, before moving to...
If you've ever wanted to build a web app that you can control with hand gestures as if by magic,...
Rspec code to verify that a Ruby Class Method is called from another method, without needing to mock anything.
Week 2022-43
Developer and interaction designer.
Now that I’ve transitioned from being an IC to being an engineering manager, I’ve found myself becoming a person I...
This week’s system design refresher: ByteByteGo talent collective Why PostgreSQL is the most loved database What is a proxy? What...
Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats. - GitHub -...
Adding authentication to your Rails app but don't want to store passwords or rely on third-party OAuth? Let's build a...
You don’t have to set yourself on fire to keep others warm. Here are some preventative steps you can take...
This past weekend on a side project (RelationKit) I implemented a combined mentions feature to let my users do multiple...
Let's build a table editor in a Rails application using ActionText's Trix editor, and use Turbo Frames to customize your...
reinteractive: How to Redirect a Rails Application to a new Domain Name
The Payment Request API provides a cross-browser standard that lets you collect payments, addresses, and contact information from your customers....
We share a handful of code snippets that you can use for creating common interactive elements using just simple HTML...
I was recently asked to give an overview of how to add markdown support to a Ruby on Rails application....
If you’re going to make a change to an area, you have to understand that area. If you don’t understand...
After working on a Rails project for months, it’s not unusual to have hundreds of migration files in the db/migrate...
Josh Clayton
Week 2022-42
The Ruby app server ecosystem has consolidated around three app servers: Unicorn, Puma, and Passenger 5.
A detailed look at the color-scheme property that allows developers to define which color chemes are defined in a website...
Avoid text input to Active Record queries where you can
There's so many ways to render an ActionText attachment, we can change the...
Every once in a while I come across the question “Where should I put my POROs in Rails?” In order...
Let's take a look at RubyCritic and dig into RubyCritic's reports.
Validation is our go-to tool for de-risking a product. This article outlines why skipping validation introduces a risk to your...
The Ruby on Rails documentation defines polymorphic associations (PA) as: "A slightly more advanced...
Update: dozens of hiring managers confirmed this trimodal model applies to all global markets: from the US, through Asia to...
Basecamp has had one foot in the cloud for well over a decade, and HEY has been running there exclusively...
Checklist Design is a curated list of checklists ranging from website pages, to UI components, all the way to branding...
“One must imagine the senior engineer happy.”
Generators are a powerful feature you can use to automate routine tasks in Rails—but do you know how to make...
This post utilizes a score of Array and Enumerable methods to model music notes.
Learn how to supercharge your ViewComponent-based code with various techniques that we use in our projects at Evil Martians.
Calling third-party APIs is associated with inherent complexity that’s not going to disappear. It needs to be tamed and confined....
Week 2022-41
Introduction MindsDB, undoubtedly, brings in the best-in-class machine learning...
Optical Character Recognition (OCR) automates extracting text from visual assets such as PDFs and images. This tutorial teaches how to...
Mentoring is a great way to boost your career. Here's everything you need to know about getting a mentor, and...
Unorganized pull requests are the bane of large codebases. Follow Yash's tips to prevent your PRs from getting roasted in...
After a previous post I was asked for some examples: what types of things do you take out of your...
Ruby on Rails is such a powerful framework. It has its own CLI of which harnesses what are known as...
There’ve been some new tutorials popping here on CSS-Tricks for working with WordPress blocks. One of them is an introduction...
Ruined soup Let’s say I’m making a pot of tortilla soup. I’ve made tortilla soup before and it has always...
Being part of Unicode, emoji characters are very flexible. With a little bit of imagination, here's some fun emoji ideas...
I can’t remember which is greater than or less than either.
A fellow recently asked me for advice about running a Ruby workshop. And folks, I had forgotten I knew so...
A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team...
We finally got a proper layout system for the web, and each browser release seems to bring with it another...
This article explains pretty much everything you need to know about Rack as a Ruby and Rails developer. We will...
Ruby, OSS and the Internet
This post is proudly sponsored by Code & Co. Disclaimer: I’m not affiliated to fly.io at all, this is just...
Building a platform issuing COVID-19 passports is a very diffcult task especially in terms of security and performance. I am...
Week 2022-40
How can apps help improve the food service industry? We decided to find out using the bakery and confectionery sector...
Searching for cool HTML elements, especially if you don't know what you're looking for, is often like...
Marco Roth - marcoroth.dev
Victor Shepelev (Zverok) has just landed an extremely useful feature in Ruby, Data.define. You can...
Having accountability over different responsibilities is key to cross-functional work. Here's how the trifecta team structure can help.
Before joining 37signals I hadn't encountered Puma-dev. This post is a message to past-me who would have benefited from using...
Ensure your Rails application stays secure by following some best practices and habits.
The Web Almanac is an annual state of the web report combining the expertise of the web community with the...
Fetch fresh fields from your servers with Turbo Frames.
Blocks of code in blog posts and articles often contain errors.I see it frequently, in other people’s writing and my...
Tables frequently appear on the web but aren’t easy to design and code. This illustrated guide explains the table anatomy...
Maybe the real treasure was the mistakes I made along the way.
When lots of event logs must be stored and indexed, Kafka is the obvious choice. Naturally, our queue runs on...
A factory method pattern (also known as a factory pattern) offers developers a good alternative to subclass management. What’s behind...
Original post
Partials are a great way to break down complex view into more manageable...
Building filterable, instantly updated interactive charts with Ruby on Rails 7, ApexCharts, and StimulusReflex
Shared Element Transitions API is a game-changing feature that will enable us to create impressive and elaborate UI animations easily....
Ruby-on-Rails has no built-in authentication mechanism. So let's pick the well-known gem Devise in this tutorial.
Have you ever thought that setting default values for attributes in Ruby on Rails could be a problem?
What's the size of user.rb file in your current project? The default Rails way model-view-controller architecture often leads to a...
Get your work recognized: write a brag document
A visual answer to the question “what data is created when I execute this test?”.
Is the end of the quarter of Tuesday, a week from now, a Sunday? There’s a method for that.
Rails is a powerful tool for a developer, you can do so much with just a few keystrokes in the......
Week 2022-39
Use Fastlane and continuous integration to automate building React Native apps.
Retriable is an simple DSL to retry failed code blocks with randomized exponential backoff. - GitHub - kamui/retriable: Retriable is...
I created the timescale gem and wrote an introductory post on how using the timescale gem with ruby.
You probably use some type of error monitoring software to notify you when an exception is raised in your application,...
An interview with Zsolt Varga, the tech lead and general manager at Prerender
Pair programming is one of the most important tools we use while mentoring early talent in the Dev Degree program....
How to make a bot for Twitter? The purpose of this Twitter bot is to retweet all hashtags related to...
Week 2022-38
In just over an hour, I coded a TodoMVC App with modern (ES6+) vanilla JavaScript. The comparison to the previous...
Not all non-sequential primary keys are created equal, the ULID format is a fantastic substitute for the typical UUIDv4 choice....
Today I thought I'd run through a few of the powerful things that the ActiveModel::Serializer gem...
Using Ruby on Rails, Turbo Streams, and Stimulus to build server-rendered modal forms
Back in college, they told me that I would start my career writing code, but eventually, I would move to...
The Ultimate Ruby on Rails Cheat Sheet & Code Snippets General ...
Building a web application is an exciting journey. This is even more so when users start signing up for your...
Rails 7.1 - in_batches implementation has improved to give optimized results for whole table iterations using range queries instead of...
A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday! - GitHub - holidays/holidays:...
We’re currently refurbishing 🙃 our authentication stack at Back Market, and we need to onboard our developers and teams to...
Want to deploy a Rails app with Docker and AWS, but not sure where to start? AWS Fargate simplifies the...
After fucking up my install of MySQL last year by trying to move from MariaDB to MySQL as I wanted...
I use PostgreSql a lot in my working time. So recently, I spent some time refreshing and deepening my knowledge...
Users suffer when the accessible name of an element doesn’t match its visual label.
Think that web form has got your number? If you used input type="number", you may be surprised to find that...
Without SSO and other enterprise features, a product can only go so far.
There are many Ruby on Rails best practices that can help you avoid these common Rails programming mistakes. Read on...
In this article, Juan Diego covers the least known yet extremely useful APIs, such as the Page Visibility API, Web...
Week 2022-37
Action View OverviewAfter reading this guide, you will know: What Action View is and how to use it with Rails....
Easily write fluent integration tests.
If you’re going to throw your app away because there are no customers, it doesn’t matter how solidly you build...
Working in small chunks is one of the most impactful things we can do as developers.
I’d like to teach you how to use the gem with Ruby. Not Rails. Only plain Ruby and some ActiveRecord...
Want to become an outstanding engineering leader? Keep a daily journal.
Good error message, bad error message Error messages are like letters from the tax...
How using this popular RSpec technique can sometimes do more harm than good.
What is Hotwired ATS? What are we building? Plus practical tips of using this book and a sermon on taking...
One possible way of rendering a simple calendar control
An opinionated guide for small teams on setting up Heroku to deploy Rails applications—with pleasure.
Demystify the complexity of the Rails 7 asset pipeline and navigate its wide menu of options.
Import Maps is a new feature in Rails 7 that allows us to load third-party Javascript libraries in a default...
So that's the HTML capture attribute. It's a pretty cool way to add a nicer user experience if you know...
Week 2022-36
Before discovering Ruby and Ruby on Rails I was a .NET developer. At that time I’d make ad-hoc changes to...
Have you ever wondered how does Medium recommend blogs to read or how does a platform with millions of users...
Developers can now use 1Password to set up and use SSH keys to sign Git commits, building on 1Password’s already...
Delegated Types don’t work the way I thought they did
As I’ve previously mentioned, I’m building a brand-new business from scratch on top of Rails. Reversing key architectural decisions is...
This cheatsheet can help you get started with ruby/debug as well as use it in your daily development. It's not...
Browsers are constantly adding new HTML, JavaScript and CSS features. Here are some useful additions to working with forms that...
While filling out a long form the other day, I couldn’t figure out why it wasn’t submitting. Turns out I’d...
Week 2022-35
Writing clean code is the key for maintainable and sustainable code. Here's some of my favorite tips I could give...
Data migration is a common part of working with databases, and Ruby on Rails developers have many...
Open the gate a little: strategies to protect and share dataCan you name a more terrifying set of three words...
If you've done development on a Ruby on Rails application before you're probably familiar with Active Record callbacks. For those...
You'll learn some effective performance and optimization techniques that you can use to speed up your Rails app.
Building a form in Rails that ISN'T driven by an ActiveRecord model? Here's how to use the Attributes API to...
In this article, we’ll find out what are Rails Service Objects and how you can use them to make your...
Thoughts about front-end development and design. And probably other ramblings by Una Kravets.
Week 2022-34
Whenever we build simple or complex layouts using CSS Grid, we're usually positioning items with line numbers. Grid layouts contain...