Greetings:
I'm a bit confused about namespaces. I know how they work, what I don't know is what an experienced developer would expect to see if they were looking at my code. Suppose for example I have two classes "Bar" and "Bas", and they are in the namespace "Foo". Would you expect to see:
Thanks for any insights. BTW, I searched Google for variations on the theme "vb.net namespaces files and folders", but mostly got IO information. Not organization information.
I'm a bit confused about namespaces. I know how they work, what I don't know is what an experienced developer would expect to see if they were looking at my code. Suppose for example I have two classes "Bar" and "Bas", and they are in the namespace "Foo". Would you expect to see:
- A directory named "Foo" with the files "Bar.vb" and "Bas.vb" inside - both of which use the namespace "Foo"?
- A directory named "Foo" with one or more *.vb files where the name roughly describes the functionality? E.g. a folder named "IO" might contain a file called reading.vb with all reading IO inside - while writing.vb might contain all writing IO inside.
- A file named "Foo.vb" in the namespace "Foo" containing the classes "Bar" and "Bas" (that's not necessarily in any particular folder)?
- ?? (profit?)
Thanks for any insights. BTW, I searched Google for variations on the theme "vb.net namespaces files and folders", but mostly got IO information. Not organization information.
Last edited: