Scott Hanselman

Section 508 Accessibility and ASP.NET

June 03, 2004 Comment on this post [1] Posted in ASP.NET
Sponsored By

I've be interested in Web Accessibility for a while, and collected a pile of links about it in 2002 for a project.  I even turned off my monitor for a day and ran "Jaws," a screen reader for Windows that blind people use. (Seriously, try this one day - if you ever go blind, at least you'll know how you'll keep your programming job.  It was comforting to know that I could keep my job.)

Scott Mitchell has a great article on accessibilty up on MSDN.  Kudos to Scott for this; there just aren't enough people who realize the need for accessibilty and few people take the time in their projects to make a site truly accessible.  You don't know how many customers you are losing if they can't even get to your site.

It's great to know that ASP.NET 2.0 will generate Section 508 compliant markup by default.  Nice to know there is some commitment.

If you need Section 508 compatibility now, you can patch the ASP.NET 1.1 DataGrid TODAY with the June 2003 Hotfix (Q821156).

Also, be sure to check out Mark's Dive Into Accessibility book, it's an invaluable download. 

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Who ever said software development was just another job?

June 03, 2004 Comment on this post [0] Posted in XML
Sponsored By

This was just too good not to share…emphasis is mine.

Via Peter Provost, I came upon Kris Syverstad’s post drawing an analogy between great software developers and great athletes. Kris’s post in two sentences: Great developers and great athletes strive to be the best, and have the talent and drive to become so. The best developers are the ones who seek out help when they need it, and take steps to actively seek out learning opportunities on their own.

I think Kris’s analogy is right on. I found it ironic that Kris very clearly lays out the attitude one needs to excel in this business, and the absolute antithesis of this attitude is displayed in one of his comments. The comment I’m referring to was “[Building your skills on your own] takes time outside of your 40 hour work week and it is unpaid. So, what is the incentive?” 

Hrmm…investing in yourself? Personal pride? The desire to be the best? Loving what you do?  

I’ve had the privilege of working with some really, really great developers. I’ll tell you one thing they all have in common: software isn’t something they just do for 40 hours a week to pay the bills. [Brain.Save()]

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

ComputerZen.com - Episodes you may have missed...

June 02, 2004 Comment on this post [2] Posted in ASP.NET | Web Services | DasBlog | XmlSerializer | Speaking | PDC
Sponsored By

It's the wife's birthday so I shall be out of pocket for the weekend and I may not have time to blog.  But, I realized that I have a whole 2+ years of blogging up here that you may have missed.

Thus, I present "Syndicated ComputerZen in Syndication or Episodes You May Have Missed" for your pleasure. 

  • Bringing data "along for the ride" with CheckBoxes and the ASP.NET DataGrid
    Work WITH the Grid, not against it;  Listen to the Events and Nudge/Influence the Grid; just because code is on CodeProject or in Google Groups doesn't mean the writer knows the DataGrid from his own Ass.
  • ASP.NET: Postbacks for Algernon
    Pretty PostBacks when using RewritePath; Complex Custom Confirmation Dialogs on LinkButtons in DataGrids while STILL maintaining PostBacks (whew!)
  • But what price my soul?  The one where I muse about the potential for going to hell for writing really smelly code.  What to do when you've built a great monument, but there's bird poop at the top that you're responsible for.  Does it take away from the accomplishment?
  • Exporting Tabular Data to Excel from ASP.NET  My #1 most popular post.  Geez...look at the Referral List.  It's worth checking out.  Amazing.
  • XmlSerializer Madness Learning about when the XmlSerializer caches its generated assemblies, and when it doesn't.
  • The Day I Moblogged the PDC Keynote The lengendary post where I blogged the PDC Keynote from the only device with coverage - my BlackBerry.  My left thumb, in particular, has yet to recover.

If you find it useful, I may dig in to the archives again. (This post was brought to you by the upcoming dasBlog MonthView.)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

The Winners are Announced (Finally) in the TabletPC "Think In Ink" PowerToy contest

June 02, 2004 Comment on this post [2] Posted in Programming | Tools
Sponsored By

The winners are in (I turned mine in minutes before the deadline and spent 17 minutes on it) for the Does Your Code Think In Ink Contest.

Thanks to Julia for noticing the announcement in PC Magazine via TabletPCTalk.

The Grand Prize ($15K!) let you create your own Font with your handwriting.  That's a pretty amazing concept.

The First Runner Up is weird...kind of like Alias SketchBookPro on LSD.

