I ran into a interesting gotcha while using `Map.get/3`. `Map.get/3` is defined as: `get(map, key, default \\ nil)`. The default you pass in is not the default value to return if the value is nil. Instead it is what you return if the key is missing. This is an important distinction. To set a default value from a map when the value is nil just use the normal falsy trick `Map.get() || default_value`.
Use Map.get/2 to access fields on a struct dynamically.
My Elixir implementation of the Advent of Code Day One - Part One. Helping Santa figure out which floor on an apartment building he is on.
I was asked by my good friends at Houston's Iron Yard campus to be a guest speaker. When deciding on a topic, I landed on giving a talk about how their learning will never stop. Obviously learning and teaching are subjects near and dear to my heart. Check out the slides and let me know your thoughts!
While working on my gaming guild website, I needed to dump my `Categories` collection and just reseed it. We are talking emptying gas cans and lighting a match style.
Ever jump into psql and then suddenly forget how to exit? They don't make it easy do they? The answer: `\q`.
Video and links from today's VBB. We talked about Elixir, Phoenix in production, and ended with a detailed look at Anthony's Quantum Pilot game written in ES6 with Electron for cross platform deployment.
Saw a video on how to do this with Unreal Engine and wondered if there was a way to do it in Unity. The answer... Yes.
We are all super fast keyboard wizards. Our words per minute almost surpasses our typos per minute. Almost. Here is how to fix that typo in your git branch.
At some point you probably will want to use the pipe operator with an anonymous function. Here is how to do it.