RSSAmplifier

Blog

AlsoHelp’s Blog

🚀 Freelance web developer

alsohelp.comRSS feed ↗109 posts

Latest posts

TypeScript type narrowing

Narrowing types in TS, a quick tour

Input type number alternative

An alternative to the very classic HTML input of type number

Free space on boot partition for Linux Mint

Bug frequently encountered on my Linux Mint machine

How to change Astro NodeJS version

A quick tour about how to change the NodeJS version of your Astro project

Go simplest example

The simplest Go program you can start with.

How to clean and hard refresh Chrome

A way to really clean the cache and weird stuff of Chrome.

Git clean local branches

Let's say your local branches are messy. Here is a quick guide about how to clean 'em up.

The Rails philosophy explained with drawings

It's not easy to understand why Rails was built like this, especially for beginners. I hope my little SVG drawings will help

T vs any in TypeScript

A beginner lesson about T vs any in Typescript

Is TypeScript difficult to learn?

My review about me after having learned TypeScript

TypeScript primitive types

My simple memo about TypeScript primitive types.

Unpoly outclasses Hotwire

Unpoly vs Hotwire... both are pushing the frontend in the same direction, but Unpoly made it with more simplicity. Here is why.

Declare an array in TypeScript

How to declare an array in TypeScript the right way. A small recap, mostly note to self.

Background jobs with Rails 8 are delightful

Rails 8 includes everything you need to run and monitor background jobs. I found this feature to be incredibly relevant.

Where 1 = 1 in SQL

A small, dirty but useful SQL trick

Each child in a list should have a unique key prop

A very classic React bug, so I leave it here as a note to myself for the future :)

How to display git shortsha in terminal

A quick guide about the git shortsha usage and shorcut in terminal

Is React beginner friendly?

My opinion about React for junior developers. Popular it is, job-friendly it is, but is it accessible to junior developers?

My Rails 8 opinion

Rails 8 has been incredibly enjoyable so far, removing large parts of complexity, and allowing devs to replace any parts of the stack.

Get all but last element in TypeScript

A small article about removing last element in TypeScript, mostly a matter of read-ability

Rails 8 Bootstrap 5 tutorial

A very simple tutorial about Rails 8 and Bootstrap 5, since starting with Boostrap is already given by the framework by default with little config.

My honest opinion about Hatchbox

Hatchbox.io is a deployment platform for Ruby-on-Rails users. I used it recently, so for people ashamed of trying, here is my review.

How to install Laravel 11 on Linux

Laravel 11 is the new version of Laravel - at the time of writing. Let's see how to install it on a Ubuntu-based machine.

How to deploy a Rails 7 app to Heroku

Heroku is the most well-known deployment platform, and also the easiest to use. Let's try it on a fresh but realistic Rails 7 application.

How to benchmark Ruby code

Learn how to benchmark (i.e. measure performance) Ruby code in this small article.

Get rid of Rails Failed to allocate memory

This bug is really tricky, so here is my journey solving it. Maybe this will help other not to be too impatient :)

How to generate an open graph image in Ruby

Open graph image allows you to have a nice picture preview on social media. Let's see how to do it in Ruby.

Better tests reporters for Rails 7

Tests reporters help us to increase the readability of our whole test suite. Let's see how to improve the default one.

How to disable Turbo on specific links with Rails

Turbo is precisely made to speed up page transition, but sometimes it's better to have a slower page transition - that works.

How to add or remove a Stimulus controller

A quick memo about how to add or remove a Stimulus controller - I recommend to rely on generator this time.

How to use the reduce method in Ruby

reduce in Ruby seems tricky if you didn't used it for a long time. Principle is simple, but let's see the syntax.

Live reload a Rails 7 application, an unsatisfaying attempt

Livereload a Rails app on your local machine is still not available natively. Maybe in next version of Rails, but not yet.

How to iterate over a Ruby array

A short memo about how to iterate over a Ruby array

Rails 8 Hotwire, a tutorial

Rails 8 comes with Hotwire by default to handle frontend complexity. Here is a simple tutorial from scratch.

Rollup vs Esbuild for Rails

Rollup and Esbuild can both handle JavaScript files in a Rails app. I made some little experiments, both locally and in-production.

Ruby-on-Rails ERB vs HAML

This is an opinionated article about ERB and HAML with Rails. Let's compare each other and pick a winner.

Rails 7 pagination tutorial

Here is a tutorial about how to paginate with Rails 7 and Kaminari.

AI-Unbeaten algorithm exercise - can MBappe join Real Madrid?

Whether MBappé is able to join Real Madrid depends on your ability to write the correct algorithm

Authentication vs Authorization with Rails 7

Authorization means give or refuse access to the current User to some URLs. It's closely bound to Authentication, but it's different.

How to teach algorithms to others now that AI is all over the place

Algorithms are probably one of the only disciplines of web development (maybe with testing) that requires lots of regular training before being mastered and correctly abstracted by the brain. But now that AI is everywhere, and is able to write algorithms, how do you teach students such a practice?

How to find an element inside a Ruby array

A quick article about how to retrieve an element inside a Ruby array.

Why is Ruby-on-Rails not more popular?

If Rails is so good, why is it not more used?

How to check if hash has key in Ruby

With Ruby, there are some cases where you want to check if a given key is already in the hash.

Generate authentication like Rails 8 will

Until recently, Rails comes with no default way to authenticate the user, like Laravel does in the PHP world.

The simplest turbo-frame example

Turbo frame is a powerful feature of Hotwire, here is a quick memo about how to follow conventions in the simplest case. Convention over configuration is powerful, but sometimes it is also a problem when you are not sure anymore about conventions ;) so I plan to release more "simplest *** Hotwire feature".

How to encode an URL String in Ruby

Encoding a String in Ruby may be trickier than I initially thought, given the number of options available. Here is my take.

Rails form_with tutorial

form_with is known as a form helper, which means it's an abstraction to build well-known, standard HTML form.

Tailwind and Ruby-on-Rails starter kit

Today I'm releasing a brand new Ruby-on-Rails starter kit, that mixes Tailwind and Rails.

Rails flash messages and UX

Flash message is a very old notion of Ruby-on-Rails. This article will be focused on the usability of these messages.

Ruby Split Array

A quick tutorial about how to split a Ruby Array.