Image from Pexels

In this post, we are going to see what JavaScript Proxies are, how they work and how we can use them.

Introduction

Proxies were introduced in ES6 and are useful to define a custom behaviour for fundamental operations. In other words, a Proxy is an object that stands between an object and what we could call the outside world. It means that we can wrap an existing object and intercept any access to its attributes or its methods.

How it works?

Three components are important when we talk about Proxies:

  • Target: the object that will be wrapped (it can be any sort)
  • Traps: the…


Image from Pexels

Through this post, we are going to try to have a reflection about SharePoint and Unit Testing.

Introduction

Let’s be honest: here, we are not going to picture the perfect solution to write good unit tests easily when we use SharePoint as a development platform. Writing unit tests when we develop something for SharePoint can be really hard and discouraging. However, we are going to overview a few options to achieve this and to have a better conscience (or not).

Whatever development model we choose, we will face some problems and scratch our head to the bone. Some even say that…


Image from Pexels

In this small article, we are going to take a look at Sets to understand what they are and how they work.

Introduction

In computer science, a Set is a data structure. It can store unique values of the same type without any particular order. However, the stored objects have to be comparable.

A Set is an implementation of the mathematical concept of a finite set.

Here, we are going to build our own Set class using C# and .NET Framework to understand how it works. First, we are going to see the basic set up for our class. Then, we…


Image from Pexels

Through this small post, we are going to see how to initialize a project with Parcel.

Introduction

There are many tools that help us to build our application or our website. Some are really complex and sometimes tedious to set up just for a small project. This is where we can use Parcel.

Parcel is a bundler that requires almost zero configuration to achieve or goal. Our example is going to be pretty straightforward.

Installing

Before going any further, we need to install Node.js and npm. Then, we can install Parcel globally like so:

npm install -g parcel-bundler

Now, let’s initialize our…


Image from Pexels

Through this article, we are going to have an overview of the different SharePoint development models. Let’s get into it!

Introduction

Before building an application, we have a large amount things to think: needs, goals, architecture, infrastructure, frameworks and so on. Developing for SharePoint add an additional layer of complexity because we have to choose between various ways to work.

Each SharePoint development model has its purposes, advantages and difficulties. Here, we are going to have an overview of those different models.

Farm Solutions

Also known as Full Trust Solutions, they require to be developed on a SharePoint server and have access to…


Image from Pexels

Through this article, we are going to see how we can build a WebPart using the SharePoint Framework (SPFx) and deploy it on a SharePoint 2016 on-premise installation.

Introduction

The SharePoint Framework, aka SPFx, is a page and extension model that allows us to develop front-end apps using client-side code. Here, we are going to see how we can quickly build a WebPart and deploy it on a SharePint 2016 on-premise environment.

Prerequisites

Before going any further, we have to check if the “September 2017 Public Update for SharePoint 2016” is installed on our server, otherwise, we can’t use SPFx. The “Configuration…


Image from Pexels

In this article, we are going to set up a Host-Name Site Collection, Managed Paths and create a private App Catalog using SharePoint 2016 on-premise.

Introduction

Host-Named Site Collections enable us to assign a unique DNS name to Site Collections. So, it means that we can deploy many sites with unique DNS names in the same Web Application and it allows us to scale our environment to many customers. In other words, we can have something like http://sitea.domain.com and http://siteb.domain.com.

For the sake of our example, let’s imagine that we need to set a development environment with multiple Collections, each for…


Image from Pexels

Through this post, we are going to take a look at how we can achieve Dependency Injection with Unity (the IoC Container, not the Game Engine). Let’s get into it!

Introduction

Dependency Injection is one way to implement Inversion of Control. Dependency Injection, also called DI, is a design pattern in which one or more dependencies (services) are injected into a dependent object (client). This pattern allows us to implement a loosely coupled architecture by separating the creation of a client’s dependencies from its own behavior. …


Image from Pexels

In this post, we are going to see how we can work with SharePoint lists using CSOM.

Introduction

Since SharePoint 2010, SharePoint provides us a way to interact with SharePoint sites called Client Object Model, or CSOM. So we are able to write scripts or Add-Ins without the need to program directly on the server where SharePoint is installed.

Here, we are going to create a small program to see how we can use SharePoint CSOM to work with lists. For the sake of our example, we state that we are using a SharePoint on-premise installation.

Time to code

First, let’s create a method…


Image from Pexels

In this small article, we are going to see how we can upload a SharePoint Add-In to the App Catalog using PowerShell. Let’s get into it!

Introduction

Of course, we can upload our precious and well-developed SharePoint Add-Ins manually to the App Catalog. Unfortunately, this process can sometimes be tedious depending on our workflow. So here, we are going to craft a PowerShell script to ease this process. For our exercise, we are targeting a SharePoint on-premise installation.

The script

Depending on where we want to use our script, we are going to handle two cases: directly on the server and remotely. So…

Mátyás Lancelot Bors

WebDeveloper / Writer / Musician / https://www.mlbors.com / https://medium.com/@mlbors

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store