Guru on Rails

A day a problem solved, a year we become the Pro

Sat 18 Jan 2020

Performance Ruby on Rails

How do people work good in the morning and performance decreases gradually until Evening? If we don't mention the spirit cause computers don't have it (lol), so the cause is the amount of workload....


Sat 04 Jan 2020

Data Structures Ruby on Rails Best Practices

In order to design this function we need to know self-join technique first. Now let's have a look. 1. Self-join SELECT employees.*, managers.name as manager FROM users as employees JOIN users as m...


Fri 03 Jan 2020

Design Patterns

Developing methods of class for other classes to use, that is interface. Interfaces should not change time by time. Because that is what the other classes know about this class. Those are also conn...


Wed 01 Jan 2020

Ruby on Rails Best Practices 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...


Wed 01 Jan 2020

AngularJS Javascript Ruby on Rails

Imagine that we have a rails application which have been running for more than six year. Suddenly, we have a requirement about realtime feature. We have two choices. The first one is using third pa...


Mon 30 Dec 2019

Mindset

This is my perspective about Leadership. I have joined many companies so far and I do understand that Leadership is a very important factor making impacts to the company's culture. So why I said th...


Thu 18 Jul 2019

Best Practices Performance SQL

If we work on a complex system, queries are pretty complex with a ton of subqueries, we would encounter the problem of optimization of query. In order to achieve a goal, we have many ways to do. So...


Tue 02 Jul 2019

AngularJS Javascript Problem Solving MERN Stack

Below is Angular code but you can do it simple, just focusing on the encodeURIComponent. Read the link below to get to know the reason.  get html() { return this.viewTrustDocx; } private get viewTr...


Thu 27 Jun 2019

Uncategorized

Actually, in my opinion there is nothing best. Anything has its own advantages and disadvantages. It depends on the context we apply the proper technology, design patterns, best practices etc. Some...


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