Starting with the Angular JS – For new learning

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. Angular’s data binding and dependency injection eliminate much of the code you currently have to write. And it all happens within the browser,… Continue reading Starting with the Angular JS – For new learning

jQuery best practice points to improve performance of application

1. Always Use the Latest Version 2. Use For Instead of Each 3. Use IDs Instead of Classes 4. Give your Selectors a Context As stated in jQuery’s documentation, The DOM node context originally passed to jQuery() (if none was passed then context will be equal to the document). It should be used in conjunction… Continue reading jQuery best practice points to improve performance of application

Web API Request & Response Logging Centralized

There are different ways we could place the cross-cutting concern of logging message when using WebAPI. We can for example create a custom ApiController and override the ApiController’s ExecutingAsync method, or add a ActionFilter, or use a Message Handler. The disadvantage with custom ApiController is that we need to make sure we inherit from it,… Continue reading Web API Request & Response Logging Centralized

Async Programming with Async/Await on ASP.NET

Synchronous vs. Asynchronous Request Handling Before diving into asynchronous request handlers, I’d like to briefly review how synchronous request handlers work on ASP.NET. For this example, let’s say the requests in the system depend on some external resource, like a database or Web API. When a request comes in, ASP.NET takes one of its thread… Continue reading Async Programming with Async/Await on ASP.NET