Archive for August, 2017
 
 
 
C/C++ Programming
 
Steel Structure1
Steel Structure1
Steel Structure1

Understanding the Basic Structure of a Program With a Simple C++ Example

‘Complex’ – this is perhaps the most common perception and misconception about C++. Well, to be honest, it really isn’t. When learnt with patience and a complete comprehension, C++ may turn out to be the easiest programming lan...
 
Ruby on Rails
 
simpson_demeterslaw-300x252
simpson_demeterslaw-300x252
simpson_demeterslaw-300x252

The Law of Demeter Design Pattern and How to Use it in Rails with the Delegate Method

The Law of Demeter, or also known as the principle of Least Knowledge, is a very interesting design pattern that you should use in your Rails projects. It enforces better encapsulation of your models and better defines its meth...

 
Ruby on Rails
 
the-flash-300x225
the-flash-300x225
the-flash-300x225

Handle Flash Messages And Redirects In Your Controllers

Rails is all about following the best practices. If you are just starting out, the path is pretty long. I’ve been studying Rails for many months and, to tell you the truth, i learn many new things every day. Rails is not ...
 
Ruby on Rails
 
seeds-300x225
seeds-300x225
seeds-300x225

Seeding Your Database With Style

One of the biggest problems that i always had when i was creating new Rails projects is the need for a versatile way to seed my database. There are various gems that make this procedure rather easy, but they tend to create repe...
 
Ruby on Rails
 
network_security-300x225
network_security-300x225
network_security-300x225

Understanding attr_accessible – Secure Your Rails Application

If you are just starting with Ruby on Rails, chances are that you are using the Devise gem as your authentication system. It’s rather easy to setup and will do just fine for basic authentication needs. Of course, as time ...

 
Ruby on Rails
 
novell-suse-linux-elliott-associates-288x300
novell-suse-linux-elliott-associates-288x300
novell-suse-linux-elliott-associates-288x300

Rails Associations Part 1 : Understand the internals of Rails Associations and how has_one works

One of the first frustrations that virtually every new Rails programmer has is Rails associations system. Since most people that come into Rails were most probably previous PHP users, chances are that they have not used a simil...