Useful Stuff
  • Home
  • About
Latest — Oct 7, 2024

Rails Scopes On Associations

I'm working on a legacy Rails application at the moment (legacy meaning it's over 10 years old - but it's recently had a revival in development activity.) I regularly come across, what appears to be, strange ways of doing things. At first I put

1 min read

More issues

Other people's code

I'm currently working on a 10+ year old code base and often come across some code that I am initially baffled by. def using_custom_theme? !custom_theme_id.nil? end My first thoughts were - why ? This is the sort of logic kungfu that really hurts my
Sep 8, 2024 1 min read

Coming soon

This is Useful Stuff, a brand new site by Andrew Porter that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!
Sep 8, 2024 1 min read

About

Useful Stuff

Thoughts, stories and ideas.

Featured

Rails Scopes On Associations

I'm working on a legacy Rails application at the moment (legacy meaning it's over 10 years old - but it's recently had a revival in development activity.) I regularly come across, what appears to be, strange ways of doing things. At first I put
Oct 7, 2024 1 min read

Topics

coding

2 issues

News

1 issue

ruby

2 issues

ruby-on-rails

2 issues
Useful Stuff © 2026
  • Sign up
Powered by Ghost