Typescript for the C# developer

Over the past couple of years, my most popular talk that Iv’e taken around user groups has been the one where I describe what Typescript is, and how it relates to the backend C# developer.

Iv’e found that many back-end devs who would like to jump into client side development, are often put off from doing so simply beacuse of the percieved mess that the JavaScript eco system is in at present, and let’s be fair it’s not a compleatly unfounded reason either, beacuse JavaScript is bleeding at the edges in a great many places.

My latest incarnation of this talk (As of the date I write this post) was Tuesday the 10th July 2018 at Duke Studios in Leeds, for the Hainton Recruitment groups, most recent .NET developers UG event.

hainton-leeds-july-2018

This time around, as well as getting asked if I could provide the slides, I also got asked if I could recomend some further self teaching resources too, as most of what had been looked at, was now either quite far out of date, or just not relevent anymore.

My primary learning tool when I first got to know and started to use TS, was the online playground, where in real time you can experiment with TS code, and watch the exact JS code it will produce, you can find that here:

http://www.typescriptlang.org/play/index.html

Iv’e also always found that the documentation is also of a very high standard compared to some projects Iv’e seen, you can read the docs here:

http://www.typescriptlang.org/docs/home.html

Finally for online resources, Basarat Ali Syed (http://www.basarat.com/) has made his world famous TS guide book available for free via Git-Books here:

https://basarat.gitbooks.io/typescript/content/docs/getting-started.html

The Typescript community is now extremely large, as a result there are a great number of books available on the subject, some of the better ones Iv’e seen are the Packt and Apress books aimed at beginners (CLick the pictures for the product page):

The books themselves are aimed squarely at the beginner Typescript dev, and are not aimed at the C# developer, but the language is so easy to get to grips with, you almost don’t need any guides esp if your used to C#

For those who would like a copy of the slides from my talk, you can grab a copy from this blog here:

https://shawtyds.files.wordpress.com/2018/07/typescript-talk.pdf

At some of the talks I also do a quick demo of some TS code generated by the dotnet SPA templates, but not the regular ones, the templates I use are the ones Steve Sanderson published for his info on using the NuGet JavaScript SPA services.

The really quick way to get started with this is as follows:

1) Install the latest dotnet core runtimes/sdk on the machine your using, you may also need to install a recent build of NodeJS too if you do not have an up to date one.

2) Once dotnet core is working, at your command line type :  dotnet new –install Microsoft.AspNetCore.SpaTemplates::*

3) Once you have the templates installed (You only need to do steps 1/2 once), at your command line create yourself a folder to work in, move into that folder and type : dotnet new aurelia

Once dotnet has finished scaffolding your app, then you should only need to type “npm install” to make sure you have all the javascript stuff required, although at this point you can actually load the project into Visual Studio or VS-Code, either of which should actually do the NPM and dotnet package restore steps for you.

When Time permits, I’m actually going to write a series of articles going through the creation of an Aurelia app from start to finish, based on this template, so keep an eye out for those.

Finally, before I go, my session at Leeds didn’t get recorded, however, the version of the talk I did at Developer, Developer, Developer Scotland in Febuary 2018 did, if you want to watch that version, then you can watch it on you tube right here:

Hainton recruitment have asked me if I’ll do this same session in the near future at thier next Newcastle-upon-tyne,  event, keep an eye on my Twitter and Linked-In profiles for the details of the date if you want to come along.

Shawty

Advertisements

Build Automation for Dotnet Core Apps

In a previous blog post I documented how I built a “Build Server” to deploy .NET 4.6+ apps on windows 2012 server.

While this worked, and was a reasonably good way to do it, It wasn’t without it’s problems. During it’s use for example I frequently had timing problems, where just one little change to some JS code would cause NPM to overrun a time out by half a second, or where an SSH connection timed out just slightly before the build server completed it’s login, and on top of all that, it regularly used to take about 15 minutes to build and deploy the project it was being used for. Continue reading “Build Automation for Dotnet Core Apps”

Creating a .NET 4.6.2 Build server on Server 2012

Given that I’ve not written anything original for over a year and a half (More on that in another post) and given I had an hour to spare, I thought I’d quickly go over what I’ve been up to this weekend (Feb 2nd 2017).

As part of a new project I’m involved in, I needed to create a new CI/Build server, and since I’ve had a Dell C6100 sat in the server rack not been used to it’s full potential, I decided now was a good time to put it into use.
Continue reading “Creating a .NET 4.6.2 Build server on Server 2012”

Resharper Succinctly Released

My 5th E-book in the Succinctly series of free E-book by .NET tools vendor Syncfusion was released yesterday.

The subject of this book is the Visual Studio developer add-on “Resharper” written by Jet-Brains.

If your curious as to what it does and how it can help you become a better developer, you can download the book for free here:

https://www.syncfusion.com/resources/techportal/ebooks/resharper

Happy reading

Shawty

DDD North 2012

Most of you in the UK development community will be aware that DDD North is quickly approaching, and you may remember I wrote about the first ever occurrence of this event last year when I attended it at the university of Sunderland.

Continue reading “DDD North 2012”

Dang is it 2012 already?

So here I am again, starting off yet another post, with the phrase “Yes I am still Here” 🙂 which seems to be the norm these days.

As some of you have noticed, I didn’t even get round to doing my year end wrap up this year, but there was a good reason for that. This year for the first time in ages I actually got a full 3 weeks or so to myself, and boy did I need to de-compress.

Continue reading “Dang is it 2012 already?”

DDD North

Oct2011 023I had the pleasure to attend the very first ever Developer Developer Developer North community event to held in the North East of England last Saturday (8th October 2011) and I have to say what an Incredible day it was.

Continue reading “DDD North”