If you've done much Rails coding, you've probably heard the guideline: “skinny controller, fat model”. But achieving this can be easier said than done. Especially when your controllers are bloated with …
When refactoring Ruby code, getting a fresh perspective on the data model can help drive out a cleaner design.
In which we examine some of the pitfalls of handling badly-formed user input for Whole Value fields.
In this episode, guest chef Sam Livingston-Gray shows us how getting a new view on our data model can drive out a cleaner design.
Today, in part 1 of 2, we explore the implications of a common code smell.
Today, we think about separating concerns at the very lowest level.
In today's episode we explore a strategy for breaking circular method dependencies.
Which way do your methods point?
In today's episode, we look at a new example of coincidental duplication: code that appears to be repeated, but really represents different pieces of knowledge.