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
Angius
Angius2y ago
Basically, yes You can, technically, just... not declare namespaces
BigggMoustache
Oh alright. I was super confused everything worked from different files for a moment
Angius
Angius2y ago
Which would mean no need for using
BigggMoustache
yeah. One more quick question on the topic
BigggMoustache
I have a bunch of different types from an exercise and not sure how to group them.
Angius
Angius2y ago
By their purpose or type
BigggMoustache
for example 'Amarok' inherits from an abstract base but also uses an interface.
Angius
Angius2y ago
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 interfaces
BigggMoustache
so it's really a however yo uwanna do it thing
Angius
Angius2y ago
Yep
BigggMoustache
is this like 'design pattern' type question? I've still not learned about that it's on the list of things to do xD.
Angius
Angius2y ago
Kinda, yeah Domain-driven design, layered architecture, etc
BigggMoustache
alrighty. Thanks for the information. :]
Want results from more Discord servers?
Add your server
More Posts
Class making my program run as a background process after I close it [Answered]https://paste.myst.rs/7o8qz5vk After I close my program through RMB>Close window it continues runniHangfire - Unable to resolve services [Answered]Working with Hangfire. I have a plugin service which has an InitializeAsync method that looks like tASP.NET Website project without namespaces. Converting to ASP.NET Web application.Hi guys, I have a legacy ASP.NET Website project which I want to convert to ASP.NET Website applicatBest Way to Save Client_Secret and access_token?Hey i got now the Discord Login on my Tool Ready but now i need to Safe Data like the Access_token, How do I call a null event?```csharp public delegate void MyDel(); public event MyDel MyEvent; public void LeIdiomatic LINQ way to access both object and an object's property? [Answered]```cs var list = new List<string>(); foreach (Item item in items) { foreach (string thing in itemHow can I get the console to display arabic letters? [Answered]Every arabic words just appears as question marksObject null when using the same action controllerI have my GetById Action controller giving the result like this when request directly from it noticeCreating an installer for an app. [Answered]Bizarrely this is something I've never actually bothered with, but what's the best way to create an [ASP.NET Controller] No route matches the supplied valuesI'm trying to redirect my call to get the animal information from the create action method using thi