Excellent rest met de WebAPI #TechDaysNL
De PowerPoint slidesExcellent rest met de web apifrom Maurice BeijerEn hier staat de bron code. Enjoy!
View ArticleUnit testing code depending on the ASP.NET WebApi HttpClient
In a previous post I showed how to unit test an ASP.NET WebAPI Controller. But with a REST service there is both a client and a service component. Assuming for a moment the client part is also written...
View ArticleLIDNUG: Excellent REST using ASP.NET WebAPI material
Thank for attending the LIDNUG: Excellent REST using ASP.NET WebAPI session earlier today. The session recording is available here. The PowerPoint slides and sample code are also available for...
View ArticleDisplaying local times using the HTML5 element and Moment.js
One common problem with displaying local dates an times in a browser is that you get no information about the current time zone a browser is in. The browser will tell you the preferred language through...
View ArticleUnit testing a ASP.NET WebAPI 2 controller
Earlier this year I wrote a blog post about how to unit test ASP.NET WebAPI controllers. It turned out that in order to do a good job of testing the public ApiController methods you would need to quite...
View ArticleChoosing the right abstractions
Choosing the right abstractions can be hard. Lets take a good look at the next piece of code. 1:publicclass WrongAbstraction 2: { 3:publicvoid Execute() 4: { 5: IEnumerable<Product> products =...
View ArticleAngularJS and loading data over HTTP
When creating an AngularJS controller that depends on some data that needs to be loaded over HTTP it’s really tempting and easy to just inject the $http service into your controller and load the data...
View ArticleX things every JavaScript developer should know: scoping
I see a lot of developer with a C# or Java background adopting JavaScript as well these days. Not that it should be a big surprise, lots of business applications are developed as client side browser...
View ArticleX things every JavaScript developer should know: use strict
In the previous blog post I explained that you should normally use an Immediately-Invoked Function Expression (IIFE) to give variables function scope. That works fine as log as we remember to declare...
View ArticleX things every JavaScript developer should know: Truthy and falsy
One thing that developers often confuses with JavaScript is Boolean logic. It seems to simple, you use for example an if statement and put a boolean expression in there and if it is true the block of...
View ArticleTracking dirty objects in AngularJS
Tracking if an object is changed or not in AngularJS is quite easy but is also part of the UI so not always completely obvious. If you want to see if there are changes the $scope or the model will not...
View ArticleDenormalizing data in RavenDB
One of the things with RavenDB, or NoSQL document databases in general, is that you don’t do joins to combine data. Normally you try to model the documents you store in such a way that the data you...
View ArticleConverting the RavenDB Northwind database to a more denormalized form
In a previous blog post I demonstrated how to denormalize the RavenDB sample database and use the DenormalizedReference<T> and INamedDocument types from the RavenDB documentation to make life...
View ArticleX things every JavaScript developer should know: Comparisons
Another item of things every JavaScript developer should know is how comparisons work. Just like with some of the other JavaScript, or I should really say ECMAScript, features anything you know about...
View ArticleUpdated RSS feed for blog posts
Just so you are aware, the URL with the RSS feed for my blog has changed. Please use the following URL now: http://blogs.msmvps.com/theproblemsolver/feed/ Apologies for the inconvenience.
View ArticleX things every JavaScript developer should know: Automatic Semicolon Insertion
As with many other things in JavaScript Automatic Semicolon Insertion is usually not a problem but it can occasionally bite you if you are unaware of it. What Automatic Semicolon Insertion does is...
View ArticleUsing browserify to manage JavaScript dependencies
Managing JavaScript dependencies in the browser is hard. Library scripts typically create global variables and functions. Other scripts now depend on those global objects to do their work. This works...
View Articleangular.module("module") is an anti pattern
There are two ways to use the angular.module() function. There is the call with one parameter, that returns an existing module and there is an option of using two parameter which creates a new...
View ArticleSDC 2014 – Slides and Samples
Online demo: http://rawstack.azurewebsites.net/ Source code: https://github.com/mauricedb/SDC-2014 https://github.com/mauricedb/RawStack
View ArticleTesting an AngularJS directive with its template
Testing AngularJS directives usually isn’t very hard. Most of the time it is just a matter of instantiating the directive using the $compile() function and interacting with the scope or related...
View Article