Concept First Blog

IT consultancy, web development, data analysis and application development

TypeScript: Setting Up and Settling In

Recently we’ve been considering the move to something better than JavaScript for front-end development, offering type safety and organisational constructs that more readily support robust code.

I spent a week exploring TypeScript (a typed ‘superset’ of JavaScript) as a candidate in Visual Studio 2015. Here are the issues and fixes I encountered along the way, relating to initial setup, libraries, unanticipated runtime/compile-time behaviour, and general comments (focusing on issues that are not obvious from TypeScript documentation).


Setup TypeScript is installed by default in VS 2015. However, for non-ASP. NET projects configuration is NOT automated and various elements need to be added to the .csproj file for correct build and debugging behaviour. Integration with ASP. NET projects is easy, and project configuration takes place automatically following the inclusion of the first .ts file.

Using Library Code Declaration files (typings) are required to consume libraries such as JQuery from TypeScript code (acting like C header files), and these are available for popular libraries via NuGet (DefinitelyTyped is a popular repository). Dependent on configuration, declaration files in a project will be located automatically by IntelliSense.

Unanticipated Runtime/Compile-time behaviour Despite the appearance of a statically, strongly typed language like C#, there are still limitations to the compile time warnings that TypeScript provides. The initial appearance of more safety than you are actually getting can result in unanticipated runtime behaviour.

Benchmarking Antibiotic Homogeneity Index Using the Rx-info Define Platform

Through our ongoing collaboration with Rx-info and our continued development of the Define Platform we’ve recently been involved in an exciting area of antibiotic research within the NHS. Consultants at the Leeds Teaching Hospitals NHS Trust and researchers at the University of Leeds have been exploring whether wider diversity in antibiotic use could stabalise and maybe even reduce antimicrobial resistance.

Software Conservatives and Liberals

I ran across a great article again, one I originally read six month ago, written by Steve Yegge (Googlier, used to work at Amazon, outspoken about many design topics), and remembered how great it was:

I won’t ruin the article for you, but I think this is a very valuable way to look at your style of software, and to take this into account when choosing work for customers. You may end up working in a way that wouldn’t be your first choice, but at least being aware of divergent outlooks can warn you about where there is likely to be disagreement and push back on design choices.

If you like those posts, most of his other posts are definitely worth reading, I especially liked execution in the kingdom of the nonus.