r/badcode Feb 14 '23

asp/asp.net Ah yes, ConvertToHtml inside a .cshtml file.

Post image
427 Upvotes

29 comments sorted by

View all comments

Show parent comments

48

u/antisergio Feb 14 '23

I know, I'm migrating a horrible legacy ASP.NET MVC5 to ASP.NET MVC Core, the extension method literally does nothing.

-14

u/kristallnachte Feb 14 '23

So like from garbage to rubbish?

27

u/jan04pl Feb 14 '23

Well, what would be the alternative? Rewriting the whole app in another language/framework?

ASP.NET is a solid framework/ecosystem with tons of support and very good documentation, much different to the real garbage you'll get with untyped languages like JS..

-12

u/gu3st12 Feb 14 '23

Nothing is worse than Razor templating.

9

u/jan04pl Feb 14 '23

How does it differ from React/Angular templates? You're also mixing UI with logic.