June 11th, 2017
After a long hiatus, this is the fourth part of my on-going series on code reading, the beginning can be found here
March 12th, 2017
This is the third part of my on-going series on code reading, the beginning can be found here
February 12th, 2017
This is the second part of my on-going series on code reading, the first post can be found here.
January 29th, 2017
If you are looking to become a better programmer, one of the most frequent pieces of advice is to “read code”. What is often meant by this is that you should explore and try to understand open-source projects, preferably successful and well-maintained ones. The thought being that you will pick up new ways of solving problems, structuring code, architecting apps, the list goes on. Moreover, reading code is a required skill whenever you switch jobs or want to contribute to a open-source project.
July 31st, 2016
When using a framework’s code generators, its often useful to be able to tweak the code that is generated each time. In particular, the templates that are used to generate the HTML often need a custom structure to match your styling or fronted CSS framework.
July 31st, 2016
In elixir, IEx lacks a history in the way that the interactive sheels in ruby (pry and irb) have. In order to get this working, erlang-history must be installed.
February 14th, 2016
Earlier this week, I had the distinct pleasure of attending Edward Tufte’s one-day course. For those unfamiliar with Tufte, he is a master in data visualization and presentation, and one of the preeminent thinkers in the field. I had been referred to Tufte’s work but my mentor and have read one of his books, however seeing him in person really brings his work to life. Tufte’s 25 years as a teacher shines through, as he presents a dense amount of information in a compressed time frame. Moreover, he comes off as genuinely sincere and has none of the trappings of a self-help snake-oil salesman or the business marketing guru who is trying to teach you that 25 secrets to success. Rather the course, is a treatise on clearly communicating information, especially high density high data information. What struck me was the way that Tufte’s presentation was an in person demonstration of what he was teaching.
November 10th, 2015
After several month’s of work, I am happy to announce the first release of GrapeTokenAuth, a token authentication solution for Grape APIs. GTA is a drop-in authentication solution for Grape APIs that aims to maintain a low direct-dependency footprint. GrapeTokenAuth is a port of devise_token_auth, whereas DTA is a devise and rails solution GTA depends on grape and warden. GrapeTokenAuth has built in compatibility with two mature front end libraries: ng-token-auth (for angular) and jToker (for jQuery). If you are build Grape APIs and have been looking for authentication, grape_token_auth may suit your needs.
September 15th, 2015
Grape is a fantastic framework for building an API. Of course, one of the most fundamental aspects of any API is authentication. The grape_token_auth gem is approaching its first major release (0.1.0) and this will provide a “getting started” guide.
January 27th, 2015
For those familiar with Sublime Text and have since moved to vim you probably miss the Cmd+P feature that allowed you to find a file in your working directory through a fuzzy match. The two main plugin contenders for fuzzy file finding in vim would arguably be Ctrl-P and Command-T. Personally I perfer Ctrl-P because it does not have a compiled extension and it offers a few niceties such as MRU and buffer switcher. Here’s a gif of it in action: