Rails Design Patterns: Presenter & Service Objects

Why do we need design patterns? The problem is that Rails architecture, Model-View-Controller, gives you a basic structure to put your code in. But this isn’t enough. Your views grow large & full of logic when their goal is to present information. Your controllers hold details beyond what’s necessary for the controller to do its … Read more

Understanding The Ruby Next & Break Keywords

Keywords, like next & break are part of the Ruby programming language, so if you want a complete understanding of Ruby you need to know how they work. What are they used for? Well, in Ruby, we have all kinds of loops. Like: while until each When writing a loop, you may want to skip … Read more