Trouble Learning Silverlight? -- maybe your scope is too large

It seems every day on the Silverlight.net forum somebody is having trouble getting "Hello World" to run in Silverlight. On the surface, that wouldn't seem unusual, because it's something new. But then I look at the post and have to ask myself what is really going on.

Why is it that everyone feels they must without a doubt have to learn Silverlight from the standpoint of the Alpha? It must be the masochistic side of software developers or something. We know there's pain involved in learning, so why don't we make that pain just as bad as we can possibly imagine?

Compare with me what is necessary to get going in the two versions of Silverlight currently available:

Silverlight 1.0

  • Download the 1.0 SDK, pull out the Silverlight.js file and place it somewhere handy
  • Open the Online SDK in a browser window in case you need it
  • Find one of many 1.0 tutorials, and within 5 minutes have "Hello Silverlight" running in a browser
  • Start-to-finish, if this takes more than 20 minutes, it's because you had an old version of SL on your machine and the refresh is kicking you around the desk.

Silverlight 1.1 (and some of this really is unnecessary, but not the way many people are approaching it):

  • Download and install VS2008 Beta 2, however long that may take you (this may not be the proper order, I haven't done it)
  • Download and install the 1.1 SDK, including the Visual Studio project pieces
  • Download and install Expression Blend 2, the 2nd August preview
  • Find a tutorial or spend a bunch of time building a project in VS, then opening it in Blend
  • Add one line of xaml and press F5, or save the project and go back to VS and press F5
  • Start-to-finish unknown... you're interfacing Silverlight/Blend 2/and VS2008  two of which are Beta and one Alpha.

Note that for the average 1.1 learner posting I've seen, or worse yet "Introductory" Tutorials out there, I've left out steps such as connecting up to a web service in their .NET language of choice, or including ASP.NET Ajax in their project, or LINQ.

So what is the desired result?

Driving down this path, are we trying to learn Blend 2, or VS2008? Maybe, but you can do both outside the pretense of learning Silverlight.

We've all connected to Web Services using our Language-o-choice, and anyone that's wanted to has had ASP.NET Ajax around long enough to play with it.

Is any of that really necessary to be included while trying to write "Hello World" onto a web page using Silverlight??

I say no, and here's my reasoning:

There's nothing you learn in 1.0 that's not directly transferable to 1.1

xaml is xaml, and what Blend 2 creates, personally I'd think you want to be able to read -- let's see a show of hands for anyone that is writing web applications using .NET 2.0 that knows nothing of html... that's a ridiculous thought, yet for some reason I think people are jumping on the 1.1 bandwagon because they think they don't have to learn xaml. Well, ok, but keep my cell number on speed dial for consulting when you get wrapped around the axle :)

My thought is spend the 5 or 10 minutes getting "Hello Silverlight" up on your browser using 1.0 ... bask in the warm glow of having done so... go grab a Coke and some M&Ms and dream what you want to do next.

A hint for you... the Silverlight.js file that you downloaded with the 1.0 SDK? ... that's the same one you need for 1.1 And the xaml you just produced that's giving off the warm glow? That'll work in 1.1 as well!

Do I think everyone should stay in 1.0? Absolutely not... and at some point, I'm going to be blogging my adventure through the maze of getting 1.1 applications up and running, but for now, even with 34 canvases on 36 pages of Silverlight 1.0 on my site, I think there's a lot of 1.0 and xaml goodness still to be absorbed, so I'm not ready yet.

Time is the only commodity we have to deal in, and as my wife keeps telling me "Nobody is going to add more hours to the day just for you, buster". Personally, I'd rather spend the time I have available being productive learning Silverlight via 1.0 than pooting around trying to get all those other toys playing well with each other just so I can display "Hello World".

As always, this is just my opinion, and you know what they say about opinions :)

If you want to test my 5 or 10-minute to "Hello World" concept, take a look at my tutorial links below. The first one doesn't explain a thing. All you do is copy/paste and run.

There are other tutorials as well, some of which are on the Silverlight.net site and some are linked on SilverlightCream.com using the tag "Tutorial".

