Michael Sevestre Software Artist

12 October 2016

Understanding the publish_nuget option in AppVeyor

This post is the first post in a series dedicated to AppVeyor. AppVeyor is a powerful and flexible cloud base continuous delivery service for windows. We started using AppVeyor for a continuous integration project a few days ago and the... Read more about Understanding the publish_nuget option in AppVeyor

Continuous Integration NuGet AppVeyor .NET
08 October 2016

When to use ConfigureAwait(false) with async/await

I have been using the Task-based asynchronous programming model introduced in C# 5 (.NET 4.5) for a while now and it truly changed my life (at least as far as writing async code is concerned!). No more callbacks and non-linear... Read more about When to use ConfigureAwait(false) with async/await

C#
06 October 2016

Avoid duplicate XAML with resources and styles in Xamarin.Forms - Part 1

In a previous post, we learnt how the {x:Static} markup extension could help us remove magic strings and numbers in XAML. This was a great first step in avoiding code duplication. However the resulting XAML was still very verbose and... Read more about Avoid duplicate XAML with resources and styles in Xamarin.Forms - Part 1

Xamarin XAML
03 October 2016

How to pass parameters to a function binding in Angular components

The new component syntax introduced in Angular version 1.5 is nothing more than a special kind of directive with some very sensible defaults. As a reminder, a component uses an isolated scope uses a controller uses the controllerAs syntax can... Read more about How to pass parameters to a function binding in Angular components

Angular Javascript
30 September 2016

Use XAML compilation to increase Xamarin.Forms apps performance

With version 2.0 of Xamarin.Forms, it is now possible to optionally compile the XAML code into intermediate language with the XAMLC compiler. This feature is well documented on the Xamarin website. As a reminder however, here are the main advantages... Read more about Use XAML compilation to increase Xamarin.Forms apps performance

Xamarin XAML
29 September 2016

Use static markup extension to retrieve constant values in XAML

It is in general considered good practices to avoid magic strings and numbers in your code. Instead, it is recommended to define some sort of constant values in your app that you can reference throughout your code. That being said,... Read more about Use static markup extension to retrieve constant values in XAML

Xamarin XAML
27 September 2016

Set platform specific values in XAML with OnPlatform

In a previous post, we looked at how you could set platform specific values with the Device.OnPlatform<T> static method. Today we will see how we can achieve the same result by using the <OnPlatform> markup in a XAML file. The... Read more about Set platform specific values in XAML with OnPlatform

Xamarin XAML
24 September 2016

Property initialization vs Expression

I had an issue yesterday with some code I found on the internet and realized that the implementation was probably not exactly what was intended. Let’s look at a much simplified version of that code that illustrates the problem: public... Read more about Property initialization vs Expression

C#
22 September 2016

Execute target os specific actions from your Xamarin.Forms shared code

Xamarin.Forms is gaining momentum in the Xamarin world. It allows you to build beautiful, performant native apps for iOS, Android, and Windows. You create pages and views code once and have them rendered natively on all targeted platforms. If you... Read more about Execute target os specific actions from your Xamarin.Forms shared code

Xamarin C#
20 September 2016

Reduce syntaxic noise with es6 arrow functions

The arrow function notation (=>) available in ES6 can help you reduce a lot of the syntaxic noise that we had to cope with in the past. This is especially true for function just returning objects such as most action... Read more about Reduce syntaxic noise with es6 arrow functions

Redux Javascript
06 December 2012

Clearing out the content in content_for

In one of our app, the content_for is used to set the page title from a helper method. It looks something like this: def title(*parts) unless parts.empty? content_for :title do parts.unshift(app_name).join(" - ") end end end which when used in... Read more about Clearing out the content in content_for

Rails Ruby
14 November 2012

Null coalescing operator in rails

Null coalescing operator? What is that? In C# that’s the ??. According to the C# specs, ?? is a binary operator that evaluates first ?? second by doing Evaluates first if first != null returns first Otherwise evaluates second and... Read more about Null coalescing operator in rails

Rails Ruby C#
10 August 2012

Open source is fun

I have been using open source projects for most of my career but never really took the time to contribute back. Using the good old excuse ‘I don’t have the time to do that’, I felt at peace with myself.... Read more about Open source is fun

Open Source Github

Copyright © Design2Code Inc. 2017