Scott Hanselman

Gaming at 16 by 10 on a Widescreen LCD

October 29, 2005 Comment on this post [12] Posted in Gaming
Sponsored By

I just couldn't help myself. When I found a series of "stackable coupons" for Dell.com that made the UltraSharp 2005FPW 20.1" WideScreen LCD only $394.94, including shipping, I had to act. Let me tell you, while it's a 16:10 ratio (not 16:9) you wouldn't believe the widescreen gaming joy. DVDs look nice also. The monitor also pivots and lets be see a complete 8"x14" sheet of paper within Word which makes writing prose, for me, very enjoyable.

GuildWars

Gw009

Half-Life 2 Lost Coast

D2_lostcoast0006

Now playing: Kanye West - Gone (Featuring Consequence & Cam'ron)

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

Does a Type Implement an Interface?

October 28, 2005 Comment on this post [9] Posted in NDoc
Sponsored By

There was an interesting discussion on a mailing list I'm on recently, where a fellow asked: "Given a Type object representing a given class, how do you determine if that class implements a specific interface?"

To be clear, he's not asking how to do:

(C#)
if (myType is IWhateverable) { ... }

He has an object of type System.Type and he wants to see if that type is IWhateverable. He could do this:

(VB)
If myType.GetInterface("MyClass.IWhateverable") IsNot Nothing Then

But he feels, perhaps rightfully so, that the string literal stuck in there is distasteful.

One fellow said, why not run through the interfances with a helper function:

(VB)
Function IsImplemented(objectType As Type, intefaceType As Type) As Boolean
    For Each thisInterface As Type in objectType.GetInterfaces
        If thisInterface Is interfacetype Then
            Return True
        Next
    Next
End Function

The next said, why not:

(C#)
if (typeof(IWhateverable).IsAssignableFrom(myType)) { ... }

Which isn't bad, but the semantics of IsAssignableFrom are a little more "inclusive" than you might want. From MSDN:

"Returns true if the c parameter and the current Type represent the same type, or if the current Type is in the inheritance hierarchy of c, or if the current Type is an interface that c supports." 

I suggested this, which is his original idea with the string literal coming from elsewhere:

(C#)
if (myType.GetInterface(typeof(IWhateverable).FullName) { ... }

However, it's a shame there isn't a built in:

(C#)
if (myFooInstance.IsImplementationOf(typeof(IWhateverable))) { ... }

Which, arguably, would just do what the IsImplemented definition at the top of this post would do internally! :)

UPDATE: Wesner says I'm using IsAssignableFrom wrong. Yes, I think I reversed the semantics there. Fixed. It's still up in the air if it's more correct or faster as he implies it may be. Check the comments for the ongoing thread.

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

Infoworld SOA Executive Forum

October 26, 2005 Comment on this post [0] Posted in Programming
Sponsored By

I'll be at the Infoworld SOA Executive Forum November 7-8 in NYC. I'll be on two panels:

November 7th 3:30pm - 4:30pm - Technology: A Developer's-Eye View of the Services Infrastructure
Development is different in an SOA environment; this session explains how and why, and what the implications are for enterprise development management.

  • Moderated by Jon Udell, Lead Analyst, InfoWorld
  • Jim Culbert, VP, Engineering, Avicon Group, Inc.
  • Peter Yared, Founder & CEO, Active Grid, Inc.
  • Scott Hanselman, Chief Architect, Corillian
  • Tim Ewald, Architect, Mindreef Software
  • Furrukh Khan, Director of Technology, Collaborative for Applied Software Technology, Ohio State University

Tim'll be there, so that's cool as sparks always fly when we are chatting about angle brackets. There's some pretty interesting folks on the panel, including the former CTO of Sun's Liberty Initiative so expect some good technical fun.

November 8th 10:45am - 11:30am - SOA Application Case Studies (presentation)
In a pair of case studies from banking and health care, two practicioners roll up their sleeves and show you how they've used SOA in mission-critical situations.

  • Moderated by Jon Udell, Lead Analyst, InfoWorld
  • Scott Hanselman, Chief Architect, Corillian
  • Furrukh Khan, Dir of Technology, Collaborative for Applied Software Technology, Ohio State University

Furrukh and I were mentioned separately in a recent Infoworld article as examples of SOA in practice. We'll be presenting our thoughts on WS-* and our solutions during a second breakout on the 8th.

 

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

Getting Email updates of ComputerZen.com

October 22, 2005 Comment on this post [0] Posted in Musings
Sponsored By

You may not being into the whole RSS Aggregator thing.

Some of you have asked me how you can have new posts to ComputerZen.com emailed to you.

If you WOULD like new posts emailed to you, you can using FeedBlitz. It's free, there's no spam, and you'll only get new posts posted by me.

Click Feedblitzbadge to subscribe to ComputerZen.com posts via email.

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

October 2005 - My Reading List - Home

October 22, 2005 Comment on this post [8] Posted in TechEd | Speaking | Movies | Africa
Sponsored By

CIMG3818

When Mo is asleep, I read. She's on the couch right now, and I'm going through a Philip K. Dick anthology. I have a similar pile at Work, so I figured I'd post each.

First, here's my Home reading stack that's next to my bed.

  • The Carpet Makers - An amazing English translation of a German Sci-Fi now-classic, brought to the states by Orson Scott Card. Told in a series of short vignettes, it's the story of men who weave carpets entirely out of the hair of their wives and daughters. They weave only one their whole lives, and their sons live off the proceeds as they start work on their own hair-carpets.
  • Lion's Blood and Zulu Heart - A novel told in an alternate reality where Africans colonized the Americas and enslaved the poor Irish and other white Europeans. The author has done excellent research on the Ethiopians and Zulus, two of my favorite cultures. He sprinkles in Arabic, Ethiopian and Zulu phrases which makes my reading fun. I need to get back into Arabic, I've lost it all since my few terms in college. Sean McCormack speaks good Arabic if I remember correctly. I remember the lettering, but all my verbalization has atrophied.
  • Second Variety, Paycheck and Other Classic Stories by Philip K. Dick - Two great collections of short stories from one of the greatest sci-fi writers of our time. The book(s) are always better than the movies. You'd be surprised how many movies have been made from Philip K. Dick stories. (Screamers (made from Second Variety) was a better movie than most folks gave it credit.)
  • Learn Zulu and Teach Yourself Zulu - We're going to teach the baby English (both), Spanish (me and possibly an immersion school), Zulu[Ndebele] (Mo, possibly me, and her family) and Baby Sign Language, so I need to learn more than just the present tense.
  • Ilium by Dan Simmons - I'm having a hell of a time getting through this tome. Simmons is brilliant, and the whole Hyperion series was a great read. However, this thing is like reading molasses. I want to make it through though, because the idea of a large-scope sci-fi space opera based on Homer's Iliad is such a great premise. I may need to re-read the Iliad first since 11th grade English class is a distant memory.
  • The Ringworld Throne by Larry Niven - Ringworld, check. Ringworld Engineers, sure, it was good. Ringworld's Children, it's waiting in my Audible.com queue. But this one also doesn't flow. I have high hopes for Ringworld's Children, but I need to read this one, number three first. Plus, the whole Known Space ethos is so wonderful.
  • Altered Carbon - Actually, I'm halfway through this on my iPod. Truly, Audible.com's Light Listener program is a fantastic deal. If you want a referral, email me. We'll each get a free month. This is a brilliant book where humans travel between planets by "resleeving" themselves in other bodies, some artificial, while putting their own bodies on ice.
  • Software Factories - I made it 3/4 of the way through this before I gave my talk at TechEd, but I need to mark a few pages and highlight a few things. I may actually just give up and read Kathleen Dollard's Code Generation in .NET instead.
  • Be Prepared! A Practical Handbook for New Dads - My wonderful friend Heidi gave me this book. I thought it was just a gag, but it's such a great book written with just the right dry humor that makes the point. It's actually by stand-up comic Gary Greenburg and illustrated by his wife. I'm done with this book, so I need to get it out of the stack and move it into the baby's room.
  • the zen of css design - The book that supports the concepts introduce by the site that more engineers used to convince more managers that CSS can work TODAY. Highly recommended. It's in-depth analysis of a number of themes from CSS Zen Garden and how they worked their magic. I'm about 75% through this. It's a quick read, but more of an "while on the can" book, if you know what I mean.
  • Neuromancer by William Gibson - The one that started cyberpunk. I got about 25% into this when I mentally declared that Snow Crash was the greatest book ever and that any thing Neal does should be immediately bronzed. I'll make it through though, but the fact that the cyberpunks in this book written in 1984 use phone booths does make it hard to stomach. But, who ever said predicting the future was easy?
  • What to Expect in the First Year - Mo's on month eight of the other book, and I'm ready to start teaching him the alphabet. But first, we need to make it through the eat, poop, sleep stage first. Not to mention the little "being born" detail.
  • When the Wind Blows by James Patterson - I really enjoyed Maximum Ride, and I heard that this book was the adult expansion of that story. The sequel to When the Wind Blows is The Lake House, but it's being brutalized in the Amazon reviews, so I may shy away. However, Maximum Ride WAS a great book. We'll see. Plus, ALL the Alex Cross books are fantastic.
  • Servant of the Bones by Anne Rice - This is kind of Interview With an Archangel, if you're familiar with the more Tom Cruisey/Brad Pitty Anne Rice book. This one has no vampires and is very biblical and historical. I'd have to ask Patrick Cauldwell if Anne got her details right, but it's moving along at a nice clip.
  • Democracy Matters by Cornel West - More people would listen to Cornel if he'd shave his moustache, but regardless, the man is thoughtful. A fairly balanced and weighty monologue on ways America could pull it together.
  • The Goal - I've false-started with this book more times than I care to say. I'm going to need to just do it in a weekend, because it's not working to read it piecemeal. It introduces the Theory of Constraints that Eli has built a consulting empire around. "It is based on the fact that, like a chain with its weakest link, in any complex system at any point in time, there is most often only one aspect of that system that is limiting its ability to achieve more of its goal."
  • Rainbow Six by Tom Clancy - Man, oh, man, if only I was graceful enough to be a super spy or Navy SEAL. I'm 600 pages into this 900 page beast and it's getting good. You could literally beat a man to death with this book, and that may just be the dramatic conclusion of this international terrorist thriller.
  • Juneteenth by Ralph Ellison - I loved Invisible Man. Ellison's work, along with Richard Wright, got me into African-American History, which I almost majored in before this whole computer thing worked out. When I heard that Juneteenth had been found and finished posthumously by John Callahan, Ellison's literary executor, I immediately bought a copy. However, here it's sat, at the bottom of the stack since. Sigh.

I'll post the Work stack next week during lunch.

Now playing: Alicia Keys - Goodbye / Butterflyz

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.