Using Functions in Elixir Guard Clauses 09 April 2016
Elixir, like other pattern matched languages, supports guard clauses. Inside a guard we can use a set of Kernel functions and other predicates. Using any other function in a guard clause results in an error. Here’s an example to show what I mean.
Phoenix: The difference between web and lib 14 January 2016
In Phoenix we have 2 distinct places to put our code: the
webdirectory and the
libdirectory. If you’re coming from another framework like Rails then it might be tempting to think of
libas a junk drawer of miscellaneous modules and tasks.
Building an Atreus 31 May 2015
I’ve always been obsessed with keyboards. The first large purchase I made when I had a “real job” was a matte black Das Keyboard Ultimate with MX Cherry Blue switches. That keyboard has been with me for years now and its served me well.
Escaping atom vim mode with kj 24 May 2015
Flashing Raspberry Pi on Mac 13 April 2015
I just got a Raspberry Pi 2 for me and my daughter to hack around on.
DAS Keyboard keycap placement 24 March 2015
Through a series of unlikely events the keycaps on my Das Keyboard became removed and re-placed in incorrect positions. Luckily I found this helpful chart that shows all of the cap positions.
DateTime.parse is not a validater 25 June 2013
I am prototyping a rails API at work and one of my routes accepts a datetime parameter. I assumed that I would be able to just use DateTime.parse and that would take care of any sanitization of the parameters.