Mark Grealish

the life and code of a crazy cat man

The hard life of a vim multitasker

in technology

No respite.

Everywhere, vim

The grimmest grim view that ever grimmed a grim

in ireland

Taken from the shore at Blackrock.

Looking toward Poolbeg from Blackrock

Clearly a sushi lover

in animals

Cookie tries sushi

Rails 5 join table naming conventions

in code

This is a stupid fucking thing, akin to Googling basic syntax for your language, but here we are. My underling and I wasted 40 minutes today re-figuring this out.


class PluralSingular < ActiveRecord::Migration[5.0]
  create_join_table :plural, :plural



class Foo < ApplicationRecord
  has_many :plural_singular
  has_many :plural, through: :plural_singular

Join model:


class PluralSingular < ApplicationRecord
  belongs_to :foo
  belongs_to :bar

Winter tree, winter sky

in ireland

Taken at Blackrock Park.

Winter tree, winter sky at Blackrock Park

You can’t go home again

in family

Time’s an arrow, one way, here to there, that you can’t turn back. Because that’d be nonsensical, to undo what makes you, you.

Scanned family photograph from the early 1980's
Scanned family photograph from the early 1980's