Booleans and nil in Ruby on RailsToday, we will learn about boolean and nil values in Ruby on Rails. Lets start with what these are. What is a boolean? A boolean value is used to represent whether the condition or the logic is true or false. In Ruby, we have boolean objects as "tr...Sep 21, 2022 · 2 min readdeveloperstack.hashnode.dev
Master Slave ImplementationMaster Slave/DB replication As the name suggests, master-slave is a concept where there is one master and multiple slaves. The concept of master slave is also known as DB replication. Replication means having a copy or replicating something. So, in t...Jun 29, 2022 · 2 min readdeveloperstack.hashnode.dev
Delegate in Ruby on RailsWhat is Delegate Delegate by the document, which refers to a class method used to easily expose contained objects' public methods as your own. Simply, the concept of delegate is to take some methods and send them off to another object to be processed...Feb 22, 2022 · 2 min readdeveloperstack.hashnode.dev
Message QueuesSynchronous Communication Synchronous communication means data or information is shared between the services in real time. When you're communicating synchronously with someone, virtually or physically, you expect a response from the person as soon as...Feb 9, 2022 · 2 min readdeveloperstack.hashnode.dev
Some Best Practices in Ruby on RailsUse ‘each’ instead of ‘for’ for elem in [1, 2, 3, 4, 5] puts elem end [1, 2, 3, 4, 5].each { |elem| puts elem } Use ‘Case/when’ conditions instead of lengthy “if” statements puts "What is your task status?" status= gets.chomp case status when ...1SFeb 7, 2022 · 7 min readdeveloperstack.hashnode.dev