Skip to main content

Les DSL - Visual Studio eXtensibility day

Cet article fait partie d'un ensemble de notes prises au cours du VSX Day. Voir le sommaire ici.

Pourquoi?

La génération de code à partir de schémas permet de travailler sur les schémas, qui sont souvent plus aisés à manipuler et comprendre que du code.

Comment ça marche?

Rôles et outils
  • Le développeur doit avoir VS2005 et les DSL Tools.
  • L'utilisateur de l'outil de modélisation utilise le Package VS 2005 pour générer du code, de la doc et des fichiers de configuration. Il génère le produit pour l'utilisateur final.
  • L'utilisateur final n'a besoin que du produit généré.
En pratique

Modèle de projet "Extensibility / DSL Designer".

Deux projets:

  • Dsl: Contient fichier .dsl qui est le modèle.
  • DslPackage: celui qui sera distribué.
Astuces

Dans le Solution Explorer, bouton "Transform all templates" a utiliser suite à toute modification de modèle sinon ce n'est pas pris en compte.

Se former

Tutoriaux sur le site DSL Factory. (dslfactory.org)

Exemples d'applications

Aspectize

C'est un AGL basé sur les DSL de Microsoft.

Permet d'être réactif: l'application est évolutive.

Prend en charge la distribution des composants. Génère une application .NET.

On travaille sur un modèle logique entités/relations.

DGA

Modélisation d'applications de simulation.

Autoroutes du Sud de la France

Problématique
  • Réponse aux problématiques d'un architecte dont:
  • mise en oeuvre des bonnes pratiques par les développeurs
  • gestion des dépendances binaires
  • non pollution de la logique métier par la "tuyauterie" technique
  • formation des équipes de dév
  • connaissance des services existants par les développeurs

Avant, utilisaient les Enterprise templates, mais cela manquait de souplesse.

Réponse

Software factory: "Candle".

Définition d'un DSL qui permet de découper les composants en couches.

Permet à un développeur non spécialiste de créer par exemple un composant WCF/NHibernate sans en être spécialiste.

Le projet sera mis sur CodePlex pour sortir un SDK des stratégies afin de générer du code.

Comments

Popular posts from this blog

Gift idea : help your loved ones take their IT skills to the next level

You surely know a special person who works in IT. Learn Kubernetes & Docker enables them to quickly ramp up on those two technologies that one doesn't want to miss in 2021. With smoother operations, better scaling and availability, DevOps tooling, containers and containers orchestration smartly solve many problems that developers and system administrators commonly face. Don't let your loved ones face problems in their IT job : offer them the book that takes them from zero to productive in a matter of days. Grab it now! Get the ebook from Leanpub , Amazon or choose from many retailers . Get the print edition from Lulu .  

Learn Meteor book available

I'm pleased to announce the general release of my Learn Meteor book. It is now available as an ebook or print book from various sources: Learn Meteor print (paperback) on Lulu Learn Meteor ebook on LeanPub Learn Meteor ebook on Barnes & Noble Learn Meteor ebook on iBooks Learn Meteor ebook on Kobo Learn Meteor ebook on Scribd Learn Meteor ebook on Inktera Page Foundry Learn Meteor ebook on 24symbols Learn Meteor ebook on Amazon US Learn Meteor ebook on Amazon UK Learn Meteor ebook on Amazon France Learn Meteor ebook on Amazon Deutschland Learn Meteor ebook on Amazon Canada Learn Meteor ebook on Amazon India Learn Meteor ebook on Amazon Brasil Learn Meteor ebook on Amazon Mexico Learn Meteor ebook on Amazon España Learn Meteor ebook on Amazon Italia Learn Meteor ebook on Amazon Netherlands Learn Meteor ebook on Amazon Japan Learn Meteor ebook on Amazon Australia More sources are coming soon for the print version. Learn Meteor has been a fun expe...

Learn ASP.NET Core: read the book as it is being written

     TL;DR: get the discounted book now using the coupon , then get the full version for free. Thanks to the great acceptance of my previous books, ( Learn WPF MVVM ,  Learn ASP.NET MVC and Learn Meteor ), I'm in the process of writing a fourth one. Learn ASP.NET Core - MVC and DI with .NET Core 1.1 using Visual Studio 2017 teaches you how to quickly get coding using that technology. Just as I did previously, I'm publishing it before it is even finished. Would you like to read it? You can get it for half the price: 50% off the book using that coupon (limited to the first 100 readers and up to august 1st 2017): http://leanpub.com/netcore/c/K9mHH0IzfI2F About 50% of the book is already written, yet it is already available for download as an ebook: PDF, EPUB, MOBI: you choose your format. Over the next days I'll be writing the rest of the book, and publishing updates often. The final book will be ready by au...