Scott Hanselman

DNRTV Screencast - ASP.NET Debugging and Tracing

May 13, '07 Comments [6] Posted in ASP.NET | Learning .NET | Programming | Screencasts | Speaking
Sponsored By

Last week during lunch one day, Carl and  I recorded an episode of "DotNetRocks TV." This is  Episode 66 of DNRTV. 

We started with the idea that we'd do a show on debugging ASP.NET, but once we got into System.Diagnostics.Debug.WriteLine, I realized that I first needed to cover the relationship between Diagnostics.Trace and Page.Trace, as well as the relationships between debug statements and trace statements inside and outside of ASP.NET. The whole show was spontaneous, no script, no plan, but it turned out pretty darn good for a single take, if I may say so.

Play Flash Version in the Browser
Download zipped video
Download Torrent to Zip
Subscribe

Be aware if you download the ZIP that it's about 200megs. The show is in two parts, so there's an advertisement in the middle of the show...after that advert, Part 2 will automatically start. I encourage you to check it out the ad, first because it's telerik and they sincerely rock, and second because our sponsors pay for the massive bandwidth bills for the direct downloads. 

If you like DNRTV, and want to subscribe to the DNRTV Feed, consider using the RSS Downloader features of ĀµTorrent ("microtorrent").

I hope you enjoy the show.

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 twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Hanselminutes Podcast 64 - Interview at Mix with Lynda from Lynda.com

May 11, '07 Comments [3] Posted in Podcast
Sponsored By

My sixty-fourth podcast is up, recorded on the floor at Mix. Google for "Lynda" and you'll find the legendary Lynda.com. Lynda Weinman has had a popular online presence for over 12 years. She created the original Web-Safe Color palette (remember when that mattered?) and now she sells nearly 20,000 training videos online via subscription. Silverlight is likely next. I chat with Lynda after we had lunch with Ray Ozzie and some other bloggers. Lynda created the FlashForward Conference, the largest Flash Conference out there - this year it's in Boston in September. As a geek aside, she also worked on the CGI for Return of the Jedi. I hope you enjoy this episode.

ACTION: Please vote for us on Podcast Alley! Digg us at Digg Podcasts!

Links from the Show

 Lynda.com
 Lynda.com Podcasts

Subscribe: Feed-icon-16x16 Subscribe to my Podcast in iTunes

Do also remember the complete archives are always up and they have PDF Transcripts, a little known feature that show up a few weeks after each show.

Telerik is our sponsor for this show.

Telerik is a new sponsor. Check out their UI Suite of controls for ASP.NET. It's very hardcore stuff. One of the things I appreciate about Telerik is their commitment to completeness. For example, they have a page about their Right-to-Left support while some vendors have zero support, or don't bother testing. They also are committed to XHTML compliance and publish their roadmap. It's nice when your controls vendor is very transparent.

