Click here to Skip to main content
15,890,845 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralMessage Removed Pin
5-Sep-12 4:20
professionalN_tro_P5-Sep-12 4:20 
GeneralRe: Namespaces are dead Pin
the.komplikator5-Sep-12 11:12
the.komplikator5-Sep-12 11:12 
GeneralRe: Namespaces are dead Pin
Dave Kreskowiak5-Sep-12 5:04
mveDave Kreskowiak5-Sep-12 5:04 
GeneralRe: Namespaces are dead Pin
the.komplikator5-Sep-12 11:30
the.komplikator5-Sep-12 11:30 
GeneralRe: Namespaces are dead Pin
Pete O'Hanlon5-Sep-12 11:58
mvePete O'Hanlon5-Sep-12 11:58 
GeneralRe: Namespaces are dead Pin
the.komplikator5-Sep-12 21:23
the.komplikator5-Sep-12 21:23 
GeneralRe: Namespaces are dead Pin
Dave Kreskowiak5-Sep-12 12:58
mveDave Kreskowiak5-Sep-12 12:58 
GeneralRe: Namespaces are dead Pin
the.komplikator5-Sep-12 21:31
the.komplikator5-Sep-12 21:31 
Dave Kreskowiak wrote:
Uhh, where in the Hell did you get THAT from?? No, it doesn't encompass everything. It tries to supply a lot of functionality that is common to all types of projects, but it does not cover everything.

Yes, it doesn't provide neural network capabilities, does it? Well, Microsoft's task was to create framework that exposes OS to the developer, not to read his/her thoughts. Custom libraries do that.

Dave Kreskowiak wrote:
That's completely unneccessary. The root namespace for a collection of functionality should be the assembly itself, not the entire framework. In most cases, that greatly reduces the height of the namespace tree to one or two levels.

Each namespace system has two dimensions: 1) where is the "framework" code located (framework namespace) and 2) where is your code located (your class namespace). Therefore, if you really feel like your code should access assembly code without "using" directive, you could place your code into the same namespace in which assembly code resides. You could, but you shouldn't.

Dave Kreskowiak wrote:
Actually, we already have examples of this. Ever hear of the Entity Framework? NUnit?Each has a very small namespace tree. Is it REALLY required?? No. Today, namespaces only exist to avoid name collisions, not really for functionality or organizational reasons. What are the chances a namespace tree in a library is going to have two classes with the same name?? Virtually zero.

Well, as far as I remember, Entity framework has a small namespace tree because most of it's functionality was implemented using extension methods and such evil trickery Smile | :)


Dave Kreskowiak wrote:
Yes, namespaces still offer functionality organization, but is it really necessary to write code?? No, it's not. I dare you to give me a single compelling reason from a developers perspective to justify the existance of namespaces in a library. Sure, from the library developers point of view, it's nice because you can keep your functionality seperated and organized for that developer.

Well, if you develop a project that has similar functionality on different places, you would probably want some code reusability. Whenever "similar" is not similar enough, you want to change the reused code. The proper way of code reusability (by teachings of classical OOP) is to inherit the code, and then change inherited behaviour. That means you will have to either 1) change the name of your derived class so it doesn't conflict with base class' name, or 2) put it in another namespace. Another example is when on one place in same project you have "Person" entity that contains data and maybe some logic, but on another place you also want a "Person" entity with different data, and a different logic. Therefore, you organize your project into namespaces, so one namespace doesn't "bother" you when you're working on another.

Dave Kreskowiak wrote:
On top of that, now I just have to deploy EntityFramework.dll to get the functionality instead of having it baked into a 300MB .NET Framework I have to deploy.

Yes, but maybe you don't have to. It is most likely already there. In that case you have to deploy only custom libraries.
Whatever framework you use, you will have to deploy it, because not a single framework is deployed with OS (except .Net in some cases).

Dave Kreskowiak wrote:
What?! EVERY technology and paradigm at v1.0 is unpolished! Do you think the HTTP 1.0 spec was a chrome plated masterpiece when it was released?? Hell no! Everything, from specifications to implementations to paradigms are all unpolished trial-and-error works at v1.0. Everything evolves over time with use to see what works and what doesn't.

HTTP 1.0 was practically first-of-its-kind. Therefore it wasn't reinventing the wheel. Namespaces in OOP exist for over 40 years, and all of a sudden they're obsolete and unnecessary? Namespaces are part of OOP, which has been very well tested, and trillion times proven useful. So it's useless if most of the time people don't use it?

modified 6-Sep-12 3:56am.

GeneralRe: Namespaces are dead Pin
Dave Kreskowiak6-Sep-12 6:33
mveDave Kreskowiak6-Sep-12 6:33 
GeneralRe: Namespaces are dead PinPopular
Terrence Dorsey5-Sep-12 5:34
sitebuilderTerrence Dorsey5-Sep-12 5:34 
GeneralRe: Namespaces are dead Pin
Andrei Straut5-Sep-12 8:25
Andrei Straut5-Sep-12 8:25 
GeneralRe: Namespaces are dead Pin
Terrence Dorsey5-Sep-12 9:56
sitebuilderTerrence Dorsey5-Sep-12 9:56 
GeneralRe: Namespaces are dead Pin
Andrei Straut5-Sep-12 9:58
Andrei Straut5-Sep-12 9:58 
GeneralRe: Namespaces are dead Pin
Terrence Dorsey5-Sep-12 13:56
sitebuilderTerrence Dorsey5-Sep-12 13:56 
GeneralRe: Namespaces are dead Pin
Clifford Nelson5-Sep-12 8:39
Clifford Nelson5-Sep-12 8:39 
GeneralRe: Namespaces are dead Pin
PIEBALDconsult5-Sep-12 8:44
mvePIEBALDconsult5-Sep-12 8:44 
GeneralRe: Namespaces are dead Pin
Ravi Bhavnani5-Sep-12 9:30
professionalRavi Bhavnani5-Sep-12 9:30 
NewsWhy HTML5 is in trouble on the mobile front Pin
Karthik J, Coimbatore5-Sep-12 1:56
Karthik J, Coimbatore5-Sep-12 1:56 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
Clifford Nelson5-Sep-12 8:35
Clifford Nelson5-Sep-12 8:35 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
db7uk5-Sep-12 9:25
db7uk5-Sep-12 9:25 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
Clifford Nelson5-Sep-12 9:42
Clifford Nelson5-Sep-12 9:42 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
db7uk5-Sep-12 9:45
db7uk5-Sep-12 9:45 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
Clifford Nelson5-Sep-12 9:52
Clifford Nelson5-Sep-12 9:52 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
db7uk5-Sep-12 9:54
db7uk5-Sep-12 9:54 
GeneralRe: Why HTML5 is in trouble on the mobile front Pin
Judah Gabriel Himango5-Sep-12 12:58
sponsorJudah Gabriel Himango5-Sep-12 12:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.