Devlog: Ruby Bits 1 & 2

Completed the RUBY BITS courses on CodeSchool. Again… I was impressed with the content, as a casual rubyist I got plenty out of doing this.

I really enjoyed this course, I took away a lot of useful idioms which I will put to good use (when I get the chance).

The meta-programming a DSL creation in RUBY BITS part 2 were great… adding methods to classes dynamically is pretty bad-ass for drying up code.

I always wanted default method implementation on interfaces in C#, dunno why I brought this up other than in Ruby that would never ever be an issue with the features you have at your disposal… very few languages lead to as much developer happiness.

Just one of those languages I would love to write everyday if I could. Moving onto Rails Testing for zombies course next…

…that said Elixir has hit v1.x and the Dave Thomas “Programming Elixir” book has been released, so that will most likely eat up the next month or two of my life.

Tunes: Mesterházy - Körzeti Varázslóhivatal (2002)

Tunes: Minimal Mondays | 04 | Hooked On

My IDM binge continues….

Tunes: Minimal Mondays | 04 | Hooked On

My IDM binge continues….

Devlog: Real Time Web With Node.js

Completed the Real Time Web with Node.js course on CodeSchool

Another impeccable course, produced to the usual high standards which I have come to expect with each and every CodeSchool module. Go give these guys money and do a few courses, worth every penny.

I have completed a couple of node.js projects to date and am currently working on a biggin’, so I didn’t find this course very challenging, but I did find it fun, another great jingle and lots of great content.

The examples go a long way to show how much you can do with so little code, walking students through using socket.io and redis to build a chat client and a Q&A system.

Something I learned was how to use redis effectively, the course got me started and provided useful tips such as limiting size of a list to 10 items for example:

1
2
3
4
5
6
7
8
9
var redis = require("redis"),
    client = redis.createClient();
//... on last meeting submitted ...
var meeting = JSON.stringify(lastMeeting)

// Use LPUSH & LTRIM in tandem
client.lpush('recent_meetings', meeting, function(err, reply) {
  client.ltrim('recent_meetings', 0, 9) // 10 Items Max
})
Read on →