Move File To A Matching Type Refactoring
When everything is top-level do you not need namespaces because everything is "top-level"? Thanks for helping my understanding.
13 Replies
Basically, yes
You can, technically, just... not declare namespaces
Oh alright. I was super confused everything worked from different files for a moment
Which would mean no need for
using
yeah. One more quick question on the topic
I have a bunch of different types from an exercise and not sure how to group them.
By their purpose or type
for example 'Amarok' inherits from an abstract base but also uses an interface.
For example,
Monster
and Player
could both go to /Characters
All the senses to /Senses
Or you could go the feature route, and use /Maelstrom
where you store it and its sense
And have an /Infrastructure
or a similar directory for the interfacesso it's really a however yo uwanna do it thing
Yep
is this like 'design pattern' type question? I've still not learned about that
it's on the list of things to do xD.
Kinda, yeah
Domain-driven design, layered architecture, etc
alrighty. Thanks for the information. :]