DEV Community

Thanapon Jindapitak
Thanapon Jindapitak

Posted on • Edited on

What is business domain?

So I've read books about "Domain Driven Design" architecture,
most of the thoughts coming to my mind during reading process are where should I put these fraction of code to? And wonder that everyone is also having this problem.

Then, I concluded that you will put everything related to "Business logic" into "Domain layer"

Next question comes to my mind, "Are these fraction of code business logic ?"

FU.. it's a hard question, I even let my friends look at the code and ask them is it the "Business logic" or not, not to be surprised, their answers diverted and with different reasons at that.

Confused, really confused.

Then I found this "Vertical Slice Architecture" (ref. https://jimmybogard.com/vertical-slice-architecture/) invented by Jimmy Bogard, and went through some of his talks.

Finally, I got the idea that every thing is "Business logic", don't spend a lot of time arguing where should we put the code to, put it in plainly first then the important step is later "Refactor" it.

That's it !!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay