Firebase logo

Lazy Registrations with Firebase

Overview Simply asking users to sign up isn’t just annoying—it could be costing you 45% of your potential customers, according to the famous $300 Million Button case study. Even worse, this friction is amplified on small screens, where abandonment rates spike to 86% for mobile users who simply refuse to type lengthy forms, according to recent abandonment data. By the end of this article, you’ll have a flow where users can build value first and sign up second, without losing their data. So you can avoid this huge loss of potential customers. ...

January 1, 2026 · Arnošt Havelka
argument about using a market research tool

Stop Paying for Market Research Tools

What is a market research tool A research tool is ussually a web app that allows you to research populary of a specific topic. Why not to pay The usecaseses of market research tools are great and a lot of people have used it successfully to make money. The problem with most of them are I’ve found is that they cost substantial amount for small businesses who say they really need them. The problem is them is that they market themselves as the only tool a startup needs to decide who their custommers are and what do they need. ...

October 18, 2025 · Arnošt Havelka
muscle growth process

How Do Muscles Grow?

To grow muscles, you need to challenge them so they can adapt and become stronger. Challenge the Muscle Muscles grow when they are pushed beyond their usual limits. This happens during resistance exercises such as lifting weights, using resistance bands, or doing hard endurance workouts. Feed the Muscle After being challenged, muscles need nutrients to rebuild. Your body uses protein and other nutrients from food to repair and improve the muscle. ...

October 17, 2025 · Arnošt Havelka
senior looking at bad code

Refactoring Conditionals in JavaScript

Recently, I’ve been refactoring a lot of code at the company where I currently work. One of the most common issues I’ve encountered is deeply nested if/else/else if statements. They tend to grow like a large, tangled tree. The problem is that these structures are hard to read, difficult to reason about, and often include duplicate checks if not managed carefully. In this tutorial, I’ll show you a few practical ways to refactor this kind of code and make it more readable and maintainable. ...

September 14, 2025 · Arnošt Havelka
Ruby on Rails Anti-pattern code example

Rails Antipatterns Models

Rails AntiPatterns in Models – and How to Fix Them Rails encourages clean separation of concerns, but it’s easy to let logic leak into the wrong layer. The model is meant to encapsulate business rules and domain behavior, yet many applications end up with fat controllers, bloated views, or overly complex models. Below are common anti-patterns in Rails models and their solutions, with code. 1. View Logic Belongs in the Model A common mistake is putting conditional business logic directly in views. ...

August 19, 2025 · Arnošt Havelka
angry guy fixing Firebase emulators

Firestore Emulators Data Not Showing

Firestore Emulator Bug: Data Writes Succeed But Nothing Shows Up (Solved) 🧪 What Happened The Setup Used a single Firebase project for both production and development Ran Firestore locally with the Emulator Suite Used local-only mode to avoid writing to production Everything worked: writes, reads, rules, etc. ⚐️ The Shift Split Firebase into: A production project A separate dev project for local testing Motivation: Emulator Suite doesn’t support everything; separation avoids conflicts with production ...

July 24, 2025 · Arnošt Havelka
two people using Ruby on Rails and React

How to Handle CSRF Authentication in Rails and React

Prerequisites This tutorial follows my previous post on handling Rails API authentication with React frontend. You can follow along without it, but I assume: You’re using Ruby on Rails with a React frontend You’ve implemented cookie‑based authentication How it works After login, the browser stores a secure cookie that’s automatically appended to every client request. An attacker’s site can forge requests on the user’s behalf, and they’ll be authenticated. Attack vector: Another site issues requests to your site while pretending to be the user. ...

July 15, 2025 · Arnošt Havelka

How to Build Large Forms in React Native Using Formik

Introduction React Native doesn’t have a native <form> element, and managing the state of multiple inputs can be verbose. That’s why I’ll show you a simple way to handle forms using Formik and Yup. Once you get the hang of it, you’ll be able to build more complex forms with ease. Prerequisites Expo CLI installed (docs) Basic React Native knowledge Wrap your app with React Native Paper’s <PaperProvider> (docs) Setup npx create-expo-app my-formik-form cd my-formik-form npm install formik react-native-paper yup How does Formik with React Native work 1. Import dependencies app/components/MyForm.tsx ...

July 4, 2025 · Arnošt Havelka
React and Ruby on Rails 8 logos

Rails 8 API Authentication with Cookies and React Frontend

Overview In this tutorial, you’ll learn how to implement cookie-based authentication with Rails 8. Rails offers many authentication methods—even DIY ones—but cookies are secure, easy to use, and handled automatically by browsers. While many tutorials use JWT, it has a major drawback: where do you store it? Local storage is insecure and easily exploited. Though you can secure JWTs with extra effort, it’s still a relatively new technology. If your primary API consumer is the browser, cookie-based authentication is safer and simpler. ...

June 30, 2025 · Arnošt Havelka