---
title: "Discussion on \"DRYing up Ruby code with Scopes\" | Hashnode"
description: "Discussion on \"DRYing up Ruby code with Scopes\". Many times I find myself or fellow team members in need of DRYing up their code or encapsulating logic to avoid redundancy but often times the solutions proposed introduce more complexity than what it's worth.\nIn the quest for cleaner and more mainta..."
url: "https://hashnode.com/posts/drying-up-ruby-code-with-scopes/65cf72699e64832f11e9a53f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DRYing up Ruby code with Scopes](https://tech.teomoura.com/drying-up-ruby-code-with-scopes?utm_source=hashnode&utm_medium=feed)

Many times I find myself or fellow team members in need of DRYing up their code or encapsulating logic to avoid redundancy but often times the solutions proposed introduce more complexity than what it's worth. In the quest for cleaner and more mainta...

Feb 16, 2024 · 3 min read · tech.teomoura.com  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Teogenes Moura](https://hashnode.com/@teomoura)

@teomoura

  
[View profile](https://hashnode.com/@teomoura)

Software engineer interested in AI

Software engineer transitioning into ML/AI Engineering

## Responses 1

Markdown supported · ⌘↵ to post

[Ryan Donohue](https://hashnode.com/@ryandonohue)

[Feb 16, 2024](https://hashnode.com/posts/drying-up-ruby-code-with-scopes/65cf72699e64832f11e9a53f/comment/65cfb30d869fddb70ab5ffe6)

💯
