The Ruby Craftsman

Posts

  • Sandi Metz And Bike Shed Podcast

    At work we are reading a chapter a week of Sandi Metz’s book Practical Object-Oriented Design in Ruby. I am really enjoying it, I had started it a while back and didn’t finish, but even rereading the first parts I am getting a lot more of it than before. There are a few things that I was already doing that probably came from other sources like blog post and Podcasts like ruby rouges. I recently heard a podcast from the folks at Thoughtbot called bike shed, in there first episodee they talk about their experiences of trying to follow Metz’s rules on a real client project as much as possible. I found it interesting to hear where it was hard to do and where they choose to break the rules and why. Also what long term effect of using those rules will have on a project. It’s very worth a listen.

  • Geo-location search with Google maps

    Provides a Google maps search of nearest FFL government data.

    Read more

  • Canvas and AngularJS

    Working with the canvas api and angular I was able to add some user controls to manipulate the circle. This was an experimental project so I could get familiar with HTML 5 canvas, I am really excited to work more with this api and see what I can do. I am interested in the future making graphs with this technology, I see it as great plugin free Flash although more base bones than flash with helper libraries it will be a better open standard.

    Read more

  • Sublime Ruby Markers

    I came across this awesome Sublime plug-in that let you execute ruby code in the comments.

    Read more

  • Scrabble

    This is the initial proof of concept of an online Scrabble game. The backend code is written in Ruby and Sinatra for the web view. The 7 letters are pulled out at random of a virtual bag of 100 tiles. You can drag the tiles in order to make a word then select them to the play the word. It will then be scored and listed below. The blank tile was a challenging bit, but I am very happy with the outcome. When a blank tile is clicked it activates some js that waits for a key press to tell the game what tile it is suppose to be. Otherwise the backend would have to guess what was meant by the blank tile and there may be more than one option. An edge case I ran into was on iOS where there is no input box the keyboard will not come up, so I made in input box that appeared off screen and focused it on click of the blank tile.

    Read more

subscribe via RSS

Subscribe to my mailing list

* indicates required