I have recently been given the task of enhancing a rather large application. At least it looks large to me with 49 .vb source files over half of which are forms.
This is the first time working with vb.net although I have worked with VBA, C# and Delphi. I'm sure to have many questions, but first I would like an opinion, please...
All of the source files contain code that declare the same namespace. (There are a few exceptions, but 95% of the code is in the same namespace across 49 files.) Was this a reasonable thing to have done? Or would it be better to have each form in its own namespace?
It looks as if it was done this way so that everything could access one common class which is a sort of a do-it-all class using Public Shared properties and functions. (It is never instantiated.) Which leads to a second question: Isn't that the same as using Global variables?
If these are standard industry practices, I guess I will just have to learn to live with them but it doesn't feel right to me. It feels like that the object-oriented features of VB.NET were completely by-passed and the result is nearly unmaintainable. I tried using Project Analyzer v8.1.01 from Aivosto to get a handle on it, but it shows lines and arrows going every which way.
I tried a Google search but couldn't find this addressed. I also searched in this forum with the same negative result. They are willing to say how to use the Namespace directive syntactically, but I couldn't find any advice on how to use it logically.
Opinions, please?