Summary: Implementing REST service implemented in (WCF and WebAPI) hosted in WorkerRole

In previous two posts I described the way how to develop and deploy WCF and WebAPI services.  Implementing REST service using WebAPI v2 hosted WorkerRole Implementing REST service in WCF hosted WorkerRole   Bellow are my brief observations and source code attached.   WCF More robust technology stack General purpose, suitable for many different communication…

0

Implementing REST service using WebAPI v2 hosted in WorkerRole

As I wrote in the previous blog post, I spent some time comparing WCF and WebAPI as a frameworks for building the services and deploying them into Azure.   Just to recap, our goal is to build a sample REST service, in this post, using WCF hosted in Azure.    In this blog post I’ll…

0

Implementing REST service in WCF hosted in WorkerRole

I spent some time comparing WCF and WebAPI as frameworks for building the services and hosting them in Azure as WorkerRoles. There were some questions and I decided to implement a simple service in both frameworks just to feel the difference.   Just to recap, our goal is to build a sample REST service, in…

1

WinJS internals: WinJS.Namespace._lazy

In previous blog post I wrote about WinJS._Signal. Today, it’s going to be about another WinJS internal class WinJS.Namespace._lazy.   Problem statement  It’s very common for WWA projects to load many Javascript files (I’m worried to write almost all files) in the main application startup page, default.html. Problem with this approach is that it can…

1

WinJS internals: WinJS._Signal

WinJS contains several useful classes which are unfortunately hidden (starts with ‘_’). In this post we will look at one of them, WinJS._Signal.   A common usage of this class is to manage (completes, cancels, fails) the promise. The promise itself is simple concept. But sometimes it’s awkward to complete it.    Let’s see the…

0

Lessons learned: Unit testing in Javascript

I have to start with the following: “when you write any code which you want to share with others (colleagues, public), please, attach the sample how to use it. The best samples are unit tests, or better, specification tests by example.”   In this post I want to share my feelings I’ve got from unit…

0

WinJS 2.0 Listview tips

As I wrote in my previous post WinJS team greatfully optimized Template rendering. There was also a great post from Kraig Brockschmidt about rendering optimization technics and the most advanced and fastest option was to use two phased item rendering: 1st phase was to show some item content asap – e.g. in case of contact list…

0

WinJS 2.0 Listview performance improvements

I published a post about WinJS.Binding.Template and its low rendering performance here last year. It’s past. With upcoming WinJS 2.0, there is completely new implementation of templates and it rocks!  It was already demonstrated by Josh Williams on //Build 2013 conference but I wanted to re-check it on my own.  I downloaded my example from…

1

NDC Oslo 2013, day #3

TDD, where did it all go wrong General There are different kinds/levels of testing: Unit testing: testing class/method: Helps us to get good design, but coupled to the implementation details Implementation details is going to be changed so that we need to change also our class/method tests => which is expensive and we are lazy…

1

NDC Oslo 2013, day #2

It was busy day. Very busy. Information overload! This time, it’s be very fact-based, just programming stuff. RequireJS It helps to solve the following problems: Developers needs to ensure that all dependency JS files are loaded in the correct order => it results in a dependency map, hard to handle, manange, etc. Only god knows…

0