.NET Fireside Chats - Laurent Bugnion on 'Silverlight 2 Unleashed'
Join the DZone community and get the full member experience.Join For Free
dzone recently had an opportunity to sit down with laurent bugnion, author of ' silverlight 2 unleashed '. in this interview, laurent discusses the origins and future of microsoft's silverlight platform and some best practices for silverlight developers to follow when doing ria design and development.
dzone - tell us a little about what you do at identitymine?
laurent bugnion - i started on the 1st of december 2008 at identitymine switzerland, a new branch of this tacoma/seattle firm. the swiss branch is based in zurich, switzerland, and will be active in whole of europe. i am the very first european employee but we are hoping to expand later.
my exact title is “senior user experience developer”, which means that i am a developer with a strong taste for user experience and graphics design (though i am *not* a designer!). my role is positioned between graphics designers and “hardcore” software developers. it is a coordinator and communicator role, sometimes named an “integrator”. of course i also continue to do a lot of software design, architecture and development in various domains such as silverlight, windows presentation foundation and i remain a developer at heart. i should also start developing soon for the surface platform and windows 7.
dzone - what motivated you to write this book?
dzone - what is silverlight (and how does it differ from wpf)? give us the nickel tour.
dzone - what are some of the hardest problems that developers are trying to solve when it comes to user experience on the web?
dzone - what kinds of features are available in silverlight 2 as compared to silverlight 1?
dzone - have you heard what kinds of new features are in the works for silverlight 3? what features would be at the top of your wish list?
laurent - yes, i am lucky to be part of a group of community experts called the “silverlight insiders” that is kept informed of new developments in the silverlight platform. to belong to this group, i had to sign a non disclosure agreements, for reasons that are easy to understand, so i cannot really comment much on the new features… except for saying that exciting times are ahead and that more will be disclosed at mix09 (microsoft’s web conference in las vegas, in march). scott guthrie publicly commented on some of the upcoming features, such as some kind of hardware accelerations, some 3d support, and many others.
on top of my wish list, i would place a greater compatibility with windows presentation foundation. i think that one of the key reasons why silverlight is going to be successful is the re-use of skills between the richer desktop client application platform, and the slicker and smaller web client application platform. every step that is made in the direction of an even greater compatibility is making me happy.
all in all, i am very pleased with the direction that silverlight is taking.
dzone - explain the difference between what can be done in expression blend vs. visual studio when creating a silverlight application.
laurent - well first it is worth explaining that expression blend is not strictly needed to create silverlight applications. you can develop a full featured application in studio. however, the visual design part is going to be harder, because there is no visual designer support in visual studio yet for silverlight. there is a “viewer” that lets you see the result of what you code in xaml, but that’s it in this version (note that there is a visual designer for wpf that lets you visually edit the user interface).
blend is however more powerful when it comes to designing the user interface. first, it was created with the designers in mind. most commands are the same, or heavily inspired, as in adobe photoshop or illustrator, for example. in fact, this gave blend kind of a bad reputation in the developer community, because many developers are a little afraid of this unusual application. but once you get over this first weird feeling, you’ll discover that it is a very rich application that can teach you a lot about design, about wpf and silverlight. in fact, i really recommend taking an online class or hands-on lab to learn expression blend and even expression design.
so yes, blend is about design of your application, and visual studio is about coding. but since blend can compile code, you can in fact run the application directly from blend. that said, while you can create an application only with visual studio and without blend, this is not possible with blend only. you will need some kind of source code editor, and i recommend visual studio for this purpose. remember that the express edition of visual studio web is free, and lets you create silverlight applications, just like the express edition of visual c# lets you do this for wpf. so you can start at virtually no cost.
dzone - are there any best practices people can follow?
laurent - the best practices for silverlight are, in essence, the same as the one applied to windows presentation foundation, with a twist. the twist is due to fact that wpf is a richer platform, and not everything is available.
the very first thing that comes to mind is the recommendation to clearly separate the presentation layer from the rest of the application. also, this layer should be kept as thin as possible. this can be achievd by using rge so called “model-view-viewmodel” pattern (mvvm), which is very similar to the better known presentation pattern. if it is applied consistently and carefully, this pattern allows reducing the code in the presentation layer to a minimum (so we will have mostly xaml there). this improves testability, makes it easier to maintain, and makes the work in expression blend much easier, for example by allowing to create design-time data very easily. using this pattern, you can develop a whole client application without needing to connect to the web services. the integration step can be done only later. in addition, it allows designers and developers to work on the same application at the same time.
other best practices are really the standard ones used in .net: unit tests (including a really nice unit test framework especially made for silverlight), layering, etc… programming silverlight is really about applying what you already know in .net.
dzone - are there any interesting case studies that you can discuss? have you implemented a recent project using silverlight?
laurent - in my past position, i was working on a very big wpf project, and came to silverlight on my free time. the transition from wpf to silverlight was really easy, especially because i had prior experience with web applications, so it really all fit well together. i wrote silverlight 2 unleashed on my free time as well. the big wpf application we did at the time was really big, and applying the principles of mvvm pattern, separation of behavior and presentation, components, etc… really helped us in the project.
now at identitymine i will also do silverlight projects for a living, but it’s still to early to talk about that.
dzone - who should buy your book?
that said, the book also guides the reader into more advance topics, and we go quite far and broad. where i didn’t have the space to talk in detail about very advanced techniques, i at least gave indications to the reader where he can find more information. a book cannot cover all, but once you bring the reader to a certain point, i considered it my duty as an author to help the reader to continue learning on his own. i think i was rather successful in that way.
dzone - do you have any future books in the works?
laurent - the editor and i are talking about future books, but i must admit that i am still unsure. starting at a new job with many responsibilities, many travels and wanting to keep my family happy are very important things for me. i loved every moment of the writing process (ok, maybe not every moment), but it is a lot of work and i want to consider it carefully before i start again. for those interested to know more about this and other aspects of my work, they can follow me on my blog at http://blog.galasoft.ch and on twitter ( @lbugnion ). i am always happy to meet readers and hear what they have to say!
Opinions expressed by DZone contributors are their own.