Decipher this…

Typescript is a bit insane sometimes… CurrentDescription: KnockoutComputed<IArticleDescription> = ko.computed<IArticleDescription>(() : IArticleDescription => { var defaultDescription = ko.utils.arrayFirst<IArticleDescription>(this.Descriptions(),(x: IArticleDescription) => x.Default); return defaultDescription; }, this); Yes, generics in a javascript language make things a bit messy…  🙂

Unicode and C#

John Skeet put a nice little tweet on the web this afternoon: What do you expect the output of this code to be? https://t.co/RKrtaMTSv9 #MongolianVowelSeparatorFTW — Jon Skeet (@jonskeet) November 26, 2014 I decided to take on his challenge and found out that the code compiled fine and printed out Read more…