2 ms·
Another thing is, that attributes totally opinionate your code. You pull in a framework into your code. If you - for example - write one controller you want to
by andix 5y ago
Another thing is, that attributes totally opinionate your code. You pull in a framework into your code.
If you - for example - write one controller you want to use with multiple frameworks (ASP.NET Core or Nancy), you need one controller per framework, just for the attributes.
I always found them more annoying then helpful. Most people seem to see it that way. Most frameworks are moving away from attributes for a good reason.