Why is the Microsoft-y way so often the wrong way?
Now, don’t get me wrong, I have made a very good living mostly from writing code using Microsoft products (C++, now C#), but sometimes I just despair.
I was reading Pro ASP.NET 4 in C# 2010 (snappy title guys), which is great, but I was struck by the wrongness of something fundamental. WebControls have properties that they have no right having. “BackColor”, “BorderStyle”, “Font” to name just three. (The list goes on).
All that the control should have to express its presentation are an ID and a Class. Why are we un-doing the benefits of CSS?
<font> tag has become a byword for bad HTML, making sites un-maintainable because presentational details were at the HTML element level, so that if I wanted to change all the fonts on a site I would have to edit EVERY control. AAArrrggghhh.
And here we are again storing presentational details in the wrong (un-maintainable) place.
Font Tags Redux… here we go again.