Browsed by
Category: web development

LINQ for JavaScript library: mini-linq-js

LINQ for JavaScript library: mini-linq-js

mini-linq.js LINQ for JavaScript library, which allows to work with arrays in a more easy way and focus on business logic. Installation bower install mini-linq-js –save npm install mini-linq-js –save Usage Just link mini-linq.js or mini-linq.min.js in your html. <script type=“text/javascript“ src=“mini-linq.min.js“></script> You can also attach and use mini-linq with knockout observableArray. Just link mini-linq.knockout.js. Also you may use postponed lazy-execution for arrays by linking mini-linq.lazy.js. You also may use it in your Node.JS project by using require(‘mini-linq-js‘); Available methods any all where select selectMany count orderBy orderByDescending groupBy distinct firstOrDefault…

Read More Read More

ASP.NET MVC 5: Using a Simple Repository Pattern for Performing Database Operations

ASP.NET MVC 5: Using a Simple Repository Pattern for Performing Database Operations

Abstract: The Repository pattern decouples your ASP.NET MVC application and shields it from changes by creating a boundary between your data access code and the other parts of your application. Recently a client of mine asked for a solution to isolate the direct dependency of the Data Access Layer with the rest of the layers of the application. In this article we will discuss one of the concepts I suggested to him for an ASP.NET MVC application. Typically in multi-layer applications,…

Read More Read More

How to Implement the Repository Pattern in ASP.NET MVC Application

How to Implement the Repository Pattern in ASP.NET MVC Application

The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic, and the application’s UI. If an application does not follow the Repository Pattern, it may have the following problems: Duplicate database operations codes Need of UI to unit test database operations and business logic Need of External dependencies to unit test business logic…

Read More Read More

The new programming language for web apps Imba

The new programming language for web apps Imba

if ruby and react had an indentation-based child, what would it look like? Imba is a new programming language for the web that compiles to performant and readable JavaScript. It has language level support for defining, extending, subclassing, instantiating and rendering dom nodes. https://github.com/somebee/imba http://imba.io/ https://somebee.github.io/dom-reconciler-bench/index.html 

async/await – What You Should Know

async/await – What You Should Know

Introduction Sometimes, we use new technologies while we are not aware of the bottlenecks and weird parts of that technology which eventually might trap us in bad situations like deadlocks which may be really hard to track. What exactly happens in Task-based Asynchronous Pattern (TAP), what are the improvements since .NET 4.0, how may we introduce a deadlock and how to prevent it? Consider somewhere in your code, you need to do something asynchronous, what are the different ways to do…

Read More Read More

Stackify Prefix

Stackify Prefix

What is Prefix? Prefix is free lightweight profiler for .NET & Java developers. It runs on their workstation and gives them details about what their code is doing while creating or testing their apps. I always described Prefix as the world’s best log viewer for developers. By ASP.NET web request you can see all your log statements plus many other details. For example, it can show you how long a request takes, what SQL queries were executed, HTTP calls, exceptions and…

Read More Read More

Dotnet-Boxed Very good asp.net template

Dotnet-Boxed Very good asp.net template

.NET project templates with batteries included, providing the minimum amount of code required to get you going faster. https://github.com/Dotnet-Boxed/Templates Technology Map The ASP.NET Core API project template contains the following features: Optional Feature Selection The ASP.NET Core API project template uses dotnet new to enable you to turn features of the project template on or off. Literally everything can be turned on or off with the click of a button for a truly personalized project. Find out more about dotnet new here. API Swagger (Default=On)…

Read More Read More