RE: C# : Where do you define an enum

I have replied again on Abhinaba’s blog. You said “I have time again seen that people point to intellisense and other editor features to justify or nullify arguments. But a editor feature can never justify design decisions. Not everyone uses VS editor. Moreover a lot of people have build systems that do not use solutions and rely on make files (nmake) or “sources” “dirs” files (NTBuild). Since there is no sln/proj files for the VS editor to use, intellisense do not work and users open CS files individually to edit.


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<p>I have replied again on <a href="http://blogs.msdn.com/abhinaba/archive/2005/10/24/484120.aspx">Abhinaba's blog</a>. <p />You said "I have time again seen that people point to intellisense and other editor features to justify or nullify arguments. But a editor feature can never justify design decisions. Not everyone uses VS editor. Moreover a lot of people have build systems that <em>do not</em> use solutions and rely on make files (nmake) or "sources" "dirs" files (NTBuild). Since there is no sln/proj files for the VS editor to use, intellisense do not work and users open CS files individually to edit. This is not a corner case situation and some teams even in MS uses this approach.". <p />You're right, intellisense can't justify having lengthened/shortend etc Naming conventions, but neither can its use or lack of be used to justify the reverse [I think that makes sense]. I understand that you want to be as verbose as you can in as smaller an area, but I still think verbosity wins the day. <p />Again for your second class, you shouldn't really be ripping the enums out and using them elsewhere [this could cause unintended consequences, at least having to change the class declaration makes it explicit that you know are changing all the enum refeneces], they should be referenced in the context that they are to be used in, and thus I belive having them in the class where it is initially related is the better choice. <p />Obviously [and I might condraticy myself now] if you have many classes from the start that use them I agree with your point. But, if you have a file filter [specific to files] and a directory filter [specific to directories] I would keep them at class level named as filter and not at the namespace level named as FileFilter, DirectoryFilter.<p /></p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate Updates
APA

Paul Kinlan | Sciencx (2005-10-25T00:00:00+00:00) RE: C# : Where do you define an enum. Retrieved from https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/

MLA
" » RE: C# : Where do you define an enum." Paul Kinlan | Sciencx - Tuesday October 25, 2005, https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/
HARVARD
Paul Kinlan | Sciencx Tuesday October 25, 2005 » RE: C# : Where do you define an enum., viewed ,<https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/>
VANCOUVER
Paul Kinlan | Sciencx - » RE: C# : Where do you define an enum. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/
CHICAGO
" » RE: C# : Where do you define an enum." Paul Kinlan | Sciencx - Accessed . https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/
IEEE
" » RE: C# : Where do you define an enum." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/. [Accessed: ]
rf:citation
» RE: C# : Where do you define an enum | Paul Kinlan | Sciencx | https://www.scien.cx/2005/10/25/re-c-where-do-you-define-an-enum/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.