Open a dialog from VM using Events

This is a quick summary of how I open a dialog box from the view model. There are other ways to do this (as noted in previous postings), but this is easy, easy to maintain and puts most of the logic in the view model.

Continue reading
Posted in .NET Core, C# 8 | Tagged | Comments Off on Open a dialog from VM using Events

Xamarin.Forms Shell

Focus on Xamarin.Forms Shell – the new way to create great Xamarin.Forms applications. We go in-depth with Shane Neuville, a Senior Developer on the Xamarin.Forms team.

Shell Forms Introduction
Project Board
Xaminals
Xappy
Shell Login Sample
Gastropods

Posted in Essentials | Tagged | Comments Off on Xamarin.Forms Shell

Mark Price – C# & .NET Core

Mark Price, author of C# 8 and .NET Core 3.0 Modern Cross Platform Development talks about… well about everything .NET A fantastic exploration of what is new in C#, .NET Core, Blazor, and much more,

Posted in .NET Core, C# 8, Essentials | Tagged | Comments Off on Mark Price – C# & .NET Core

Xamarin Coding Standards

There are many best practices in writing Xamarin. Here are some that we’ve canonized where I work…

👍 By convention the identifier for the ViewModel is vm

😠 Do not assign more than one page to a view model. Generally speaking: it should be one page to one view model

Continue reading
Posted in Essentials | Tagged , , | Comments Off on Xamarin Coding Standards

C# Coding Standards

Let’s face it, most coding standards are arbitrary. The key to a successful project, however, is not which standards you follow, but that you are consistent.

Here is a partial list of the C# coding standards my team uses and advocates. Most of these are industry-wide conventions and thus using them will ensure that your code is easily readable by people who are not you. (Many thanks to Adam for letting me post this here)

👍 use PascalCasing for class names and method names.

public class ClientActivity 
{ 
    public void ClearStatistics() 
    { 
        //... 
    } 

    public void CalculateStatistics() 
    { 
        //... 
    } 
} 

Why: consistent with the Microsoft’s .NET Framework and easy to read.

👍 use camelCasing for method arguments and local variables.

public class UserLog 
{ 
   public void Add(LogEvent logEvent) 
   { 
    var itemCount = logEvent.Items.Count; 

    // ... 
   } 
} 

Why: consistent with the Microsoft’s .NET Framework and easy to read.

Continue reading
Posted in C# | Tagged , , | Comments Off on C# Coding Standards

Shawn Wildermuth

Shawn Wildermuth has been tinkering with computers and software since he got a Vic-20 back in the early ‘80s.

As a Microsoft MVP since 2003, he’s also involved with Microsoft as an ASP.NET Insider and ClientDev Insider. You may have taken one of his more than twenty courses on Pluralsight

He’s authored eight books and innumerable articles on software development. You can also see him at one of the local and international conferences he’s spoken at including TechEd, Oredev, SDC, NDC, VSLive, DevIntersection, MIX, Devteach, DevConnections and Dev Reach.

He is one of the Wilder Minds. You can reach him at his blog. He’s also making his first, feature-length, documentary about software developers today called “Hello World: The Film”. You can see more about it here.

Posted in Essentials | Tagged | Comments Off on Shawn Wildermuth

Mads on C# 8 Design

Microsoft’s Mads Torgersen– Lead Designer of C# — talks about creating programming languages and what’s new in C# 8. Do not miss this one!

Overview of C# 8.0: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8

The wonderful bridge toll tutorial on pattern matching: https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/pattern-matching

Brand new blog post by Mads on adopting nullable reference types: https://devblogs.microsoft.com/dotnet/embracing-nullable-reference-types/

The “9.0 candidate” milestone on csharplang – the long list of potential features for C# 9.0. Clearly we won’t do all of them!: https://github.com/dotnet/csharplang/issues?q=is%3Aopen+is%3Aissue+milestone%3A%229.0+candidate%22

Posted in C# 8 | Tagged , | Comments Off on Mads on C# 8 Design

C# 8 Nullable Types

I recently released a two-part course on C# 8. The first part is for beginning programmers. The second part is for intermediate to advanced programmers.

This post is the first in a series that focuses on the new features in C# 8.

I recently had Mads Torgenson on my Podcast. Mads is the lead designer of C#. I asked him what the most important new feature of C# is, and he replied (somewhat to my surprise) Nullable Types.

Every one of us has crashed and burned on the dreaded “object reference” exception. Null Reference types are designed to avoid these by expressing which objects might be null and having the editor issue a warning if you create an instance that might be null and try to dereference it.

Let’s look at an example…

Continue reading
Posted in Essentials | Tagged , , | Comments Off on C# 8 Nullable Types

Jon Galloway!

Microsoft’s Jon Galloway talks about the .NET Foundation and about .NET Core. As always with him, an amazing conversation.

.Net Foundation

Posted in .NET Core | Tagged | Comments Off on Jon Galloway!

C#8 De Principiante a Experto Parte 1

https://www.udemy.com/course/c8-de-principiante-a-experto-parte-1/?referralCode=B42A8109B7D1EDEA89F6

Posted in Essentials | Comments Off on C#8 De Principiante a Experto Parte 1

C# 8 From Novice To Expert Part 2: Intermediate & Advanced

https://www.udemy.com/course/c-sharp-8-from-novice-to-expert-part-2/?referralCode=809A63CDCB8F76856AEA

I look forward to your feedback. Please, tell a friend!

Only $39.99 with this coupon: DISCOUNTCSHARP. Expires 11/15/2019

Posted in C#, C# 8 | Tagged , , | Comments Off on C# 8 From Novice To Expert Part 2: Intermediate & Advanced

C# 8 From Novice to Expert – Part 1 Released to Udemy

Part 1 assumes no prior programming experience.

Click here

Posted in Essentials | Tagged , , , , | Comments Off on C# 8 From Novice to Expert – Part 1 Released to Udemy