SSSanima Shresthaindeveloperstack.hashnode.dev·Sep 21, 2022 · 2 min readBooleans 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...00
SSSanima Shresthaindeveloperstack.hashnode.dev·Jun 29, 2022 · 2 min readMaster 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...00
SSSanima Shresthaindeveloperstack.hashnode.dev·Feb 22, 2022 · 2 min readDelegate 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...00
SSSanima Shresthaindeveloperstack.hashnode.dev·Feb 9, 2022 · 2 min readMessage 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...00
SSSanima Shresthaindeveloperstack.hashnode.dev·Feb 7, 2022 · 7 min readSome 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 ...01S