<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Etienne Delattre on Medium]]></title>
        <description><![CDATA[Stories by Etienne Delattre on Medium]]></description>
        <link>https://medium.com/@etjdelattre?source=rss-3ff41ecb6a9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-CSTS-kIWaErf-VxJj9lpw.jpeg</url>
            <title>Stories by Etienne Delattre on Medium</title>
            <link>https://medium.com/@etjdelattre?source=rss-3ff41ecb6a9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:08:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@etjdelattre/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Try out the Cosmos Db change feed]]></title>
            <link>https://medium.com/younited-tech-blog/try-out-the-cosmos-db-change-feed-f2054f41fdca?source=rss-3ff41ecb6a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2054f41fdca</guid>
            <category><![CDATA[net-core-3]]></category>
            <category><![CDATA[azure-functions]]></category>
            <category><![CDATA[azure-cosmos-db]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[younited-credit]]></category>
            <dc:creator><![CDATA[Etienne Delattre]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 12:40:41 GMT</pubDate>
            <atom:updated>2021-01-14T12:40:41.595Z</atom:updated>
            <content:encoded><![CDATA[<p>Cosmos Db is at the core of many of our critical applications. But while most developers at Younited are not far from a Cosmos Db app, we are still on the lower end of the learning curve and recently started experimenting with one of its less-used features the <a href="https://docs.microsoft.com/en-us/azure/cosmos-db/changefeed-ecommerce-solution"><strong>change feed</strong></a>.</p><p>While reading the <a href="https://devblogs.microsoft.com/cosmosdb">Azure Cosmos DB Blog</a>, a recent article by <a href="https://www.linkedin.com/in/lennilobel/">Leonard Lobel</a> got me curious about trying to use the change feed to sync 2 containers (see <a href="https://devblogs.microsoft.com/cosmosdb/change-feed-unsung-hero-of-azure-cosmos-db/">Change feed unsung hero of Azure Cosmos DB</a>). Other teams over at <strong>Younited Credit</strong> have used the Change Feed to varying degrees but in my immediate domain, it’s not used in production yet (as of December 2020).</p><h3>But what does it do?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUH6gEm8hec6WbNkuzrb1Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Markus Spiske</a> on <a href="https://unsplash.com/s/photos/creative-kid?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Azure Cosmos DB is a fully managed NoSQL database service for modern app development. It is a <strong>fully managed and cost-effective serverless database</strong> with instant, automatic scaling that responds to application needs.</p><p>Promise. <a href="https://azure.microsoft.com/en-us/services/cosmos-db/">Microsoft says so</a>.</p><p>The change feed lets you access a record of all the changes that occurred in a particular container. So for each change to any document in the monitored collection, you can get notified and act. You might want to notify another system that the data has changed, or use the new data to update your other collections.</p><p>Let’s look at an example of code of an e-commerce app. We’ll be updating a summary of a Customer’s purchases every time Cosmos detects new purchases by this customer. Why would you do that you ask? To optimize for both read and write performance for the two types of data you need. Your purchases are <strong>written as fast as possible </strong>without being impacted by the <strong>read operations </strong>your app has for them. At Younited we use Azure Functions to monitor feed changes and so does this example.</p><h3>A demo app</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ce33af98d8827d533ba37da5dbded79/href">https://medium.com/media/0ce33af98d8827d533ba37da5dbded79/href</a></iframe><p>A C# representation of a purchase ends up looking like a neat Json document in our Purchases container in Cosmos DB. The <strong>JsonPropertyAttribute </strong>indicates to Cosmos what the document id will be.</p><p>We are going to use the <strong>CustomerId</strong> to find Customer documents to update with the most recent purchases made.</p><p>Each Cosmos DB container exposes a change feed to which clients can subscribe to get notified of new items being added or updated in the container.<a href="https://en.wikipedia.org/wiki/Cosmos_DB#cite_note-4">[4]</a> Item deletions are currently[<a href="https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_items"><em>when?</em></a>] not exposed by the change feed. Changes are persisted by Cosmos DB, which makes it possible to request changes from any point in time since the creation of the container.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f059ff73473d60f527634d8a20033a59/href">https://medium.com/media/f059ff73473d60f527634d8a20033a59/href</a></iframe><p>There’s a lot to unpack here:</p><p>First of all, with a just a <strong>CosmosDBTriggerAttribute </strong>ourAzure Function got the right connector up and running. It then gets triggered for every insertion made to the Purchase collection.</p><p>Notice the parameter <strong>CreateLeaseCollectionIfNotExists</strong>. To work correctly cosmosDB need to create a Lease Collection where it stores the position in the feed at which the Azure Function reading the change feed was last triggered. You can create it manually but it’s fine to let the Function create it.</p><p>Finally, the Customer document for the client making the purchase in question is located, updated with the purchase history, and replaced in CosmosDb. Here having created two purchases they get added to the customer document.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1deada95e033e3d1e424b74539d200ee/href">https://medium.com/media/1deada95e033e3d1e424b74539d200ee/href</a></iframe><h4>Try it out!</h4><p>Taking you so far and letting you actually write code would be cruel. I’ve done the work for you already so why not fiddle with the change feed from that actual example?</p><p>Go to <a href="https://github.com/YounitedCredit/blog/tree/master/ChangeFeedPractice">YounitedCredit/ChangeFeedPractice </a>and clone the code. You will need the Cosmos Db emulator included with Visual Studio or available <a href="https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator?tabs=cli%2Cssl-netstd21">here</a>.</p><p>From there all you need is your favorite IDE to run the azure function and the console app that will create a cosmos db database and all the required collections for you.</p><p>Run the DataGenerator.csproj project console app, run it with the parameter <strong>init </strong>to create the Database and the Collections, then with the parameter <strong>feed </strong>to fill them with mock data.</p><pre>dotnet run --project .\DataGenerator\DataGenerator.csproj --command &quot;init&quot;</pre><p>You can then run the Azure Function to create the <strong>leases </strong>collection and start filling the database with customers and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mV7qLc7VVuR_EDnthmxegw.png" /></figure><p>Feel free to add documents and play around with the whole thing.</p><p>That’s it, you’re equipped to practice with the Change feed. Feel to delve deeper into the topic and see what you can do with it.</p><p>To go further have a look at</p><ul><li><a href="https://devblogs.microsoft.com/cosmosdb/change-feed-unsung-hero-of-azure-cosmos-db/">Change Feed - Unsung Hero of Azure Cosmos DB | Azure Cosmos DB Blog</a></li><li><a href="https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-functions">How to use Azure Cosmos DB change feed with Azure Functions</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2054f41fdca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younited-tech-blog/try-out-the-cosmos-db-change-feed-f2054f41fdca">Try out the Cosmos Db change feed</a> was originally published in <a href="https://medium.com/younited-tech-blog">YounitedTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Voulez vous essayer Windows Terminal avant l’heure ?]]></title>
            <link>https://medium.com/younited-tech-blog/voulez-vous-essayer-windows-terminal-avant-lheure-5b39a20d2ad6?source=rss-3ff41ecb6a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b39a20d2ad6</guid>
            <category><![CDATA[terminal-windows]]></category>
            <category><![CDATA[build-2019]]></category>
            <category><![CDATA[younited-credit]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Etienne Delattre]]></dc:creator>
            <pubDate>Thu, 09 May 2019 07:09:28 GMT</pubDate>
            <atom:updated>2019-06-24T09:39:28.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>Voulez vous essayer Windows Terminal avant l’heure ?</h3><p>Cet article a été publié 9 mai 2019, le Windows Terminal est maintenat disponible en preview dans le <a href="https://devblogs.microsoft.com/commandline/windows-terminal-microsoft-store-preview-release/">Store Microsoft</a>.</p><p>A l’occasion de <a href="https://mybuild.techcommunity.microsoft.com/"><strong>Build 2019</strong></a>, le 6 mai Microsoft a annoncé prévoir la sortie de son nouveau Windows Terminal pour cet été.</p><h3>Que fait cet engin ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N6qvhOcAotSWhgTrHdlaHQ.png" /></figure><p>Hautement personnalisable il permet de maintenir plusieurs terminaux <strong>dans des onglets séparés</strong>. Dans le même outil on peut ouvrir côte à côte Powershell ou un terminal Linux (d’ailleurs Microsoft a annoncé une nouvelle version de son <a href="https://devblogs.microsoft.com/commandline/announcing-wsl-2/"><em>Windows Subsystem for Linux</em></a> pour bientôt).</p><p>On peut ajouter simplement des profils depuis un fichier json, y choisir un thème, la transparence, la taille du cache et bien d’autres choses.</p><h3>Où puis-je le trouver ?</h3><p>Il sera distribué cet été sur le Microsoft Store en version preview et d’ici la fin de l’année en version 1.0. Il faut pour l’instant l’assembler soi-même depuis le repo Open Source de Microsoft à <a href="https://github.com/Microsoft/Terminal">https://github.com/Microsoft/Terminal</a>.</p><p>Rien de bien compliqué, si ce n’est que d’après la communauté pas moyen de le faire marcher sans avoir la bonne version de Windows. J’ai en effet rencontré le problème et j’ai rejoint le <strong>Insider Program </strong>(Release Preview ring) pour mettre Windows à jour à la version <strong>18362</strong>. (les versions sont valides au jour de la publication de cet article)</p><p>Pour le reste le repo, indique comment préparer la solution en récupérant les dépendences (sous-modules git) du projet avec :</p><blockquote>git submodule update — init — recursive</blockquote><p>Il faut que Visual Studio (2017) ait bien les composants <strong>Desktop Development with C++</strong> et <strong>Universal Windows Platform development</strong>.</p><p>Enfin on peut déployer le Terminal sur sa machine ! Il faut pour cela utiliser Deploy To sur le projet <strong>CascadiaPackage</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*s4lFneAp3XTaxT6ST86XIA.png" /></figure><p>Si tout se passe bien, on retrouve Windows Terminal (Preview) dans notre menu démarrer :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*kVgEL8dnjmFr3Za1e7Xwcw.png" /></figure><p><em>Sinon on repart en session trial &amp; error sur github ;)</em></p><h3>More reading please!</h3><p>L’annonce : <a href="https://devblogs.microsoft.com/commandline/introducing-windows-terminal/">https://devblogs.microsoft.com/commandline/introducing-windows-terminal/</a></p><p>Un billet très intéressant de <a href="https://twitter.com/shanselman"><strong>@</strong>shanselman</a> pour débuter avec son propre Windows Terminal : <a href="https://www.hanselman.com/blog/ANewConsoleForWindowsItsTheOpenSourceWindowsTerminal.aspx">https://www.hanselman.com/blog/ANewConsoleForWindowsItsTheOpenSourceWindowsTerminal.aspx</a></p><p>** Merci auxs contributeurs Github qui ont rapidement guidé leurs camarades avec des post comme celui-ci : <a href="https://github.com/microsoft/Terminal/issues/489">https://github.com/microsoft/Terminal/issues/489</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b39a20d2ad6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younited-tech-blog/voulez-vous-essayer-windows-terminal-avant-lheure-5b39a20d2ad6">Voulez vous essayer Windows Terminal avant l’heure ?</a> was originally published in <a href="https://medium.com/younited-tech-blog">YounitedTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The right tool for the job]]></title>
            <link>https://medium.com/younited-tech-blog/the-right-tool-for-the-job-982766615fa9?source=rss-3ff41ecb6a9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/982766615fa9</guid>
            <category><![CDATA[rider]]></category>
            <category><![CDATA[jetbrains]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ide]]></category>
            <dc:creator><![CDATA[Etienne Delattre]]></dc:creator>
            <pubDate>Mon, 05 Nov 2018 09:07:39 GMT</pubDate>
            <atom:updated>2018-11-07T22:44:49.422Z</atom:updated>
            <content:encoded><![CDATA[<p>Quand on est imprégné de .NET l’éditeur qui s’impose est Visual Studio (fat edition), ça va de soi, c’est automatique. Il y a de très bonnes raisons à cela, c’est un environnement de développement complet qui vient avec toutes les extensions Microsoft qui permettent de déployer sur Azure, suivre les changement de code avec Git et j’en passe des milliers d’autre. VS peut tout faire (même sur Mac).<br>Mais Microsoft eux même proposent une alternative nommée Visual Studio Code, alors qu’est ce que l’on peut trouver de plus dans un autre éditeur qui nous améliorerait la vie ?<br>Déjà VS Code est plus léger, plus rapide, il vient aussi avec certaines extensions, mais pas avec tout… bref, pas avec grand chose. Mais au final il répond à d’autre cas d’utilisations, il rend des services aux moments où le développeur veut contrôler manuellement des configurations cachées dans Visual Studio. En contrepartie il demande de se réhabituer à coder sans outils de refactoring poussés.</p><h3>Jetbrains Rider</h3><p>Depuis toujours Resharper me faisait de l’oeil, me rappelant sans cesse que certains des plus beaux moment passés dans Visual Studio l’étaient parce que j’avais les suggestions de code et les options de réusinage que JetBrains offrait avec son extension. En 2016 JetBrains a proposé une version preview de Rider, j’ai vu quelqu’un suggérer que le nom vient de <strong>R</strong>esharper <strong>IDE</strong> et cela résume simplement la proposition de valeur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ik64dfPrfWQOGW6vgINbkQ.jpeg" /><figcaption><em>Riding a Flying Carpet</em>, by <a href="https://en.wikipedia.org/wiki/Viktor_Vasnetsov">Viktor Vasnetsov</a></figcaption></figure><p>Rider, c’est un IDE plus rapide, bien plus rapide. C’est un des points d’attention de l’éditeur : ne pas bloquer le développeur. Sous le capot il est assemblé en Kotlin et détaché de ReSharper (écrit en C#) qui tourne dans un processus séparé.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*0c0CFg2QdfxZtgEl.png" /></figure><p>Toutes les propositions de correction ou les réusinages sont calculés sans bloquer l’interface.</p><h4>Petite liste de fonctionnalités</h4><ul><li>La décompilation de sources externes, et la possibilité de faire du débogage pas à pas ! Pas besoin de serveur de symboles ou d’avoir accès aux .pdb des fichiers à déboguer, Rider mets à disposition du code lisible et permet de s’arrêter et consulter le contenu des variables.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yvb_hR1toD7di-qM.gif" /></figure><ul><li>Le “Find Action” ( Ctrl+Shift+A chez moi ) permet de faire absolument tout sans quitter le clavier. Avec une très rapide description de l’action ou du menu recherché.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/0*NUfqr3F_F2AW_ERU.png" /></figure><ul><li>Une intégration Git mature qui permet de faire bien plus que l’extension Team inclue dans Visual Studio. (cherry picking, rebase, et toutes ces merveilles) Mais un peu plus que ça, il a également un historique local, sorte de Ctrl+Z / Ctrl+Y survitaminé qui fait qu’aucun changement n’est perdu. Combien de fois ai-je annulé des changements pour plus tard me rendre compte qu’il me fallait en garder une partie… Il devient vraiment aisé d’annuler un refactoring sur 80 fichiers, ce qui peut être plus complexe dans Visual Studio.</li><li>Une application multi-plateforme, vraiment. Là où Visual Studio a une version Mac qui est en fait Xamarin Studio avec une couche de peinture neuve, Rider marche sur Windows / Mac / Linux avec les mêmes fonctionnalités. Pas besoin de changer d’habitudes ou de chercher ce qui manque sur Mac, tout est là et au même endroit.</li></ul><h4>Mais je peux toujours déployer mon machin obscur ?</h4><p>Probablement, Rider est compatible avec toute les versions de .NET, et il est prêt pour travailler avec du .Net Core dernière génération.</p><h4>Mais pourquoi maintenant ?</h4><p>Rider passe par des phases d’early access qui permettent à l’éditeur de tester de nouvelles fonctionnalités, et au mois d’août l’Early Access Preview (ou EAP) portait notamment sur la couverture de test continue. Comme le propose DotCover ou le fantastique NCrunch, Rider a maintenant l’option pour faire tourner les tests en continu et détecter la couverture de tests. La référence dans le domaine (Ncrunch) fonctionne à chaque caractère entré, ici Rider lance les tests selon vos souhaits à chaque sauvegarde (petit Ctrl+S) ou à chaque compilation (Build Ctrl+Shift+B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/0*KZSj9KSgHwOzvAhA.gif" /></figure><h4>Alors tout y est ?</h4><p>Bien sûr que non. Microsoft reste la référence sur ses propres produits, et surtout sur l’intégration avec les services Azure pour leurs déploiements. Il existe un Azure Toolkit pour déployer sur Azure depuis Rider, mais pas aussi mature que dans Visual Studio. Pas de possibilité d’inspecter des ressources Cloud en 2 clics depuis l’éditeur ou de consulter les rapports Application Insights dans l’éditeur.</p><h3>Parfait pour moi</h3><p>Rider retient toute mon attention et remplit 90% de mes besoins, je le quitte parfois ponctuellement pour une fonctionnalité bien précise de Visual Studio. C’est le bon outil pour coder avec plus d’aisance et être moins distrait par des boutons par milliers, tout est à portée de mains mais sans être envahissant.</p><p>Pour un peu plus d’infos vous pouvez jeter un œil à une liste de fonctionnalités qui ont retenu mon attention dans le Gist dont le lien est ci-dessous.</p><p><a href="https://gist.github.com/eOkadas/c09cf071001738c88c05f4fc3b4e5570">https://gist.github.com/eOkadas/c09cf071001738c88c05f4fc3b4e5570</a></p><p>Ou bien sûr foncer sur le site de Jetbrains et vous faire votre propre idée avec la version d’essai ou l’EAP qui finira surement courant novembre.</p><p><a href="https://blog.jetbrains.com/dotnet/2018/10/08/rider-2018-3-early-access-program-kicks-off/">https://blog.jetbrains.com/dotnet/2018/10/08/rider-2018-3-early-access-program-kicks-off/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=982766615fa9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younited-tech-blog/the-right-tool-for-the-job-982766615fa9">The right tool for the job</a> was originally published in <a href="https://medium.com/younited-tech-blog">YounitedTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>