this post was submitted on 20 Dec 2024
93 points (93.5% liked)

Programming

17666 readers
58 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
93
Don't DRY Your Code Prematurely (testing.googleblog.com)
submitted 2 days ago* (last edited 1 day ago) by [email protected] to c/[email protected]
 

DRY = Don't repeat yourself

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 2 days ago (3 children)

IMO, this is where techniques like Domain-Driven Design really shine as they put the business concepts at the forefront of things.

Do you have a resource on where to learn DDD? I feel like I never understood the concept well.

[–] [email protected] 1 points 1 day ago

If you can work with python cosmic python (http://www.cosmicpython.com/book/preface.html) is a great resource

[–] [email protected] 5 points 2 days ago (1 children)

As already mentioned, the blue book by Evic Evans is a good reference, but it's a ittle dry. Vaughn Vernon has a book, "Implementing Domain-Driven Design" that is a little easier to get into.

Personally, I found that I only really grokked it when I worked on a project that used event-sourcing a few years back. When you don't have the crutch of just doing CRUD with a relational database, you're forced to think about business workflows - and that's really the key to properly understanding Domain-Driven Design.

[–] [email protected] 2 points 2 days ago

Yeah for me the understanding really came when working in a federated GraphQL API. Each team had us own little slice of overall object graph, and overlap / duplication / confusing objects across the whole domain were a lot easier to see in that environment.

[–] [email protected] 4 points 2 days ago

"Domain Driven Design" by Eric Evans, aka the blue book. It's very dense however and very object oriented, but concepts apply even if you dont work with object oriented languages, you might have to do more footwork to get from a domain model to services that adhere to the model.

"Head first Software Architecture" might be an easier on ramp and touches on simmiliar concepts.