Down the rabbit hole
(or, "The story of a pomodoro gone horribly wrong")
I like to:
|# A module containing the function that determines the port number|
|# based on a node name.|
|# Taken from https://www.erlang-solutions.com/blog/erlang-and-elixir-distribution-without-epmd.html|
|defmodule Epmdless do|
|def dist_port(name) when is_atom(name) do|
|dist_port Atom.to_string name|
|def dist_port(name) when is_list(name) do|
|dist_port List.to_string name|
|defmodule NewRelic.Plug.Absinthe do|
|A plug that instruments Phoenix controllers and records their response times in New Relic.|
|Inside an instrumented controller's actions, `conn` can be used for further instrumentation with|
|`NewRelic.Plug.Instrumentation` and `NewRelic.Plug.Repo`.|
|defmodule MyApp.UsersController do|
I hereby claim:
To claim this, I am signing this object:
...And proceeds to sell me 30 tickets to paintball.
No, seriously. That really happened. I was getting my haircut at Roosters last night and a guy walks in selling discounted tickets to Stunt Ranch Paintball. So of course I said "I'll take 30", because I have at least that many people I want to shoot, right?
So now I have to figure out how to get 30 people into playing paintball with me. The tickets don't expire, and they include everything except the paint and CO2. I'm not an avid paintballer, but that sounds like a decent deal to me, since I got them for $2 apiece.
I'm thinking a geeky paintball extravaganza sometime in the near future. Maybe a geek father/son thing, maybe we all dress up like Rebels and Stormtroopers. I dunno, I'm open to suggestions.
Watching Jack Danger's GoGaRuCo presentation the following analogy came to mind.
/lib is the asshole of your Rails application. Its fine (and desirable) for stuff to pass through there. But if you don't poop it out into nicely formed little turds we call gems eventually, your application is going to become constipated. Then you get stomachaches.
Don't constipate your app. Eat lots of roughage.