Click here to Skip to main content
13,147,812 members (37,823 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
AnswerRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
mark merrens28-Nov-12 6:07
membermark merrens28-Nov-12 6:07 
JokeRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
Big Daddy Farang28-Nov-12 6:30
memberBig Daddy Farang28-Nov-12 6:30 
GeneralRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
Shelby Robertson 28-Nov-12 6:35
member Shelby Robertson 28-Nov-12 6:35 
GeneralRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
Jörgen Andersson28-Nov-12 8:27
memberJörgen Andersson28-Nov-12 8:27 
GeneralRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
Big Daddy Farang28-Nov-12 9:09
memberBig Daddy Farang28-Nov-12 9:09 
GeneralRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
Jörgen Andersson28-Nov-12 9:51
memberJörgen Andersson28-Nov-12 9:51 
GeneralRe: Will there be a post-mortem article/discussion about the cause and solution to the voting "load" issue ? Pin
Big Daddy Farang28-Nov-12 10:20
memberBig Daddy Farang28-Nov-12 10:20 
GeneralNamspace and Using Statements Pin
John Simmons / outlaw programmer28-Nov-12 4:55
mvpJohn Simmons / outlaw programmer28-Nov-12 4:55 
We are using StyleCop at work and I happened to ask my boss if there was a way to turn off the inside-the-namespace placement of using statements, and he informed me that there were subtle differences in the way .Net resolves class names depending on whether your using statements are inside or outside of the namespace. I accepted that, and then he added that only one of our assemblies can't be placed inside the namespace, but that he wasn't sure why.

When I tried it, sure enough I got an Error 43 (“The type or namespace name 'Namespace2' does not exist in the namespace 'Namespace0.Namespace1' (are you missing an assembly reference?)”).

The problem turns out to be that of all the (dozens of) assemblies in the solution, only one doesn't have the NameSpace0 namespace prefix, which instead is just Namespace1.Namespace2. Given the extensive use of the namespace elsewhere in the code as it exists today, I'm not sure we should try to "fix" the problem.

Sometimes, sleuthing can be as interesting as writing the code itself, even if it turns out to be a bad idea to fix the problem.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997


GeneralRe: Namspace and Using Statements Pin
RugbyLeague28-Nov-12 5:04
memberRugbyLeague28-Nov-12 5:04 
GeneralRe: Namspace and Using Statements Pin
mark merrens28-Nov-12 5:14
membermark merrens28-Nov-12 5:14 
GeneralRe: Namspace and Using Statements Pin
John Simmons / outlaw programmer28-Nov-12 5:20
mvpJohn Simmons / outlaw programmer28-Nov-12 5:20 
GeneralRe: Namspace and Using Statements Pin
Pete O'Hanlon28-Nov-12 5:26
protectorPete O'Hanlon28-Nov-12 5:26 
GeneralRe: Namspace and Using Statements Pin
Simon_Whale28-Nov-12 5:40
memberSimon_Whale28-Nov-12 5:40 
RantRe: Namspace and Using Statements Pin
jim lahey28-Nov-12 5:42
memberjim lahey28-Nov-12 5:42 
GeneralRe: Namspace and Using Statements Pin
Pete O'Hanlon28-Nov-12 5:50
protectorPete O'Hanlon28-Nov-12 5:50 
GeneralRe: Namspace and Using Statements Pin
Zac Greve28-Nov-12 5:56
memberZac Greve28-Nov-12 5:56 
GeneralRe: Namspace and Using Statements Pin
jim lahey28-Nov-12 6:05
memberjim lahey28-Nov-12 6:05 
GeneralRe: Namspace and Using Statements Pin
Colin Mullikin28-Nov-12 6:59
memberColin Mullikin28-Nov-12 6:59 
GeneralRe: Namspace and Using Statements Pin
BobJanova28-Nov-12 7:19
memberBobJanova28-Nov-12 7:19 
GeneralRe: Namspace and Using Statements Pin
Colin Mullikin28-Nov-12 8:06
memberColin Mullikin28-Nov-12 8:06 
GeneralRe: Namspace and Using Statements Pin
John Simmons / outlaw programmer28-Nov-12 9:11
mvpJohn Simmons / outlaw programmer28-Nov-12 9:11 
GeneralRe: Namspace and Using Statements Pin
Colin Mullikin29-Nov-12 2:12
memberColin Mullikin29-Nov-12 2:12 
GeneralRe: Namspace and Using Statements Pin
Florin Jurcovici29-Nov-12 1:37
memberFlorin Jurcovici29-Nov-12 1:37 
GeneralRe: Namspace and Using Statements Pin
John Simmons / outlaw programmer28-Nov-12 7:23
mvpJohn Simmons / outlaw programmer28-Nov-12 7:23 
GeneralRe: Namspace and Using Statements Pin
Big Daddy Farang28-Nov-12 7:29
memberBig Daddy Farang28-Nov-12 7:29 

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.


Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 24 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid