Morten Vistisen
Jan 25, 2022

Why doesn'tn it work in a real codebase?

You're not limited to keeping everything in 1 file. You can split them up as you need. If you have a user service with a 100 methods, maybe you're coupling too much in that service and probably have to look at your domain modelling again. If you do need a 100 methods, then you're free to split them into more files.

All of this is group/packaed in the appropriate layers so you can always add more files if you need to split things up.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Morten Vistisen
Morten Vistisen

Written by Morten Vistisen

I’m a software engineer working mainly with Go and Rust. Find me on Twitter @mbvisti

No responses yet

Write a response