I felt that I had to do this for my own good.:) To do TDD, the easiest way is to have nodeJS installed and up and running. What I shortly […]
I released this custom WebSocketChatServer gem earlier this month and thought that it may be a good idea to wrap the server’s client in a JS class just to make […]
Relational database management system (RDBMS) are more than creating tables and execute SQL-queries against them. PostgreSQL is one of my favourite RDBMS and if you happened to use it in […]
What I did to perform the task is that i used RNCryptor in my IOS application.
And I engaged this gem to do the decryption in Rails.
Can not be easier than this…
If you do not know how a CSRF-attack work, read here This is a simple class for taking care of generating and validating the tokens.
Let’s say that you […]
Imagine you have an User < ActiveRecord::Base object and you want to apply filtering implementation to it. The filtering will be based on certain criteria like get me all the […]
The observer design pattern is best demonstrated using the broadcaster listener example. A broadcaster in this example is an object having implementation for attaching listeners to itself. When the broadcaster […]
To demonstrate a yielding method, I created A user-management class containing registered_users method. The method will return an array of the registered user’s hash if no block is given. Otherwise […]
When should I write modules in a Ruby project? The short answer is whenever you have have an implementation that is “something-able”. Abstract classes in C++, Java or Protocols in […]