Tag Archives: LINQ

Using Underscore.js in Node.js Apps

via Using Underscore.js in Node.js Apps.

Underscore.js is a utility library that is widely used to deal with arrays, collections and objects in JavaScript. It can be used in both frontend and backend based JavaScript applications. Usages of this library include filtering from array, mapping objects, extending objects, operating with functions and more. If you are familiar with LINQ in C#, underscore.js brings most of the capabilities of LINQ to JavaScript.

 An Awesome guide to jQuery. Available in PDF, ePub and Mobi. Click here

Node.js is a platform for building server side applications using JavaScript. While designing REST APIs in Node.jsthat interact with NoSQL databases like MongoDB, we either get an object or, a collection of objects. In most of the scenarios, we may not want to send the same object in response to the API. The data has to be mapped to the structure of the Data Transfer Object (DTO) designed for the API. This transformation would take a lot of time and energy if we do it manually. Underscore.js provides a set of handy methods that makes our job easier. In this post, we will see how to use Underscore.js and where it fits in Node.js applications.

Note: If you are new to Node.js, check Node.js Tutorial Series – Getting Started

Getting More LINQ-y

via Jeremy Bytes: Getting More LINQ-y.

As I explore functional programming more, I’m learning how I haven’t been using LINQ as much as I could be.

Last time, I talked about how I was excited about what I saw in Mathias Brandewinder’s book Machine Learning Projects for .NET Developers (Amazon link). I made it through the first chapter, and I’m absorbing lots of stuff about machine learning and F#, but I also came across something simple that I hadn’t thought about before:

Available Resource: Front End Consultant


MANISH PRAJAPATI is a Sr System Analyst has 9 YEARS of IT Industry experience. His current location is Delhi (India) and he is willing to relocate anywhere in USA, Canada, Europe, Singapore, Australia, New Zealand. His area of Expertise are ASP.Net, MVC, C#, SQL Server, XML, jQuery, javascript, JSON, AngularJS, HTML5, CSS3, nHibernate, LINQ, Entity Framework etc. He is looking out for sponsorship. He is available with in 30 days notice period. If interested please E-mail him at manishprajapati_01@yahoo.com

Video: Getting started with MongoDB and NoSQL in .NET and C#

The world of data offers new choices and MongoDB is the most popular alternative to SQL databases today. In this one hour webinar, we’ll look at the reasons developers turn to NoSQL databases and what makes MongoDB special. Then we’ll look at how to manipulate MongoDB data from C# efficiently and safely by leveraging LINQ.

SINQ – Swift Integrated Query

via slazyk/SINQ · GitHub.

Swift has generic Collections and Sequences as well as some universal free functions to work with them. What is missing is a fluent interface that would make working with them easy¹ – like list comprehensions in many languages or LINQ in .NET. The operations should: require no typecasts, be easily chained, work on any sequences, be performed lazily where possible.

XML Parsing with jQuery

via XML Parsing with jQuery – Tech.pro.

XML is an important part of AJAX. Heck, it’s right in the name, “Asynchronous JavaScript and XML”, so knowing how to parse XML is equally important. This tutorial will demonstrate how to parse XML using jQuery that should cover almost all cases you’d typically run into.

Using jQuery to parse XML is vaguely reminiscent of LINQ in the recent .NET frameworks. That’s a good thing, since LINQ made parsing XML in .NET vastly easier than previous techniques. With jQuery, when you receive XML from a callback, you’re not actually getting raw text, you’re actually getting a DOM (document object model) that jQuery can traverse very quickly and efficiently to give you the data you need.

Let’s start by looking at the example XML document we’ll be parsing today. I made a file that contains most things you’d see in a typical XML document – attributes, nested tags, and collections.

LINQ Samples in Swift

via mythz/swift-linq-examples · GitHub.

The samples below mirrors the C# LINQ samples layout with the names of the top-level Swift methods matching their corresponding C# examples.

LINQ – Restriction Operators / MSDN C#

LINQ – Projection Operators / MSDN C#

LINQ – Partitioning Operators / MSDN C#

LINQ – Ordering Operators / MSDN C#

LINQ – Grouping Operators / MSDN C#

LINQ – Set Operators / MSDN C#

LINQ – Conversion Operators / MSDN C#

LINQ – Element Operators / MSDN C#

LINQ – Generation Operators / MSDN C#

LINQ – Quantifiers / MSDN C#

LINQ – Aggregate Operators / MSDN C#

LINQ – Miscellaneous Operators / MSDN C#

LINQ – Query Execution / MSDN C#

LINQ – Join Operators / MSDN C#