And my little sad applet that won me $2500 and a copy of Visual Studio Enterprise Developer (which is available for sale) was originally called "ZenBar," then "GoogleBar" and was changed by the contest owners when it was packaged up into an MSI to "Web Search Power Tool."  I thank them very much for the righteous changes. 

Additionally, big ups to my homies over at Tabula PC for a great writeup on the tools and what they do.  They said "If it weren't for this last runner up, I'd be really dejected right about now. Scott Hanselman saves the day! His Web Search Power Tool may not be pretty or glamorous, but is exactly what I want from a power tool - it's actually useful."

Also interesting to note is that I apparently live in South Carolina if you believe PC Magazine.  Considering that I live in Oregon and that I know no one in S.C., it'd be interesting to learn when and how I moved there, and how long I'll stay. :)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Returning DataSets from WebServices is the Spawn of Satan and Represents All That Is Truly Evil in the World

June 01, 2004 Comment on this post [11] Posted in TechEd | Web Services | XML
Sponsored By

(Nah, I don't really believe that, but it's a good title, no?  DataSets have there place, just not as publically visible Business Objects or from publically accessible WebServices.)

Barry Gervin commented on my "quick bash at DataSets" and that I didn't explain my reasonining.  In his post, Barry commented on Harry Pierson's statement that one shouldn't use DataSets in a Web Service because they aren't compatible with non .NET Platforms.  Barry says, "This isn't true. A DataSet is just XML."  Well, of course it's XML, but if I say, hey take this sentence, it's in the ASCII character set (who care's if it isn't English) Le "DataSet" n'est pas votre ami si vous faites des Services de Web.  Well, Barry can understand that, but I no hablo French. ;)

DataSets are bowls, not fruit.  Do you really want to return bowls?

A DataSet is an object, right?  But it's not a Domain Object, it's not an "Apple" or "Orange" - it's an object of type "DataSet."  A DataSet is a bowl (one that knows about the backing Data Store).  A DataSet is an object that knows how to HOLD Rows and Columns.  It's an object that knows a LOT about the Database.  But I don't want to return bowls.  I want to return Domain Objects, like "Apples."

"Use Strongly Typed DataSets," you say.  "They are the same as Objects, and look how intellisquish works now!"

No, they still aren't Domain Objects, a Strongly Typed DataSet is just a bowl with a picture of an Apple on it.  "Look there's an Apple INSIDE - we've broken it down into columns!"  DataSets are a shoddy replacement for a good Domain Model (and that includes Strongly Typed DataSets). 

Barry has a very good argument for the use of DataSets on his site, and I won't go through his list agreeing and disagreeing with various points.  I will say this, however, it seems that his arguments support the use of DataSets in a Data Access Layer - not in a Business Object Layer.  THAT I would support.  Additionally I understand the usefulness of DataSets in a classic (intranet) Client-Server WinForms app with lots of DataBinding. 

Returning DataSets from a publically accessible Web Service is a BAD IDEA©.

Now, why shouldn't we return DataSets from WebServices?  DataSets and their serialized XML format includes a pile of information that has little to do with the Domain Model itself.  DataSets may be DiffGrams, they may or may not include schema, and they represent "Sets of Data."  They are an object of one type, DataSet.  Whether there is a Java version of a DataSet object available doesn't matter.  They are late-bound by nature, as even a Strongly Typed DataSet encapsulates conversion of types back and forth from SqlDataTypes to typical CLR types and calls to Rows["Apple"].  DataSets are the Class equivalent of an Variant - an Object that can be any kind of Object - only serializable as XML.  Returning an object of type DataSet or Typed DataSet via publically accessible Web Service would succeed only in confusing a Java person, stymying any chance of interop, and giving them more ammo to use against .NET.

To be clear, I WOULD architect a system that included DataSets if I felt that they provided an exceptional value.  I'm just promoting that folks BE AWARE of the ramifications of their decisions.


Tagential aside: There's some yummy best practices up on TheServerSide.NET.  Here's my favorites:

  • Using a DataReader vs. a DataSet: The DataReader was of course faster. It was faster by 16% in this particular case.
  • SQLDataReader vs. OleDBDataReader: Going with native drivers is always better. The SQLDataReader was 115% faster than going through OLE.
  • DataReader Column Reference - By Name, Ordinal, or GetString(): The order of speed? dr[0] was the fastest, followed by dr["ProductName"], followed by dr.GetString(0) as it has to do the conversion.
  • Inline (DataReader) vs. Controls (DataGrid): The inline script was 233% faster than a DataGrid component.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.