RSSAmplifier

Blog

Snake’s Hands

Adam Sanderson plays around

snakeshands.comRSS feed ↗51 posts

Latest posts

AI Curb Cuts

Much of what is good for AI, is good for humans as well.

Building Custom Form Elements

Let's see what we can learn by building a little web component

Asides in Astro Markdown

Thanks to remark, it's easy to customize how Markdown is processed

Loss Aversion Is All You Need

Some mistakes can be quite liberating

Brook, A Feed Reader

Building a feed reader into Firefox.

Reading Rails - HTTP DELETEs With a Link

Exploring how Rails, Rails-UJS, and Rack work together to enable HTTP DELETEs.

The Constructive No

No is a gift if presented thoughtfully.

Finding and Fixing Frustrating Tests

Track down some common ways tests fail due to unexpected interaction.

Testing a Little More

Start testing a little more with verification tests.

The Test That Cried Fail

Isolate indeterminate test behavior.

HasDefaultAssociations

Simplify your relations with HasDefaultAssociations.

Reading Ruby - Minitest's Plugin System

Let's read Minitest's source!

Reading Rails - Time Travel

How does Time Travel work in Rails? Let's find out!

Ruby Ducks - Serialization Duck Type

Apply duck typing to serialization.

Reading Rails - TimeWithZone

Let's read the Rails source to see how TimeWithZone works.

MetaRuby - Calling and Receiving Methods

Let's play with meta programming!

Defense Against the Dark Art of Estimation Bargaining

How to spot and stop 'Estimation Bargaining' — because nobody wins when deadlines are just wishful thinking!

MetaRuby - Monkeying With Methods

Introspect, call, bind, and wrap them with a bit of magic.

MetaRuby - Building Classes Dynamically

Make a factory to make your code for you.

MetaRuby - An Ounce of Meta

Write code to write code to write…

Reading Rails - How Does MessageEncryptor Work?

Read how MessageVerifier works, because learning is good for you.

Reading Rails - How Does MessageVerifier Work?

It's only magic if you don't read the code.

Reading Rails - How Do Batched Queries Work?

Read some Rails code and learn about Ruby in the process.

Reading Rails - The Adapter Pattern

Read the rails source, learn a design pattern.

Reading Rails - Errors and Validators

Read up on error handling so the errors don't handle you.

Reading Rails - How Validations Are Configured

Who validates the validators? We do, now let's start reading.

Reading Rails - Concern

Read some source code, discern the subtle value of Concern.

Reading Rails - More Migrations

Read the source and understand more about migrations, it's even more worth it.

Reading Rails - Migrations

Read the source and understand migrations, it's worth it.

Reading Rails - Attribute Methods

Magic attributes cease to be magical under a close reading of the source.

Reading Rails - Change Tracking

It's only magic if you don't read the source.

Reading Rails - Handling Exceptions

Learn how Rails uses metaprogramming so your app doesn't crash

Ruby Metric Adapter

A tiny adapter to help you write better code.

Hierarchies With Rails

Implement and manipulate materialized path hierarchies in ActiveRecord with Postgres.

Aggregating Hierarchies With Postgres

Aggregate hierarchical data in PostgreSQL using materialized paths.

Hierarchies With Postgres

Model hierarchical data in Postgres using materialized paths with arrays.

When Files Change – Simple Automation

When files change something should happen. Now it does.

Tagging With ActiveRecord and Postgres

Use Postgres arrays to implement tagging in a Rails application.

Postgres, The Best Tool You're Already Using

I got to present at RailsConf!

Ivy - Bound JavaScript

The best knockout knock off I've ever written.

The Strange Ruby Splat

Splat!

Getting to Know the Ruby Standard Library – Delegator

Explore Ruby’s Delegator and the Proxy pattern.

Getting to Know the Ruby Standard Library – WeakRef

Objects, loosely held.

Getting to Know the Ruby Standard Library – Timeout

Read some source code, until you timeout.

Getting to Know the Ruby Standard Library – Pathname

Learn how the Pathname library works and how to use it.

Getting to Know the Ruby Standard Library – Abbrev

Make use of the tools you already have!

Hash Tricks

Use and abuse Ruby's hashes for fun and concision.

Getting to Know the Ruby Standard Library – TSort

Learn how to perform a topological sort by reading the source. It's worth it.

Getting to Know the Ruby Standard Library – MiniTest::Mock

If you're going to use a mock, learn how it works.

Getting to Know the Ruby Standard Library – Shellwords

Read other people's regular expressions for great fun.