Tuesday, July 22, 2008

Silverlight. Day 5.

OK, it's showtime. The mission: deploy a Silverlight application in a production server with WSS 3.0.

The first attemp was made by someone else, and the behavior when the .aspx loads, was that the UI appears just for 2 second, and then, the browser's area went blank. No message, no warning, no nothing.

Firts: set your IIS MIMEs.

Extension MIME Type

.manifest application/manifest
.xaml application/xaml+xml
.dll application/x-msdownload
.application application/x-ms-application
.xbap application/x-ms-xbap
.deploy application/octet-stream
.xps application/vnd.ms-xpsdocument
.xap application/x-silverlight-app

Second: create a virtual directory or site, and put your ag_dummy.html, web.config, \ClientBin and app.xap there. Be sure to stablish the correct silverlight version. I spend more than 3 hours reconfiguring our dev machine to rip of beta 1 and launch beta 2 tools. Luckily no problem was arrised by VS 2008.

Third: open the browser, redirect it to the correct URL and....for a trivial demo you'll get everything fine; in this case there's some data binding that, as always, runs well locally, but when it's time to move...well, it has its tricks.

So, I'm checking the data binding and authentication docs, to see why LINQ can´t reach the DB server.

Monday, July 21, 2008

Silverlight. Day 4.

I found a great tutorial

Free Training for Microsoft® Silverlight™ 2

from AppDev for FREE. Very interesting.

I hope this can give some more light for Silverlight ;)

Wednesday, July 16, 2008

Silverlight. Day 3.

I´m still watching videos to understand more about how to develop a Silverlight app, and in the part 3 of the Blend tutorial by Jesse Liberty there's a step where you apply a style to the button of the chat prototype where the cut & paste really makes me question the UI development.

First, as always that you want some "special shape" button, you need to define the view of its states (generally 3). But why do you need to specify this templates in Visual Studio manually? Why not to apply some Power Point wisdom and have a pallete of predefined shapes to choose from. And if you know about button states, why not have some configuration panel in Blend for this? if you have a UI dedicated tool, let's charge it!

The one great things that I found is this ObservableCollection that works with generics, that can be consumed by a control in a MVC way. That is cool!

Tuesday, July 15, 2008

Silverlight. Day 2.

After the innitial trauma, I decided to read and check some tutorials to understand what is happening with Silverlight.

First of all. Why a new tool for GUI design instead of having it integrated to VS, as usual? Well, after watching the video tutorials related to Blend, its clear that VS UI editor is limited; we have use it just to size forms and put controls on them. But when the clients want some color, and shapes and gradients, etc, the effort to do this with the usual controls is too much.

One aproach is to develop or use a UI framework (thinking in reuse), with controls that have cappabilities to look better. However, the look and feel of these controls are not always the best.

This is where Blend fits OK. This Flashy editor lets you modify and edit almost any visual feature of the controols, and best of all, the specification is made in XML language, in this case XAML.

To have all these features in the standard IDE is too much and usability of VS could be affected. Nice thing is that the same files are used by VS and Blend, so no import utilities are needed.

Now I'm going to try the installation to get my hands dirty ;)

Friday, July 11, 2008

Silverlight. Day 1.

"What the hell is this? Where are the controls? What is this mess inside the project?"

These are my first impressions after I open a friend's example (first thing I saw was a XAML file, then some code, and then some messages about trials), without reading no tutorials or going to therapy, to prepare myself with this 2008 shock. I had the same sensation that I experienced 10 years ago when I wanted to do some UI stuff with Java; no IDE, just some third party tools or code it by hand. Blindness.

My pal told me: "You make the UI with expression Blend".

But why do you need a special tool to manage XML UI definitions? There's no more IDE. This is a MDE (Messy Development Environment).

The apology is based in roles. The designer need something to design and the developer someting to code. But when you make some desktop app you have controls, or a web app you have more controls, why with Silverlight you ain´t have nothing?

(I suddenly remember this song: Two steps behind - Def Leppard)

Now I understand why in the last 3 MS events where they showed this things I felt very upset and confused.

After this non pleasant experience, I believe Flex is a much better platform to make RIAs. No doubt about it.

Wednesday, July 9, 2008

Programming everywhere with anyone

No more need to carry your Server or desktop PC on your back, and your CTR monitor on a second round. Laps & wi-fi let us move; giving us the chance of freedom.

But what about your dev tools? Do you still need to coordinate with your partner to "sync" the code you finish at midnight, just to find out some last minute extra errors?

Can we develop "socially"?

Here are some tools, platforms and services that promise the next dev paradigm. But then, how the work relations are going to be managed? even overseas?

IBM/Rational Jazz
http://jazz.net/pub/index.jsp

codstorm
http://www.codstorm.com/

codeBeamer
http://www.intland.com/

CodeX
http://codex.xrce.xerox.com/en/index.php

SalesForce
http://www.salesforce.com/developer/

http://www.collab.net/