Hello! I'm working on an article on ASP.NET 5 with AngularJS2 and Typescript, using Visual Studio. Planning to be publishing it this Sunday. Good to be back in the game :)
JMK NI
Posts
-
Guess who's back? -
Hacking Team claims terrorists can now use its tools...for free
-
Stupid ComputerI risk getting run out of town for suggesting this, but how about a Macbook? They are really well built, great for running Windows on, and the customer service is incredible. I don't think any of the other manufacturers even come close!
-
Typescript - waow!Sure. Well, first of all I am working with a .net back-end, so doing all of my coding in Visual Studio (2015 RC). Visual Studio 2015 + ReSharper + Web Essentials which provides a really nice environment for working with Typescript. For my API, server side, I am using ServiceStack. ServiceStack have created a Visual Studio plugin to generate a DTO in Typescript based on your API. You write your API, run this program, and you have an interface for every Request and Response object in your API. There is a Typescript project called DefinitelyTyped. It provides type definitions for all of the frameworks I am using, which for this project are: - AngularJS - Angular UI Router - Angular UI Directives for Bootstrap - AngularJS Toastr This means that you can write your client side code in Typescript, and everything is strongly typed. Here is an AngularJS service I wrote earlier today in Typescript:
import CreateAdjustmentRequest = JobManager.Model.CreateAdjustmentRequest;
import AdjustmentResponse = JobManager.Model.AdjustmentResponse;
import HttpPromise = angular.IHttpPromise;
import GetAdjustmentRequest = JobManager.Model.GetAdjustmentRequest;
import GetAdjustmentsRequest = JobManager.Model.GetAdjustmentsRequest;
import UpdateAdjustmentRequest = JobManager.Model.UpdateAdjustmentRequest;
import DeleteAdjustmentRequest = JobManager.Model.DeleteAdjustmentRequest;export class AdjustmentService {
httpService: angular.IHttpService; constructor(httpService: angular.IHttpService) { this.httpService = httpService; } getAdjustment(request: GetAdjustmentRequest):HttpPromise<AdjustmentResponse> { return this.httpService.get('/adjustments/' + request.Id); } getAdjustments(request: GetAdjustmentsRequest): HttpPromise<AdjustmentResponse\[\]> { return this.httpService.get('/adjustments/all/' + request.JobId); } createAdjustment(request: CreateAdjustmentRequest): HttpPromise<AdjustmentResponse> { return this.httpService.post('/adjustments/create', request); } updateAdjustment(request: UpdateAdjustmentRequest): HttpPromise<AdjustmentResponse> { return this.httpService.post('/adjustments/' + request.Id, request); } deleteAdjustment(request: DeleteAdjustmentRequest): HttpPromise<boolean> { return this.httpService.delete('/adjustments/' + request.Id); }
}
-
Typescript - waow!I've been using Typescript over the past couple of days to build a new AngularJS app, and waow! It is amazing! If you work a lot with Javascript, and you haven't had a chance to play with Typescript, please check it out. That is all!
-
Slowly, I'm turning to the Dark Side...One word, typescript!
-
Immigrants in France trying to 'sneak' into the back of a lorryMental! - https://www.youtube.com/watch?v=syyl0gfNDRE[^]
-
Programming interview problems11?
-
I can't believe Microsoft developed a cross platform code editorNo, really... https://twitter.com/stroughtonsmith/status/593462573497982976[^]
-
Speaking of TFS...When I said:
JMK-NI:
figure it out that way
I didn't specify a timeframe :laugh:
-
Speaking of TFS...Just get Wireshark/Fiddler on the go, MITM yourself (they use HTTPS) and figure it out that way. Then write any UI you want.
-
TFS On Line UIIt is a total shambles!
-
UK CodeProject Pints?So I'm thinking, us UK CodeProject users could agree on a location/time and all go out for a pint, and talk about things? How does that sound?
-
Holy s**f - Xamarin Forms!Quote:
Looks like someone has a lot of money to waste.
Nope! I have a Xamarin Indie subscription for iOS and Andriod ($50USD, about £30GBP per month). I am basically writing a Xamarin Forms for Windows Phone app inside Visual Studio 2013, and am debugging everything inside Visual Studio using the Windows Phone emulator to test. As far as I can tell, you can basically develop a Xamarin Forms for Windows Phone for free, it's when you want to target the other platforms that it starts to cost money. I have a Mac Mini, which cost me £400. So I develop for Windows Phone with Xamarin Forms in Visual Studio, and when I am happy, push that code over to my Mac. Then I use Xamarin Studio on my cheapo Mac to push the same code to the Android and iOS emulators on that mac, and it works, which is insanely cool! I am the definition of shoestring app development. I would love to go for pints with you guys though, we should totally make that happen! :)
-
Holy s**f - Xamarin Forms!I've been getting my head into Xamarin this weekend, and wow! It's freaking awesome! I've always been torn on Xamarin, because I believe there's a real value in being able to write code natively, using the native programming language/framework etc for that platform, and have viewed as Xamarin kind of a cop-out developer wise. I thought that using .net to develop for Andriod and iOS showed an unwillingness to learn. But after playing with Xamarin and Xamarin Forms for a few days, I am f***b**ing sold! Being able to write one codebase targeting Windows Phone, iOS and Android is just incredible! Batman...er I mean Xamarin![^]
-
Say what you like about SchwarzeneggerSay what you like about Schwarzenegger, but he totally hits the nail on the head here[^] Obviously the context is bodybuilding, but I believe it totally applies to programming...or basically anything.
Arnie:
When you’re out there partying & horsing around, someone out there at the same time is is working hard, someone is getting smarter, and someone is winning. Just remember that.
-
Final PhaseThe next version of this week will take you to the land of milk and honey...it may disrupt the space-time continuum...but don't worry about that, it's gonna be great! :beer:
-
Final PhaseThis week failed QA though, we can't ship it until next week!
-
Why monday comes in programmers lifeI don't have to think about Monday for another two whole days! That's, like, forever...right? :suss:
-
MysteriesDidn't he already solve the DB Cooper case?[^]