Show newer

« Associations are extremely useful, but they are not magic. » unlike everything else in Rails

i’m rereading all the Rails Guides since i haven’t worked seriously with Rails since sometime in 2018 and like 90% of it is just me going “oh so that’s what that spelling means” and the remaining 10% is me digging through the source code and becoming gradually more horrified at what i unearth there

Show thread

okay i’m gonna admit i thought there was going to be more to this chapter than there is

Show thread

« During the normal operation of a Rails application, objects may be created, updated, and destroyed. » whew imagine if they mayn’t be

Show thread

anyway, time to learn about the LIFE CYCLE of ACTIVE RECORD OBJECTS 🌎🌱🌧🌴🦒🦁🪦😭

tiger is the only one which really surprised me here

Show thread

things which are baby according to macOS character picker, in order of appearance :—

1. crying face
2. cat
3. chick
4. hatchling
5. baby bottle
6. tiger
7. human baby

today i learned that Litten’s fire attacks are hairballs that it sets alight

me: in britain they don’t say “goal” they say “gaol”

me:

me: oh wait nvm that’s “jail”

you can’t use TWO SEPARATE METHODS OF CASE‐INSENSITIVE COMPARISON for DIFFERENT VALIDATORS

Show thread

oh okay cool so ruby didn’t change the way String#casecmp works in version 3.0.0, they just made the documentation worse

github.com/ruby/ruby/pull/3569

somebody: i want to call my model X but it has an irregular pluralization, Y; how do i specify that?

ruby on rails programmers: why not call your model Z?

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.