As I've said before this show comes to you with the audio expertise and stewardship of Carl Franklin. The name comes from Travis Illig, but the goal of the show is simple. Avoid wasting the listener's time. (and make the commute less boring)

  • The basic MP3 feed is here, and the iPod friendly one is here. There's a number of other ways you can get it (streaming, straight download, etc) that are all up on the site just below the fold. I use iTunes, myself, to listen to most podcasts, but I also use FeedDemon and it's built in support.
  • Note that for now, because of bandwidth constraints, the feeds always have just the current show. If you want to get an old show (and because many Podcasting Clients aren't smart enough to not download the file more than once) you can always find them at http://www.hanselminutes.com.
  • I have, and will, also include the enclosures to this feed you're reading, so if you're already subscribed to ComputerZen and you're not interested in cluttering your life with another feed, you have the choice to get the 'cast as well.
  • If there's a topic you'd like to hear, perhaps one that is better spoken than presented on a blog, or a great tool you can't live without, contact me and I'll get it in the queue!

Enjoy. Who knows what'll happen in the next show?

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 twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Silverlight Samples

May 9, '07 Comments [13] Posted in Silverlight
Sponsored By

There's a lot of Silverlight in the air right now. I haven't seen the 'net abuzz like this since FutureSplash Animator. ;)

I've been collecting links to samples out there. Since Silverlight is all text (XAML, JS, etc) there's a whole world of copy/pasting out there just waiting for us (developers) to create Green and Purple blinking abominations like we did with Visual Basic 3.

I'm enjoying XAML, but I'm not at the point where I'll do it all in a text editor like Chris Sells or all in black and white like Charles Petzold, so I'll stick with using Expression to draw my XAML for now. I've also I haven't gotten my brain around the object model yet...I can't remember who said it, I think it was Bret, but they said it, and they are awesome:

"Drawing with code is like painting over the phone.

Here's links to some of the choicest samples that I've been viciously copy/pasting from after Getting Started and viewing the screencasts and the Silverlight Comparison Chart from Alexander Strauss:

I'm sure the coming months are going to bring lots of good samples. I also want to dig into OpenLaszlo, JavaFX, and Apollo, as well as Flex. Does anyone have contact info for Ted on Flex? I'd like to do a show on Flex for Hanselminutes.

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 twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Call for Sessions: Portland Code Camp v3.0

May 9, '07 Comments [5] Posted in Programming
Sponsored By

Code Camp in Portland is in only 10 days. It starts on May 19th and 20th. There's a good list of sessions so far with topics like Cardspace, XNA (XBox Development), PowerShell, Amazon S3, Silverlight, and many others by a great list of presenters. There's also an even party on Saturday, so be sure to register/RSVP ahead of time.

Remember that Code Camp is always free and you're welcome to present in this low-pressure environment. There's still time to submit a session of your own. If you've been thinking of presenting a topic or want to try presenting in public, now's the time to make it happen.

This is an open event, so come talk about Ruby, C#, Smalltalk, COBOL, Robots, whatever, as long as you're excited about it. You can submit any level session from Beginner to super-Expert. What are you working on at your job that is so awesome you're overflowing with excitement about it? Come give a session on that.  Are you building a PacMan arcade in your garage, or hacking your TV remote control? Come talk about that.

CodeCamp is just over the bridge in Vancouver at the WSU Campus. It's an easy drive from Portland. If you're coming from Seattle, there's many hotels nearby.

Spread the word around town as all are welcome at Code Camp in Portland.

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 twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Software Estimation: Remember that Targets are not Estimates

May 9, '07 Comments [12] Posted in Programming
Sponsored By

I was asked recently to help in creating some estimates. Dates were mentioned, features were requested, but generally the information given was pretty vague, as is common with many estimates. So, we start digging. What is needed, when is it needed, in what form is it needed? What does success look like?

There's lots of estimation tools out there. Steve McConnell's Construx Estimate (even though it's written in VB6 and was created in 2001) is well thought of, and can certainly get one jump-started with an estimate. Of course, garbage-in, garbage-out still applies. 

Patrick's been using the PlanningPoker technique for estimating lately. It's a useful technique that relies on the folks doing the work also doing the estimating. (Always nice.)

If you take a look at the White Papers section of the Construx website (free registration required, but it's worth it) you'll find a number of excellent presentations in PDF format that are good reminders and primers when dealing with daunting Software Estimation tasks.

Pick up Steve McConnell's book "Software Estimation: Demystifying the Black Art" if you want a nice introduction to the voodoo that is estimating.

I've been reminded of a few important tenets doing this estimating processes.

Know your scope

Negotiating the scope of your project, the features, subsystems, etc. with your business stakeholders is a good first step in getting your head around "what are we really trying to accomplish." User stories and complete and accurate Use Cases are invaluable when trying to nail down how large something is.

Targets are not Estimates

Folks sometimes come up with dates, like "February 2008" as a target for a project to hit. After a while that target date starts getting treated like an estimated date. It's important that everyone on a project remember (or be reminded regularly) that targets are not estimates. If you want to hit a date, you'll likely not know when if an estimate is good enough to hit a target until you start moving far enough into the Cone of Uncertainty.

Ask for Worst Case - then Double That

Jeff Atwood points out, after reading Steve's book, that asking for multiple points (best case, worst case) when asking folks for an estimate is important. He quotes Steve, emphasis mine:

Considering that optimism is a near-universal fact of human nature, software estimates are often undermined by what I think of as a Collusion of Optimists. Developers present estimates that are optimistic. Executives like the optimistic estimates because they imply that desirable business targets are achievable. Managers like the estimates because they imply that they can support upper management's objectives. And so the software project is off and running with no one ever taking a critical look at whether the estimates were well founded in the first place.

This quote nails it for me. No one wants to give a realistic estimate. It's hard and sometimes it's potentially career-limiting.  Steve quotes Fred Brooks (who, as a random aside, is the uncle of a good friend of mine from high-school):

It is very difficult to make a vigorous, plausible, and job-risking defense of an estimate that is derived by no quantitative method, supported by little data, and certified chiefly by the hunches of the managers.
Fred Brooks (1975)

A few companies encourage worst-case estimates in the hopes that you can look like a hero if you make it happen. A few companies ago I worked somewhere with the philosophy: Underpromise, over-deliver. It was the founder's belief that this idea was fundamental to making happy customers. It seemed like a good idea, except when you actually delivered and things turned out to be simply: Promised, delivered. Which isn't all that bad, actually, considering that folks say that fewer than 1/4 of projects actually do deliver on time.

Learn From the Past, and Don't Forget It

There's a great slide in the 10 Keys to Success PDF up at Construx that compares 120 projects at Boeing, juxtaposing those that were estimated with Historical Data and those that were done without. Seems obvious, but it's useful to see these kinds of things and "learn from the sins of our fathers."

When estimating based on historical data, however, sometimes people use the historical estimate rather than the historical actual. In fact, a lot of companies don't closely track the actuals. You'll be better off if you not only keep the actual datas, but also compare the original estimate with the actual result in a project post-mortem.

  • How do you estimate your projects?
  • Do you estimate?
    • If so, what tools do you use?
  • Do you use Function Point Counting?
    • Do you use other techniques?
  • What does success look like for your project?
    • What's your success rate?

Discuss, dear reader.

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 twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

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