TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to create value objects in Ruby – the idiomatic way

59 pointsby thinkingemoteabout 2 months ago

2 comments

adamorsabout 2 months ago
Repost <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43421324">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43421324</a>
t-writescodeabout 2 months ago
At a previous role, we used DryStructs for this, which seemed like a nice way of getting:<p><pre><code> * named variables * type validation * better documented code </code></pre> <a href="https:&#x2F;&#x2F;dry-rb.org&#x2F;gems&#x2F;dry-struct&#x2F;1.6&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dry-rb.org&#x2F;gems&#x2F;dry-struct&#x2F;1.6&#x2F;</a>