Search

You searched for the word(s): userid:2326
Page 1 of 70 (695 items) 1 2 3 4 5 Next > ... Last »
  • X 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 code is executed other wise the else block is executed. Something like this: 1: ( function () { 2: var data = []; 3:   4: if (data.length > 0) { 5: console.log( "The data array is not empty" ); 6: } else { 7: console.log( "The data array is empty" ); 8: } 9: }());   And
    Posted to The Problem Solver (Weblog) by Maurice on Sun, Jun 22 2014
  • X 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 our variables using the var keyword. However when we forget the var keyword we are back to the original problem as the variables are added to the global scope.   Leaking undeclared variables As you can see in the two code snippets below the text variables are not declared using var. Even though
    Posted to The Problem Solver (Weblog) by Maurice on Tue, Jun 10 2014
    Filed under: JavaScript, X-JavaScriptThings
  • X 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 based applications these days. And like it or not JavaScript is the language of the browser. Unfortunately the JavaScript syntax resembles that of Java or C# resulting in these developers thinking that they can easily master the language. And even though JavaScript is not a hard language to master there
    Posted to The Problem Solver (Weblog) by Maurice on Tue, Jun 3 2014
    Filed under: JavaScript, X-JavaScriptThings
  • AngularJS 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 from there. And that is exactly what I did with the moviesListCtrl. But easy and convenient doesn't make it the best way to do so!   Services: a better approach to HTTP I strongly believe that a controller, regardless of AngularJS, MVC or WebAPI , should contain as little logic as possible
    Posted to The Problem Solver (Weblog) by Maurice on Sun, May 11 2014
    Filed under: AngularJS, RawStack
  • TechDays 2014: New and improved ASP.NET MVC 5

      New and improved ASP.NET MVC 5 from Maurice Beijer   The sample code can be found on GitHub here .   Enjoy!
    Posted to The Problem Solver (Weblog) by Maurice on Thu, Apr 17 2014
    Filed under: WebAPI, TechDays, MVC
  • TechDays 2014: Unleash the power of RavenDB

      Unleash the power of raven db from Maurice Beijer   The sample code can be found on GitHub here .   Enjoy!
    Posted to The Problem Solver (Weblog) by Maurice on Thu, Apr 17 2014
    Filed under: RavenDB, TechDays
  • Adding an AngularJS AJAX busy indicator to the RAW stack

    With the typical AngularJS SPA application there are lots of AJAX calls going on to retrieve data from the server. This sometimes results in a view that appears empty to the user. The page is rendered without any data as that is still being loaded. This also happens on the movie page in the demo application. While technically completely understandable it can be confusing to an end user not seeing the expected data. While we can't make the data appear any faster we can show the fact that the application
    Posted to The Problem Solver (Weblog) by Maurice on Fri, Mar 28 2014
    Filed under: AngularJS, RawStack
  • WebAPI, PascalCase and camelCase

    In the RAW stack the ASP.NET WebAPI plays a big part in exposing data to the client and accepting data back in. This does mean that it is also the boundary of the AngularJS , or JavaScript, and C# world. And both of these worlds have their own, not always compatible standards. In this case I am referring to the normal way of naming properties on objects. In C# this is normally done using PascalCase and in JavaScript this is normally done using camelCase.   Bridging the gap It turns out that
    Posted to The Problem Solver (Weblog) by Maurice on Wed, Mar 26 2014
    Filed under: WebAPI, AngularJS, JavaScript, RawStack
  • Using Bootstrap to make the movies list responsive

    The current movie list looks quite nice on a desktop browser but leaves something to be desired on a tablet or phone. And as this is something I think should work just as well it is high time to fix this. One of the reasons I think every web application should work equally well on a tablet as on a desktop browser is that they are so frequently used. You might argue that a phone is a very limited device screen wise, and that would be true, but a tablet is becoming the default browser for quite a few
    Posted to The Problem Solver (Weblog) by Maurice on Mon, Mar 24 2014
    Filed under: AngularJS, RawStack, Bootstrap
  • Index of posts on the RAW stack

    Introducing the RAW stack Creating a basic skeleton with the RAW stack Refactoring the AngularJS code in the RawStack Unit testing the AngularJS code in the RAW Stack Unit testing AngularJS HTTP requests in the RAW Stack Unit testing the WebAPI controller and RavenDB database in the RAW stack Using dependency injection with WebAPI in the RAW stack Paging data using AngularJS and RavenDB in the RAW Stack Using Bootstrap with the RAW stack The RAW stack and filtering movies by genre Using Bootstrap
    Posted to The Problem Solver (Weblog) by Maurice on Sun, Mar 23 2014
    Filed under: RawStack
Page 1 of 70 (695 items) 1 2 3 4 5 Next > ... Last »