Every time you create a new project or class in VS2010 you are
presented with an outline of code with a declared namespace. Does it
make sense to always delete these namespaces in small projects which
consist of only a few classes or is there any advantage in keeping
them?
Your hello world program will not stop working because
you remove it.
But you should always use namespace in a more serious
piece of code. And you should start getting good habits
even with hello world, so I think you should keep
them.
MS recommendation:
http://msdn.microsoft.com/en-us/library/ms229050.aspx
<quote<
Do not define types without specifying their namespaces.
Types that are not assigned a namespace are placed in the global
namespace. Because they are not in a feature-specific namespace, types
in the global namespace are difficult to find using development tools.
Additionally, name collisions in the global namespace cannot be
resolved. For more information, see Names of Namespaces.
</quote>
http://msdn.microsoft.com/en-us/library/ms229026.aspx
may also be relevant.
Arne