dohungthinhtin's blog

Categories · Ruby

loading..
RubyRailsSOLIDSoftware-Development

SOLID Principles in Ruby on Rails - Part 2

SOLID Principles in Ruby on Rails: Part 2. Welcome back, Ruby enthusiasts! Ready to dive deeper into the magical world of SOLID principles? Grab your coffee (or tea, no judgment here), and let’s make these principles as fun as a weekend hackathon. Single Responsibility Principle (SRP)Example: Separating User NotificationsEver tried to do too many thi..

Read more
loading..
RubyRailsSOLIDSoftware-Development

Understanding SOLID Principles in Ruby on Rails

Understanding SOLID Principles in Ruby on Rails. SOLID principles are a set of design guidelines that help developers create more maintainable, understandable, and flexible software. These principles are especially valuable in Ruby on Rails projects, where code can quickly become complex. In this blog post, we’ll explore each of the SOLID principles ..

Read more
loading..

Ruby 2.7#tally

Problems? If you’re ruby on rails developer, you might face resolving something like generating a hash from a list with different key and the values are the number that it appears in the list.There are likely several more variants of this, but those are a few of the more common ones you might see around. For example: list.group_by { |v| v.some..

Read more