Click here to Skip to main content
15,901,035 members

Survey Results

Do you use Attributes in your .NET development?   [Edit]

Survey period: 17 Oct 2011 to 24 Oct 2011

Attributes provide a neat way to hide the plumbing. Do you use and/or create attributes yourself?

OptionVotes% 
Extensively626.31
Often17017.31
Occasionally27928.41
Rarely19419.76
Never787.94
I am unfamiliar with Attributes in .NET19920.26



 
GeneralRe: Attributes are evil Pin
Eddy Vluggen17-Oct-11 6:58
professionalEddy Vluggen17-Oct-11 6:58 
GeneralRe: Attributes are evil PinPopular
User 482203317-Oct-11 9:38
User 482203317-Oct-11 9:38 
GeneralRe: Attributes are evil Pin
#realJSOP17-Oct-11 10:13
professional#realJSOP17-Oct-11 10:13 
GeneralRe: Attributes are evil Pin
Paul Coldrey17-Oct-11 15:15
professionalPaul Coldrey17-Oct-11 15:15 
GeneralRe: Attributes are evil Pin
CDP180217-Oct-11 20:07
CDP180217-Oct-11 20:07 
GeneralRe: Attributes are evil Pin
#realJSOP18-Oct-11 2:26
professional#realJSOP18-Oct-11 2:26 
GeneralRe: Attributes are evil Pin
User 482203318-Oct-11 2:30
User 482203318-Oct-11 2:30 
GeneralRe: Attributes are evil Pin
myker18-Oct-11 7:41
myker18-Oct-11 7:41 
Amen to that. Attributes are GREAT for cross-cutting concerns. One of the most useful applications of attributes I've seen is in ASP.NET MVC. Simply decorating your controller methods with an [Authorize] attribute ensures security for the view. It makes it nice and easy to see which controller methods are secure and which ones are not by simply glancing at the code. Much nicer and more maintainable than an inheritance/opt-in/opt-out OO mess.

Like anything, attributes can be abused, but they definitely have utility in creating readable/maintainable code in cross-cutting circumstances.
GeneralRe: Attributes are evil Pin
Fabio Franco21-Oct-11 2:20
professionalFabio Franco21-Oct-11 2:20 
GeneralRe: Attributes are evil Pin
Fabio Franco21-Oct-11 6:00
professionalFabio Franco21-Oct-11 6:00 
GeneralRe: Attributes are evil Pin
Stonkie17-Oct-11 12:00
Stonkie17-Oct-11 12:00 
GeneralRe: Attributes are evil Pin
Marc Clifton17-Oct-11 14:43
mvaMarc Clifton17-Oct-11 14:43 
GeneralRe: Attributes are evil Pin
Fabio Franco21-Oct-11 2:18
professionalFabio Franco21-Oct-11 2:18 
GeneralRe: Attributes are evil Pin
hairy_hats21-Oct-11 3:21
hairy_hats21-Oct-11 3:21 
GeneralWho have useful questions for the CP weekly poll? Pin
AlexCode17-Oct-11 2:45
professionalAlexCode17-Oct-11 2:45 
GeneralNope, I only use BACON PinPopular
OriginalGriff16-Oct-11 23:47
mveOriginalGriff16-Oct-11 23:47 
GeneralRe: Nope, I only use BACON Pin
Nagy Vilmos17-Oct-11 4:37
professionalNagy Vilmos17-Oct-11 4:37 
GeneralRe: Nope, I only use BACON Pin
OriginalGriff17-Oct-11 4:43
mveOriginalGriff17-Oct-11 4:43 
GeneralRe: Nope, I only use BACON Pin
Nagy Vilmos17-Oct-11 4:46
professionalNagy Vilmos17-Oct-11 4:46 
GeneralRe: Nope, I only use BACON Pin
Randor 17-Oct-11 20:14
professional Randor 17-Oct-11 20:14 
GeneralRe: Nope, I only use BACON Pin
OriginalGriff17-Oct-11 21:55
mveOriginalGriff17-Oct-11 21:55 
GeneralUsed, now creating them Pin
Sander Rossel16-Oct-11 20:12
professionalSander Rossel16-Oct-11 20:12 
GeneralRe: Used, now creating them Pin
CDP180216-Oct-11 22:07
CDP180216-Oct-11 22:07 
GeneralRe: Used, now creating them Pin
Sander Rossel17-Oct-11 7:10
professionalSander Rossel17-Oct-11 7:10 
GeneralRe: Used, now creating them Pin
CDP180217-Oct-11 12:45
CDP180217-Oct-11 12:45 

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.