Skip to main content

Difference between puts, p, and print in ruby.

· 3 min read
Shekhar Patil
Full stack developer.

Ruby is developer friendly language and it provides many ways to perform same task. For example for printing the output on the console we can use puts, prints and p. But multiple ways to do same task means more confusion for selecting correct way for our use case. In this blog we will discuss about difference between puts, print and p so that we can select correct method as per our use case.

Extend, Merge methods in the Javascript.

· 2 min read
Shekhar Patil
Full stack developer.

Yesterday, I was working on an issue in which database value for particular object attribute was correct but on UI it was showing the wrong value. I dig into the front-end Javascript code and I found that bug occurred while merging the two objects in Javascript. first, we will discuss how to merge two objects then I will explain what we should care about while merging two objects.

Scope in rails.

· 2 min read
Shekhar Patil
Full stack developer.

Rails follow the DRY principle of software development and that is 'Don't Repeat Yourself'. Scopes is are great to keep our code DRY and well organized. It's just a set of pre-defined SQL queries that we can use to write complex queries.

Relational database.

· 2 min read
Shekhar Patil
Full stack developer.

In the internet era, every organization is storing large data and it is difficult to maintain this much data. There are different databases available but it is very difficult to select the best suitable for our requirement. Mainly databases are classified into Relational database and Non-relational database.