Guru on Rails

if you don’t sacrifice for your dream then your dream becomes your sacrifice.
Will Nguyen

Ruby on Rails

Mon 06 Aug 2018

Design Patterns Ruby on Rails

What are the reasons for using Inheritance and Composition. Speaking of Inheritance, we refer to class, for Composition we refer to Module. We should know the main idea from this design. Why do we ...

Wed 15 Aug 2018

Software Architecture Ruby on Rails Design Patterns

Have you ever considered about using class inheritance or modules while coding? So, when do we decide to use inheritance instead of module? Coding design is just about arranging code in our applica...

Wed 29 Aug 2018

Ruby on Rails

Let's have a look on how to implement singleton methods in Ruby. will = 'Will Nguyen' def will.hello puts "#{self} says hello" end If we have many methods need to be implemented. class << wil...

Wed 29 Aug 2018

Best Practices Ruby on Rails

In fact, Ruby on Rails (ROR) does help us a lot. It makes our code shorter. It's close to the natural language. The syntaxes are pretty nice. I can't agree more about these things. However, as a Ru...

Thu 06 Sep 2018

Ruby on Rails

Hook methods is actually the convenient way to help us extend the behaviors of existing class at runtime. In rails there are many popular hook methods we often use such as "included, extended, inhe...

Thu 04 Oct 2018

Ruby on Rails

Rails 5 finally provided an easy way to add realtime communication between Rails 5 server and web browser. Rails 5 Action Cable integrates the web sockets to the the rest of Rails application realt...