Blog - Page 1 of 1


Building view components in Middleman
#Ruby #Software engineering
Posted on

This site is styled using the wonderful Terminal CSS which has multiple components included. One feature of Javascript frameworks that I like is this concept of components.

Read more
Middleman deploy
#Ruby
Posted on

I was recently developing a single page application with Middleman and found there was no ready made deployment code that I could use to upload the site to our Linode servers. Hopefully this rake task will help others out.

Read more
Practical object-orientated design in Ruby
#Ruby
Posted on

Just a quick post about a book I got for Christmas called Practical Object-Orientated Design In Ruby. I've only just read the first chapter but already I'm seeing ways I could have improved the Blackjack game that I wrote in OO style.

Read more
TomDoc for Ruby
#Ruby
Posted on

TomDoc Style

I have been introduced to a code documentation specification called TomDoc that at it's most descriptive looks like this:

# Public: Duplicate some text an arbitrary number of times.
#
# text  - The String to be duplicated.
# count - The Integer number of times to duplicate the text.
#
# Examples
#
#    multiplex('Tom', 4)
#    # => 'TomTomTomTom'
#
# Returns the duplicated String.
def multiplex(text, count)
  text * count
end
Read more