I’ve noticed that the quality of stuff being posted on IEBlog is so far below-par that it could be considered dangerous for the future of the web. Strangely enough, this seems to be an epidemic in web-related Microsoft blogs.
Yesterday, IEBlog posted a link to an article on MSDN on how to add rounded corners to a box. The methods suggested in the article, however, are the terrible, un-semantic techniques that people were using years ago! Thankfully, some of the commenters have been calling them out on it:
This is news! People have been doing this for a while, but of course they’re always the extra markup that get’s really messy to manage for large projects. This kind of thing as been around for years. (in fact MSDN nicely outlined all the _wrong_ way’s to do this). You support a lot of things that aren’t in standards, like vbscript and activeX, why not support something that is at least planned and will be in the standards very soon?
Great job at innovation guys!
Dean Edwards (of IE7 fame), stated it well:
I can’t believe you’ve linked to this terrible article. In the days of semantic markup and CSS you are suggesting that web devs alter their data to get a visual effect. Astonishing. I hope that Mr Mielke won’t be allowed to blog again here.
- This is what they do
- This is the 1990’s way of attaching event handlers via strings
- IE is buggy and leaks when certain closures are used
This is an extremely powerful functional language feature, but it is important to not misuse it. There are ways to cause memory-leak-like situations using closures.
Don’t use closures unless you really need closure semantics. In most cases, non-nested functions are the right way to go.
Don’t believe Microsoft’s message that closures are inherently buggy - hold their feet to the fire on this one!Read full post