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. 😂

http://classicprogrammerpaintings.tumblr.com/post/142603266504/engineering-manager-handing-out-tasks-to-interns

http://classicprogrammerpaintings.tumblr.com/post/142602959384/sysadmin-grants-sudo-privileges-to-developer-on

http://classicprogrammerpaintings.tumblr.com/post/142586036029/junior-programmer-learns-git-rebase

http://classicprogrammerpaintings.tumblr.com/post/142344840164/developer-looking-at-production-logs-after-a

http://classicprogrammerpaintings.tumblr.com/post/131118350394/army-of-contractors-migrating-to-microservices