It's supposed to be fun so when it stops being fun, change what you're doing :)

Stay in the 'Light!

Silverlight Web Articles I've tagged - My Silverlight Articles - My Silverlight Tutorials - SilverlightCream

 

 

posted @ Friday, August 24, 2007 2:11 PM

Print

Comments on this entry:

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Steve Clements at 8/24/2007 3:01 PM
Gravatar
Hi Dave
Thats a very interesting point. I personnally have not even looked at 1.0, I have been watching silverlight and decided the time to get involved was when VS 2008 beta 2 came out recently and jumped in on 1.1. I dont really have a reason why I did this - i certainly like being able to use C# with silverlight and I have a feeling that 1.1 with the framework is the way to go. I do have more interest in what the powers of dot net will be in silverlight e.g. LINQ, database calls etc. Dont see many tutorials for that?

With Blend learning XAML is certainly taking a back seat (I am gonna start readin WPF unleashed which should shed some light!) but kinda think that will just slot into place the more I use it?!?

A different point; why are there 2 versions? I have my theory but no real clue or reason?

Cheers
S

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Dave at 8/24/2007 3:27 PM
Gravatar
Hi Steve...

I don't dispute the advantages of using .NET, LINQ, etc... I've got one app that I'm waiting to do until I get to 1.1 so I have database access.

I guess I see wiring all that up as follow-on to actually learning what you can do in Silverlight.

It seems to me if you've got all these plates in the air spinning and are having trouble keeping them all going then possibly you should decrease the number of plates.

I can show someone how to display "Hello Silverlight" on an existing html or aspx page in under 10 minutes, why not start with the basics first :)

As for learning xaml slotting into place, are you really reading the xaml you're producing or are you just producing it with Blend? I'm not saying it's a bad thing, but at some point I feel you're going to have to read that file, but maybe I'm wrong...

2 versions... I have a theory as well, but for whatever reason, we have them, and the people that are having trouble might keep in mind that 1.0 is Beta and soon to be Released, and 1.1 is still Alpha... bottom line...

Thanks for the note, and Stay in the 'Light :)

-Dave

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Daniel at 8/25/2007 12:32 AM
Gravatar
Hi Dave
I have a trouble at Silverlight 1.1. when i set TextBlock.Text with Chinese characters then i got some strange characters in browser.

is there have a issue in Silverlight 1.1 or how could i solve this problem.

PS:mine file encoding is UTF-8.

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Dave at 8/27/2007 1:28 PM
Gravatar
How are you handling the font? There are only so many fonts inherently supported by Silverlight. The font list has probably increased since the last time I checked on this, but I'm fairly certain you're going to have to have your font on your site to make this work.

On my site, I've got some articles that use Glyphs, for instance the checkbox and radio button article, or the GlyphMap utility. Both of these have fonts that are called out at run-time that are local to the page. If you look at those, that may help.

If it doesn't, send me an email and we can figure it out

-Dave

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Daniel at 8/27/2007 11:17 PM
Gravatar
dave, tks a lot.

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Prakash at 8/30/2007 3:14 AM
Gravatar
Why is microsoft not making silverlight development on vs2005 easy? I had to dowload lot's of patches and other things to make it to run as manged silverlight. Though making it work using js was easy. It seems that microsoft is making silverlight to sell vs2008. And also differences between xaml used in .net3.0 and silverlight is not clearly highlighted!

# re: Trouble Learning Silverlight? -- maybe your scope is too large

Left by Dave at 8/30/2007 6:01 AM
Gravatar
Of course you understand this is just my opinion, but I don't expect 1.1 to go to a full release until VS2008 is out as well. During that time period, everything in that are is either Alpha or Beta.

If they'd release SL 1.0 now then there would have to be full-up VS2005 support, and I think it's pretty obvious that's not the plan.

This goes directly back to my comments about learning 1.0 or 1.1 As you said "...making it work using js was easy". So completely get inside 1.0 and do the Happy Dance :)

WPF and Silverlight are a bit mixed in the area of xaml and that's unfortunate.

-Dave

Your comment:



 (will not be displayed)


 
 
 
Please add 3 and 6 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011