Re:How fast is ASP.NET Core?
by skrowl on Tuesday November 15, 2022 @10:24AM
(#33610244)
I have the opposite feeling about them. I think they make the code more readable.
[ Parent
| on HN ]
Re:How fast is ASP.NET Core?
by nobodyandproud on Tuesday November 15, 2022 @01:24PM
(#33612969)
Yes, done well it adds that benefit and if the extension method is universal to the type then proceed ahead with some caution. LINQ is a great example of this.
Where it falls apart is when it turns out that slightly different behavior is needed based on sub-type.
The right thing is to then move past the extension method, but it's more compelling to take the short-term gains of bolting-on more logic into the extension method.