January 2011
6 posts
1 tag
Background Jobs in Ruby on Rails « 4 Lines of Code →
From the Basement : Live : The Dead Weather →
When we experiment, when we try things and we fail, we started to ask why and...
– Jamie Hyneman
1 tag
A Brief Guide to Socket Programming in C →
1 tag
Differences between Protocols and Categories in...
A protocol is the same thing as an interface in Java: it’s essentially a contract that says, “Any class that implements this protocol will also implement these methods.”
A category, on the other hand, just binds methods to a class. For example, in Cocoa, I can create a category for NSObject that will allow me to add methods to the NSObject class (and, of course, all...