News for hackers. Stuff that matters.
Re:Minimal APIs at a glance in .NET 6 by andix on Monday September 13, 2021 @10:05AM (#28511654)
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.

There are no comments on this comment yet.