AR create_with

I knew there was AR’s find_or_create_by  method but I didn’t know it had a very useful companion create_with .

This will either find a record  SomeModel.where(foo: "bar")  or create it with SomeModel.create(foo: "bar", some: "stuff") . Very useful.

Classic Programmer Paintings

This is a great idea. 😂

TSA’s Random Lane Picker

This is so moronic I almost fell off my chair laughing: it seems like the TSA spent $47,000 on a “random lane picker.” Please, you be the judge whether it was worth it:

Aktivieren Sie JavaScript um das Video zu sehen.

It needs to be operated manually … with hygienic gloves! 😂