Skip to content

Month: March 2017

C# 7.0 – Pattern Matching in Switch

C# 7.0 adds lots of new features to bring code simplification and performance. Pattern matching is one of the interesting features of C# 7.0.  Pattern Matching simplifies code that is conditional on the shape of data. Pattern matching means we can switch based on the type of data to execute one or more statements. For example, In previous times if we want to match more than one case in switch we used to do like the following Using C# 7.0 pattern matching, we can set the range of input values in the… Read more C# 7.0 – Pattern Matching in Switch

map() – JavaScript Functional Programming

What is functional programming? Functional programming is a programming paradigm, the process of building components using pure functions and avoiding shared state, mutable data and side-effects. In simple, functional programming is doing our tasks with functions, avoiding side effects by using pure functions. For example, Without iterating the list using user defined loops; we can iterate the list using the functions like map(), reduce(), and filter() Let’s see about map() function in this post. I have started exploring about functional programming in recent times. The topic looks very interesting and… Read more map() – JavaScript Functional Programming