A simple Configuration class in Ruby

Just in case you never heard of OpenStruct…

And this is how it can be implemented…

IceCube => Ruby Date Recurrence Library

I love that i found it :). Check it at ice_cube github repo. This is my first playing around code;

The output would look like this

Connecting IOS socket client to a Ruby socket server using Swift & Ruby’s eventmachine gem.

To demonstrate, I have written a server that has one task. It reads a word and sends it back to the client in a reversed form. The server code in few lines ;/

The client, which is written as… Continue Reading

Concurrency in Objective-C using Grand Central Dispatch (GCD)

To demonstrate execution of concurrent Objective-C code, I wrote this simple example below. The two functions you have to read about to understand the code are; dispatch_get_global_queue and dispatch_async.

Example of output you may get, may look like this.… Continue Reading