Friday, 17 February 2017

Validate Errors on Compile Time in ASP.Net MVC Razor View

In this post we will be discussing about how to validate errors on compile time in ASP.Net MVC Razor View. As you might know that views does not generate compile time errors, so it very difficult to find out errors when your number of views increases because each time you have to run the application and see if there is any error in views or not.

Thursday, 16 February 2017

Getting started with ExpressJS 5

In this post we will be discussing about getting started with Express 5. As of today 16th Feb 2017, Express 5 is currently in the alpha release stage and it will not be very different that Express 4. So if you are planning to move from Express 4 to Express 5 you need not have to worry much because there are very little places where you have to do the change.

Wednesday, 15 February 2017

Lets talk about Local Functions in C# 7

In this post we will be discussing about Local Functions which was introduced in C# 7. C# 7 Local Functions gives you the ability to declare methods and types in block scope. C# 7 allows you to define local methods and they can be called within a method itself. Just think Local Functions as a normal functions but the scope of the local functions is to the block were they have been declared.

Friday, 10 February 2017

You Will Never Thought That Knowing C#7 Tuples Could Be So Beneficial

In this post we will be discussing about C# 7 Tuples using Visual Studio 2017 RC. Microsoft has announced a lot of new useful features that make C# development a lot easier in C# 7, and one of the feature is Tuples. You will never have thought that knowing it could be so beneficial in developing applications in C#.

Thursday, 9 February 2017

Fake REST API for FrontEnd Development

In this post we will be discussing about faking or mocking REST API for frontend development. Sometimes when you are building an application without back-end in place, you need to mock API to save time. This json-server save some time by providing an easy way to create Restful APIs for development and testing.

Wednesday, 8 February 2017

How to set Default and Optional Route Values in Asp Net Web API

In this post we will be discussing about setting default and optional route values in Asp.Net Web API. Asp.Net Web API makes it really simple to define default values or optional values for a route whether its an attribute routing or centralized routing. Whenever you define any route in Asp.Net Web API, its always better to provide default values for the parameters used in the routes.

Tuesday, 7 February 2017

Run multiple versions of Node.js in a System

In this post we will be discussing about how to run multiple version of Node.js in a System. There might be situations where you need to install multiple versions of Node.js for example if you are working on multiple projects and they have different requirements and they need different versions.

Monday, 6 February 2017

Create a Static Site with Metalsmith

In this post we will be discussing about creating a static site with Metalsmith. Metalsmith is an extremely simple,lightweight and pluggable static site generator, which supports a wide range of template and data format options. It uses a modular structure and has a very few dependencies.

Friday, 3 February 2017

How to Implement Virtual Hosting Proxy Servers in Nodejs

In this post we are going to learn about implementing virtual hosting proxy server in Node.js. A proxy is a way of routing requests from several different sources through one server whether its for caching, security or anything else. Virtual Hosting allows a single proxy server to host multiple domains and ports on a single IP address and port.

Thursday, 2 February 2017

How to accept a HTML Form in Asp.Net Web API

In this post we will be discussing about how to accept a HTML form in Asp.Net Web API. What we want to do is to create an Asp.Net Web API endpoint that is capable of handling HTML forms. Today it is a very common requirement to submit HTML form data when building web applications.