Profile cover photo
Profile photo
John Atten
269 followers -
(aka XIV Solutions): The universe unfolds as it will . . . More will be revealed . . .
(aka XIV Solutions): The universe unfolds as it will . . . More will be revealed . . .

269 followers
About
Posts

Post has attachment
Understanding the relationship between the .NET Version Manager (DNVM), the .NET Execution Environment (DNX) and .NET Development Utilities (DNU) is fundamental to developing with ASP.NET 5. In this post we will look at installing and using DNVM, DNX, and DNU on to work with ASP.NET from the command line.

Post has attachment
Understanding the relationship between the .NET Version Manager (DNVM), the .NET Execution Environment (DNX) and .NET Development Utilities (DNU) is fundamental to developing with ASP.NET 5. In this post we will look at installing and using DNVM, DNX, and DNU on to work with ASP.NET from the command line.
Add a comment...

Post has attachment
When working in Node.JS, it might be handy to do some heavy lifting via Postgres to reduce some n+1 / lazy loading issues, especially when pulling data for display. Using some of Postgres’ in-built JSON  functions in conjunction with the JSON data type, we can compose ready-to-use JSON objects before returning the result.

Post has attachment

Post has attachment
The installation process for Postgres on Ubuntu or Linux Mint is, like many things in the Linux world, less than intuitive for new users. As much for my own sake as anyone else’s, I’m going to walk through the steps to getting Postgres installed and configured on a Linux box.

Post has attachment
The installation process for Postgres on Ubuntu or Linux Mint is, like many things in the Linux world, less than intuitive for new users. As much for my own sake as anyone else’s, I’m going to walk through the steps to getting Postgres installed and configured on a Linux box.
Add a comment...

Post has attachment
Because I use Chinook fairly often with Postgres, I decided to make a few mods to the Chinook Postgres script to provide a more native PG experience when using this otherwise handy sample database.
Add a comment...

Post has shared content
Good Morning C# Enthusiasts:

  Interested in C# 6.0? Well, Bill Wagner, author of "Effective C#: 50 Specific Ways to Improve Your C#, 2nd Ed" has put together a great free learning article covering just that.

  Article Title: A Brief Tour of C# 6.0

  Link: http://www.informit.com/articles/article.aspx?p=2270333

  Content Sample:

  Improvements to Existing Features

"I'll begin with a feature many developers thought C# already supported: using the await keyword in a catch or finally clause. Developers might have thought this feature was already supported because the await expression had so few restrictions on where it can be used."

"The C# language team did quite a bit of work in C# 5.0 trying to make async and await work seamlessly with all the remaining features in the C# language. That was a laudable goal, but the reality is that introducing an await expression in a catch or finally clause is very hard on the compiler. The language designers always wanted this feature; it just didn't make the time schedules for C# 5.0. Now, with the new C# 6.0 codebase, the team prioritized this addition to the async and await features. For example, examine this code snippet:"

private async static Task RunAsyncTest()
{
    try
    {
        await DoWebbyThings();
    }
    catch (Exception e)
    {
        await GenerateLog(e.ToString());
        throw;
    }
}

"This method will return a task. If an exception is thrown from DoWebbyThings(), the method returns a task that will eventually return a faulted task. Faulted tasks contain an aggregate exception that contains any exceptions generated during the execution of the task. If the GenerateLog message completes correctly, the AggregateException contains a single exception: the exception thrown by DoWebbyThings(). However, if GenerateLog() throws an exception, the AggregateException still contains a single exception: the exception thrown by GenerateLog()."

"The behavior I've just described is how this works for an await in either a catch or a finally clause. This feature may not change your daily coding experiences very much, but it means that C# more naturally supports async programming in more situations and scenarios. The behavior is consistent with how task objects are processed in other areas of your code."

"Another changed feature is using static members. This is an extension to the using statements that import definitions into the current (or global) namespace. Every C# developer is familiar with the classic using statements:"

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

"Now you can limit the scope of a using statement to a single static class:"

using System.Math;

"Notice that the syntax highlighting shows that System.Math is a class, not a namespace. This new variation of the using statement enables you to reference members of a static class (such as Math) simply by their names:"

var answer = Sqrt(3 * 3 + 4 * 4);

Enjoy the content all.

#CSharp   #CSharpProgramming   #CSharp6   #CSharpTutorial  +C# Corner +C# Tutorial +c# Libaray +Programming.com 
Photo
Add a comment...

Post has attachment

Post has shared content
Wait while more posts are being loaded