Guru on Rails

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

Design Patterns

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...

Thu 16 Aug 2018

Software Architecture Design Patterns

The topic today is again Object Oriented Design. We just have three words O-O-D though. Naming I’d like to say that OOD is not just about Inheritance. When we put some classes there and make them i...

Mon 20 Aug 2018

Design Patterns

1. Separating out the things that change from those that stay the same. Obviously, we do it to avoid the tight coupled code, get it easy to make changes with less cost. At first time when we put d...

Wed 10 Oct 2018

MERN Stack Javascript Design Patterns

Learning a language programming is pretty simple. People think it's hard just because they don't really understand the "way of coding". We might find that we really understand all of syntaxes but w...

Tue 18 Dec 2018

Design Patterns

factory_bot.rb require 'set' require 'active_support/core_ext/module/delegation' require 'active_support/deprecation' require 'active_support/notifications' require 'factory_bot/definition_hierarc...

Tue 11 Jun 2019

Design Patterns

Have you ever heard Template Method pattern? We thought we know it but we might be wrong. I just found a secret, a meaning of this pattern. Template method supported by inheritance. So what is temp...

Tue 25 Jun 2019

Javascript Design Patterns

Observer The Observable pattern is one that allows an object, called subject, to keep track of other objects, called observers, interested in the subject state. When the subject state changes, it n...

Wed 01 Jan 2020

Best Practices Ruby on Rails Design Patterns

I have been coding for many years. I read many books about clean coding and practising them myself. I found that the rule for clean code is Decoupling. Another the name is Isolation. You might know...

Fri 03 Jan 2020

Design Patterns

Developing methods of class for other classes to use, that is interface. Interfaces should not be changed time by time. Because that is knowledge which the other classes know about this class. Thos...