For our September meeting we will do some lightning talks. You can't miss it. These are some of the talks we'll have.
Expression Design – Lee Goodaman
Rx Framework – Ali Shafai
Debugging Memory Leaks – Miguel Madero
Dashboards – Chris Anderson
Html-XAML Converter - (not confirmed)
New Network Stack – Paul Glavich
Silverlight with Azure – David Burela
Flex - (not confirmed)
The best is that we can still make some room for yours. Lightning talks can be the perfect opportunity for virgin speakers to have a quickie without worrying for having to prepare for an hour long performance. Experienced presenters will definitely have something to say and 10 minutes is the perfect time to deliver a Wow demo.
If you want to speak, just leave comment, reply in the mailing list or shoot me an email. If you’re not sure of what to speak about we can bounce some ideas.
Validations
Behaviours
Using Blend
Sketchflow
Designer/Developer Workflow
Games
MVVM
Animations
Making your app look good
Testability
Architecture
Design Tips
Integrating Silverlight with non-.NET Backends
Making money with Silverlight
Scaling RIA Applications
RIA Services
Debugging in Silverlight
Finding and Avoiding Memory Leaks
Tools for Silverlight
The coolest thing that you found last week
Creating iPhone apps using MonoTouch and Silverlight
As always, we’ll see you on the first Tuesday of the month (September 1st) at the Crown Hotel. Try to get there early and leave late. The talks start at 6:30, but we meet half hour before to get some beers and have a chat. After the presentations we usually have dinner and discuss further the topics of the day.
This month Jose Fajardo from Cynergy Systems will talk on “Don't lose site of what's important, Interactivity and Experience” at the Crown Hotel. Here are all the details:
Crown Hotel 162 Elizabeth St Sydney August 4th. 6:00 pm for drinks, 6:30 for the talk Use the registration tool on the top of the SDDN Site.
Patterns, Frameworks, MVVM, Prism, MEF, these are all great aides to helping us deliver a RIA solutions, BUT what they all lack is a designers perspective. Experience has shown me that the majority of a project is spent in xaml and creating interactivity through animations and styling. The view model is lean and clean BUT the view layer through evolutions of the WPF/Silverlight technology has gotten much heavier and more complex. I want to walk through with you the new features in SL and Blend from the perspective of bring order to the chaos in our view layer, and in so doing helping extend our frameworks to be relevant for designers.
This month Ali Shafai will talk on Silverlight, Prism and Unity and Miguel Madero will do a mini presentation on a less attractive, but important topic, Security in Silverlight at the Crown Hotel. Here are all the details:
Crown Hotel 162 Elizabeth St Sydney July 7th. 6:00 pm Use the registration tool on the top of the SDDN Site.
Ali will be building a LOB application with Silverlight 3 using prism (with MVVM) and will be showing how to use Unity to inject the dependencies into your classes. The application will have the skeleton of a minimal prism application.
I will also share some of my findings on more advanced topics such as:
dynamically creating views
region managers and how to use them
best practices on wiring events
loading essential data before application loads
showing a splash screen while the essential data is being loaded
tricks on styling your controls beyond what you thought possible
How to break the application into smaller assemblies
Ali Shafai started programming a few months before he could touch a computer, during this time, he was the programmer, the program and the computer. Then he got his hands to real computers and learned COBOL, PL/I, BASIC, C, Prolog, X86 Assembly, C++, Object Pascal, C# and Python in that exact order. He can still remember the first program he wrote and the joy he felt writing it. He moved to Sydney in 2001, was introduced to XP, TDD, CI and some other acronyms. In 2004 the company he was working for (EDI) won the 2004 Consensus Software Award and Microsoft Realizing Potential Award, he then joined forces with Chris Anderson and Mark Wallis and formed Peer Placements, a software talent management company. He is still enjoying programming and does freelance software development. His latest joy is Silverlight/Prism/Unity.
Miguel will show in several demos different Application Security concerns specific to Silverlight Applications commonly overlooked. He will teach us how to avoid being hacked and protect our data with some basic tips. These are some of the topics covered in this lightning talk:
Common Hacking Techniques
Security as an Aspect
End to end data protection
UI Level Security
Authentication Mechanisms
Authorization and User Context
Service Level Security
Miguel has been programming for fun for the last 15 years when he realized that it was better to play with QBasic and Pascal than Prince of Persia. He found out that he could actually get some money out of this hobby so he started a couple of web companies 5 years later and then a Development Shop before moving to Australia to work for Readify where he’s now having fun coding some of the coolest projects in Australia. He discovered Silverlight two years ago and it’s still keeping him busy and entertained.
UPDATE 18/05/09: this is the link for the event, please register before the meeting and be sure you have Live Meeting installed on your computer. Some people have asked me about the place and how is this a Virtual Event. We’ll be using this tool called Live Meeting that allow us to interact with audio, video and share the desktop, polls, Q&A, etc, but rather than trying to explain what Live Meeting is, you can just try it tonight. Just register and follow the instructions.
SDDN it’s doing great after several meetings and trainings in Melbourne, Adelaide, Perth and Sydney we decided to try something a bit different that will give the opportunity to everyone to participate. Including designers and developers from Canberra and other cities, where we have not done any events yet.
When and Where?
May 18, 2009 at 9:00 pm Sydney Time. This will give enough time to everyone in the West Coast to get home, have dinner and be ready for the meeting. We’ll do it through Live Meeting. I’ll update this post with the link ASAP.
Format
Instead of the typical presentation, we decided to have an open discussion around different topics. Each topic will have a different moderator who will do a brief introduction and open the floor for discussion. The moderator won’t be answering all the questions, he’s just a facilitator for the group, but also another participant with experience in the discussed topic. We’ll have three different topics during the meeting.
Who will participate?
Everybody that has an interest in Silverlight can attend. This is a space for Designers and Developers. In the last meetings we had a bigger presence of developers, but we’re really targeting both audiences, so you can expect topics of mutual interest.
Our next meeting is on Tuesday the 5th of May in Sydney
What's on?
This meeting we will see Chris Anderson (blog), from Peer Placements will be discussing advanced styling in Silverlight for both developers and designers. Topics will cover styling strategies, tools, advanced xaml techniques, fashions, and a discussion on designing user experiences.
Jordan Knight (Blog) from Readify will run through the exciting new features in Silverlight 3, and demonstrate how you might use them in a real working reference application. This in depth session will cover perspective 3D, pixel shaders, navigation features, out of browser and much more. Other concepts like Model-View-ViewModel, dependency injection, unit testing and designing template friendly (read designer friendly) applications will also be touched upon.
WIN!
Attendees will have the opportunity to win a copy of the full Expression 2 suite, worth $1000!
When and Where?
The date and time: Tuesday May 5 at 6:00 PM for a 6:30 PM start.
The venue is the Pyrmont Bridge Hotel, Level 2, Pyrmont, NSW. See map for details.
Attendance is FREE, but please RSVP by entering your details in the registration in the registration tool on the site (http://www.sddn.org.au) or send an email to info@sddn.org.au.
Who will this group interest?
The focus of the group is not just on developers. Traditionally developers have had great community support, whereas designers not so much… now that Silverlight 2 is out we plan to change this.
Silverlight is as interesting for developers as it is for designers. Due in part to Silverlight’s excellent separation of design and development concerns we have new problems to solve around finding the best ways to work together.
To this end the SDDN will facilitate an ongoing discussion and promote the development of ideas and best practices for anyone who works with Silverlight.
To register interest head over to http://www.sddn.org.au. Use the registration tool in the header of the site.
Ya había mencionado un post a la introducción de Jeff Wilcox a la herramienta escrita por el mismo y la actualización a SL Beta 2 y los templates tanto de proyecto como para las Clases de Prueba. Después de usarlo me he topado con varios know issues, que esperamos se arreglen para cuando liberen Silverlight 2.0, pero ningún showstopper. Todo correo muy bien y las pruebas hechas con TFS, escritas para los objetos de negocio o para WPF son fáciles de migrar.
Dada la frecuencia en que tenemos tareas Asincronas en SL, necesitamos también soporte para poder probar estas. Un ejemplo tipíco es un WebRequest. En este caso lo veremos para un Servicio Web para el cual ya previamente agregamos la referencia. Este es el code snippet que les servirá para darse una idea de como crear este tipo de pruebas.
[TestClass] public class ServiceClientTest:SilverlightTest{ [TestMethod] [Asynchronous] public void GetTest() { ServiceClient client = new ServiceClient(); client.GetCompleted += client_GetCompleted; client.GetAsync(); }
void client_GetCompleted(object sender, GetCompletedEventArgs e) { // Do something with e.Result; // Call this when done this.TestComplete(); } }
Decoramos con TestClass y TestMethod como en todas nuestras pruebas, pero agregamos el atributo Asynchronous a nuestro TestMethod. Esto hará que el framework se quede esperando a que otros threads terminen su chamba. Así que no tendremos que detener nuestro TestMethod y esperar a que nuestro webService obtenga una respuesta y lidiar con la sincronización. En algún momento se deberá mandar llamar a nuestro metodo client_GetCompleted y ahí haremos los asserts necesarios con el resultado. Al final, para indicarle al Testing Harness que ya terminamos debemos de llamar el metodo TestComplete. Si no hacemos esto, nuestra prueba se colgara. En caso de que exista alguna excepción y nuestro handler nunca se mande llamar, el framework se dará cuenta y marcará la prueba como fallada. Justo como se espera, funciona bien y es realmente simple.
Espero y les resulte útil.
Algo adicional que quisieran tomar en cuenta es que si van a mandar llamar a un WS desde SL tendrán problemas por Cross Domain Calls. Por más que configuren su servidor correctamente con el ClienteAccessPolicy.xml correcto va a fallar ya que por default las pruebas corren directamente sobre un archivo y no sobre un WebSite. Lo recomendable es en su website agregar una referencia a su proyecto de pruebas para que corran en el mismo contexto o al menos dentro de un WebServer de tal forma que pueda hacer Cross Domain Calls.
En mi último post olvide uno de los links seguramente más importantes, sobre todo si tienen ya una aplicación en Beta 1.Seguramente tendrán algunos problemas al compilar para el Beta 2. Les sugiero ver las página de las diferencias y buscar los cambios. Por ejemplo a mi me salía el error 'System.Windows.Media.Animation.Storyboard' does not contain a definition for 'GetClockState', simplemente busque en ese docucmento GetClockState y decía "Storyboard.GetClockState has been changed to GetCurrentState", cambie el metodo y listo, he seguido los mismos pasos por cada error y en cuestión de minutos tengo migrados proyectos de Beta 1 a Beta 2. Uno de los que no me aparecio es un cambio en el ResourceDictionary.Add que ahora espera un parametro más, fuera de ese todos los cambios necesarios para la migración los he podido hacer con apoyo de esa página.
Espero que la migración de Beta 2 al release sea al menos así de simple. Finalmente este producto ya tiene una licencia GoLive desde el Beta 1, lo que básicamente significa que podemos poner las aplicaciones de Beta 2 en producción y la migración para nuestros usuarios será sencilla. No necesariamente significa que no abrá cambios en el API, pero seguramente serán minímos y Microsoft proveerá un documento con guías de como migrar.
Algo de lo que se esperá para el release, entre otras tantas cosas, es un control dropdownlist/combobox. De momento no lo tenemos, pero puede ser indispensable para muchas aplicaciones que quisieramos poner en producción aprovechando el GoLive License. Yo hice un control, es algo muy básico, pero funciona bien. Posiblemente en un próximo post ponga el código. Si alguien lo necesita dejeme un mensaje.
Van a encontrar más en el post de Scott, pero les resumo lo que me parece más importante.
Integración de controles al download de SL2 (ayudando a reducir el tamaño de tus .xap).
Soporte en Blend para editar Templates de Controles. Esto es una gran ventaja para diseñadores, ya que antes tenían que codificar mucho XAML.
Visual State Manager (VSM), sirve para controlar y definir templates para los diferentes estados de los controles y realiza también transiciones entre estos estados por nosotros. Por ejemplo un botón presenta un cambio en su template entre el estado normal y mouseover o pressed. Se cuenta con gran soporte de parte de blend para diseñar o modificar cada state, similar a como hacen los objetos en flash :)
Incluye un nuevo Visual Tree Helper para buscar los elementos, navegar entre padres e hijos.
Los que tengan aplicaciones que usen video, se beneficiaran del Adaptive Streaming, que en base al hardware y bandwidth del cliente descargará un contenido distinto.
Diferentes mejoras en el área de red, harán de SL un ambiente de programación más flexible. Por ejemplo, Duplex Communication permitirá que el servidor envíe información al cliente. Por otro lado el soportte para crear Proxies, obtener recursos de REST URIs o consumir servicios de JSON nos darán aún mayores opciones para interactuar con servers de una manera simple.
SP1 Beta para VS 2008
Este release incluye bastantes mejoras al framework recientemente liberado. No hay que olvidar que es un beta, sin embargo, tengo que agregar que funciona muy bien y la tecnología que estan integrando en este SP1 tiene ya mucho tiempo desarrollandose, inclusive antes de liberar el .NET Framework 3.5 y ha llegado a un punto de madurez en el que ya vale la pena meterse más a fondo a lo que viene, especialmente el MVC (más de esto luego).
Para información detallada pueden leer el post de Scott Guthrie y descargarlo de aca. Algo de lo más sobresaliente a notar (al menos para mi) es:
C# ahora te muestra errores semanticos tan pronto como los escribas, en lugar de esperar a que compiles
El tan esperado EntityFramework, digamos LINQ to SQL para aplicaciones complejas, un ORM de verdad.
MVC Framework, el nuevo paradigma de desarrollo web para ASP.NET (más info luego).
ADO.NET Data Services (Astoria) es una librería que permite facilmente ofrecer y consumir servicios tipo REST, basandonos en un DataContext
Un Routing Engine, usado en el MVC framework y ADO.NET Data Services (Astoria) para tener links bonitos como miweb.com/products/categories/beverages en lugar de links feos como miweb.com/ListaProductos.aspx?listBy=category&category=beverages
Performance Improvements para VS 2008, que realmente ya estan cubiertos por este HotFix desde Febrero.
Client-only Framework subset, nos permite desarrollar una aplicación de escritorio que se enfoque a un subset del framework, de tal forma que nuestros usuarios no tengan que instalar el framework completo (sin ASP.NET y otras cosas que no necesitan). Las aplicaciones desarrolladas para este subset correran de la misma forma en el framework completo. Básicamente hicieron un installer más pequeño que te instala los assemblies más comunes para el escritorio y en VS 2008 restrigen tus referencias a sólo esos para garantizar que tu app pueda correr en la versión reducida.
Mejoras a WPF en performance, data, nuevos efectos e Interoperabilidad con Direct3d.
MVC
Es la manera en que Ruby on Rails y muchos otros frameworks trabajan actualmente. Sin caer en polemica respecto a cual será mejor, tengo que decir que a mi me gusta mucho el estilo MVC ya que creo que provee una importante separación de responsabilidades y nos deja con un diseño más limpio, sin embargo el estilo de ASP.NET de siempre, seguirá siendo una buena opción, sobre todo para aplicación más simples donde consideren que no valga el esfuerzo adicional (principalmente el capacitar a la gente). Espero en otro post poderme extender más en el tema de MVC.
SQL Server 2008 RC0
Ya liberaron el primer RC del nuevo motor de Base de Datos de Microsoft. Lo malo es que esta version (RC0) esta disponible solo para socios de Technet, puedes ver más info aquí o si eres socio ir a descargarlo, de lo contrario esperar al RC1.
Jeff Wilcox publico un artículo respecto usar su Test Harness para Silverlight. Resulta bastante sencillo, pude migrar una serie de pruebas unitarias que corrían en el escritorio y correrlas desde un Silverlight Library sin problemas. Es bastante simple.
Descarga los templates de proyecto y clase de pruebas y copialos los paths de templates de VS.
%userprofile%\Documents\Visual Studio 2008\Templates\ProjectTemplates
%userprofile%\Documents\Visual Studio 2008\Templates\ItemTemplates
Agrega un Test Project a tu Silverlight Application o Library.
Agrega una referencia de tu app o librería a tu proyecto de pruebas.
Pon tu proyecto de pruebas como Startup Project y listo. F5 y estarás corriendo tus pruebas.
El hacer las pruebas es muy similar a las que ya conocen, mismos atributos como ExpectedException, TestMethod, etc. Hasta el momento yo sólo he probado presenters y cuestiones del modelo incluyendo conexiones a WebServices desde Silverlight, abstrayendo el uso de la interfaz de usuario, sin embargo, podemos crear pruebas para interfaz de usuario. Para más información vean el post de Jeff.
Algo que lamentamos no tener actualmente es la integración con Visual Studio y Team Foundation Server, para poder organizar nuestras pruebas en Test Lists y ver los resultados en nuestro Test Result Window y desde ahí levantar bugs o mejor aún el integrarlo con nuestro servidor de Builds. Jeff comento que pronto publicara respecto a esto ultimo.
Una gran noticia es que Silverligth estará disponible para Mobile Devices, hay un par de sesiones en MiX 08 que hablan de esto. Lamentablemente no tengo los links directos, pero los pueden buscar facilmente. Hay empresas que ya han desarrollado algunas aplicaciones con esta nueva tecnología. Una de ellas es Stimulant que desarrollaron una aplicación para redes sociales (más). La aplicación de WeatherBug es otro ejemplo.
Otra de las buenas noticias es que no esta limitado a Windows Mobile, sino que se agregará soporte para Nokia. Según algunas de las presentaciones de Mix 08 más adelante existirá soporte para otros dispositivos, posiblemente el IPhone dependiendo del esquema que Apple use para su SDK.
Para los que no pudimos ir al MIX08, parece que no nos perdimos de mucho. Tal como dice Ballmer en su entrevista con Guy Kawasaki, "este no es el mundo de conferencias de hace 15 años cuando cuanto tipos como Guy y yo empezabamos, estas importaban en el sentido de ser la única manera de obtener el contenido, hoy las conferencias son mucho de comunidad y los aspectos únicos de las relaciones, pero el contenido se propaga, se hace disponible para todos en la web"
Un post que tenía algo pendiente. Antes que nada tengo que hablar de que hay aquí para mobile, aunque aún no vemos claro, no tenemos demos, ni nada, podemos ir viendo un video del MEDC donde muestran lo que viene de Silverlight for Mobile Devices.
Ahora si volviendo a lo que ya podemos usar. Brevemente introduzco Silverlight como un mini-WPF que usa mini-XAML que puede correr como un plugin para el browser (si, cualquier browser tal como hace Flash) o en diferentes dispositivos, obviamente Windows Mobile como muestran en el video anterior y ojala y más adelante en otros dispositivos similar a como hace Flash Lite. Viene en dos versiones, una para JavaScript (actualmente en 1.0 Release Candidate) y otra para .NET (actualmente en 1.1 Alpha Refresh). Las versiones suenan un tanto raro, ¿por qué tenemos un 1.1 y el 1.0 aún no sale? Bueno ya ven como es Microsoft si tuvimos un 3.0 cuando no cambio nada y un 3.5 cuando hubo cambios hasta en el compilador, lenguaje e IDE, pero esa es otra historia. La diferencia se puede resumir en que 1.0 es Javascript y soporte para video y el 1.1 es Soporte a lenguajes .NET, parte del Framework y el CLR y lenguajes dinámicos (más todo lo del 1.0 claro).
Ya en la práctica lo hemos encontrado bastante recortado, aunque no es una limitante para poder realizar aplicaciones interesantes. Por ejemplo no tenemos una buena suite de controles, aunque podríamos usar de terceros, actualmente GOA y los de Telerik (wow) tienen algunos demos disponibles, este será un mercado en el que entraran muchos más adelante, por otro lado, podemos crear nuestras animaciones y dibujos en XAML, seguramente usando Expression Design y consumirlas desde Silverlight esto ofrece grandes posibilidades. La razón por la que sólo tenemos un control textbox un botón y figuras básicas es porque MS ha decidido mantener compacto el instalador (para poder decir "ocupa casi lo mismo que Flash").
Otra de las grandes ventajas es que lo podemos programar usando .NET y sí así es, tendremos CLR también en la Mac y no sólo en una MacBook con Intel y Vista instalado, sino con Mac OS.
Actualmente podemos programar para Silverlight usando JS o .NET desde VS 2008 usando un plugin y aprovecharemos las mejoras que trae el nuevo IDE para depuración e intellisense para Javascript también para Silverlight importando unas librerías.
Esto necesitas para configurar tu ambiente de desarrollo:
-Scrip# un compilador de C# para generar JavaScript en lugar de Lenguaje Intermedio. Nos podrá ayudar a crear librerías para consumir desde Silverlight 1.0 o para interactuar con otras partes de la página.
Para más información sobre la dirección que tomará este producto, vean el Blog de Scott Guthrie donde explica más a fondo las diferencias entre 1.0 y 1.1, el uso de Javascript, .NET y lenguajes dinámicos, pueden encontrar muy buenos ejemplos en http://www.silverlight.net/ y como siempre más en http://www.google.com/
No puedo cerrar sin decirles que vean popfly.com un sitio hecho en silverlight que nos permite hacer mashups, vale la pena. Sólo pidan su invitación, les llega en un par de días y empiecen a jugar un poco con esto. Espero luego subir algunos blocks y ejemplos de mashups que haré para Roller.