How do you name your spaces?
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
I used my initials, so it'd be DK.Project
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Try Sander.CatOwner, or Sander.Wood.Smooth perhaps?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Sander Rossel wrote:
I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case.
By your redenation; Rossel.Sander and Rossel.Nika :)
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
we choose internal names. For example our current re-write of the underwriting system is called Brian (after the life of Brian film).
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
-
we choose internal names. For example our current re-write of the underwriting system is called Brian (after the life of Brian film).
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
"He's not the Messy Index, he's a very naughty SQL INjection!" ;)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
"He's not the Messy Index, he's a very naughty SQL INjection!" ;)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
:laugh: I keep wanting to introduce a classed called "BlessedAreTheCheeseMakers" but my line manager won't let me, because of the parent company's audit policies :(
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
ProjectX for the primary namespace and then ProjectX.Whatever, etc., maybe ProjectX.Model, ProjectX.DAL, ProjectX.Common where ProjectX is the name of the project. And sometimes it is.
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
namespace RavSoft.MyApp {
}/ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
I follow the Java standard for package names, so everything is under
com.vilmos
. Actually that's a lie, it's mostly `com.lexa`, but that's because there is a master project called Lexa.veni bibi saltavi
-
I follow the Java standard for package names, so everything is under
com.vilmos
. Actually that's a lie, it's mostly `com.lexa`, but that's because there is a master project called Lexa.veni bibi saltavi
Bleh, I hate that convention... Why, when I'm searching through my endless list of dependencies (Don't get me started...), should I have to remember whether it's a com, net, or org? .NET just does it better (Like so many things)... Anything in the basic framework is System.*, anything Windows-specific is Microsoft.*, and anything else is CompanyName.* or LibraryName.*
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels) -
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
I use the alphabet. a.b.c etc... j/k CompanyName.SoftwareProjectName.VisualStudioProjectName (ACME.RoadRunner.DAL) or something like that. or SoftwareProjectName.VisualStudioProjectName (RoadRunner.DAL) or something like that.
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
PIEBALD
PIEBALD.Lib
PIEBALD.Data
PIEBALD.Typeetc.
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Wrong is evil and must be defeated. - Jeff Ello
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Since a solution can contain projects directly related to an app, as well as commonly shared projects, I use the following. Note that not all are needed: ** For the app itself Company.Project.Core Company.Project.DAL Company.Project.BL Company.Project.Entities Company.Project.Shared Company.Project.Tools Company.Project.UI.WPF.Controls Company.Project.UI.WPF.Desktop Company.Project.UI.WPF.Phone Company.Project.UI.WPF.Tablet Company.Project.UI.Web.MVC ** Projects shared by many apps Company.WPF.Controls Company.WPF.Entities Company.WPF.Themes Company.WPF.Utilites
If it's not broken, fix it until it is
-
Wrong is evil and must be defeated. - Jeff Ello
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Since the source code for our projects is proprietary, we omit the company identification from the
namespace
name. For .NET, our namespaces are_Assembly_{.Package}
where_Assembly_
is the assembly name and the{.Package}
suffix is only used where an assembly contains more than one significant body of code. For C++ we usually just use the globalnamespace
. I did have one C++ project where a combination ofnamespace
's and a templated base class really improved the readability of a pile of related classes.Software Zen:
delete this;
-
Let's say you're starting a new project and you pick your own name (or your company name) as default namespace, how would you do it? In my case: Sander.Rossel or SanderRossel? I'd go for SanderRossel as Sander.Rossel would imply I'd actually have Sander.SomethingElse, which clearly isn't the case. Judging from what I've seen the Sander.Rossel style is the more frequently used though. I've seen both methods and I was wondering which people prefer.
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Last time I needed a namespace, I happened to play a game. My new commander had just arrived at my base and yelled "Forces of chaos, bow to me!" So my new namespace became FoC, which is very accurate for most software projects.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
"I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns. -
I use the alphabet. a.b.c etc... j/k CompanyName.SoftwareProjectName.VisualStudioProjectName (ACME.RoadRunner.DAL) or something like that. or SoftwareProjectName.VisualStudioProjectName (RoadRunner.DAL) or something like that.
-
:-D :thumbsup:
-
Wrong is evil and must be defeated. - Jeff Ello
"CONSIDER using plural namespace names where appropriate." Never pluralize.