I am on an ASP.NET MVC project where we use Razor to define pages. One thing I like to do is to use Razor's @helper
to DRY up pretty much any duplication in HTML (i.e. formalize even small UI patterns). To give an example. At the top of the page there are 3 "quick links" buttons at the top of the page, titled A, B and C. That take user to pages A, B and C respectively. I could type out three times:
<a href="/a" title="A" class="btn btn-default" target="_blank">A</a>
but I do:
@Link("A", "a")
Please note, my question is not weather this approach is right or wrong. The question is not about benefits of abstractions for maintenance. I have a very specific question here.
What I am often faced with is this desire (not an argument) to "see raw HTML". I want to understand where does this desire to see "raw HTML" comes from. People often say "maybe it is the anguish back from the days of WebForms where all that abstraction was painful".
Why do people yearn to grind through noise to get to the relevant data?
I want to understand where does this desire to see "raw HTML" comes from
<--- ask them? We're not capable of mind-reading your coworkers. It seems like you already have the answer to your question and I'm not sure as currently written anyone can answer your post. – enderland Nov 18 '15 at 14:51