Stop introducing helpers which will introduce issues with code readability #11256
Replies: 1 comment 1 reply
-
Hi @bielu and thanks for the feedback! 👍 While I understand your concerns, I am afraid I don't have good news for you in that regard. We, as HQ members feel like they are a super friendly way to get started with Umbraco templates without having to know all the quirks of Razor, and they help hiding complexity (or as you say "real code"). Our target audience is broad and we want to include people who are just starting out, making it easier for them to get going with something basic that will mostly satisfy their needs. Additionally, we are not going to be the only ones building taghelpers, there's already community members thinking about making a taghelpers library. I know one of your concerns is that you will eventually take over a project from someone else and will have to deal with them. If we don't build our own, you will still run into that problem. The proverbial cat is out of the bag now and the only ones who can stop it is Microsoft if they deprecate taghelpers.😅 On the other hand, we will be selective with the taghelpers that we put in core, they have to make sense to us and provide a significant improvement over writing raw Razor code instead. For those helpers that we don't want, we'll be encouraging people to contribute to community packages. But we are all ears for the different ways you mention here, if you can think of something else that makes it easier to get started then we'd love to hear suggestions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Lately I start looking again trough PRs in umbraco and noticed, there is more and more helpers as pr which will cause issues with code readability and I think we should stop doing that.
To lower enter level we should figure out different ways than introducing helpers which will cause issues with debugging, understanding code etc.
As example Pr which I think it is hitting that issue really hard:
#11233
Usage of tag helpers hides real code and might cause issues with debugging, also make code much less readable, as it is not really showing the logic behind, especially if we introduce for example vue or angular, as now code will be totally unreadable as we will umb-if, ng-if in same tag.
Beta Was this translation helpful? Give feedback.
All reactions