Blockchain Development (Part 2): Programming Smart Contracts using Solidity, Truffle and Test-RPC


Introduction

In my last article on Blockchain Development, we learned about setting up the development environment before we start coding or developing our first smart contract. We installed necessary packages and tools those would be needed for development. In this article, we’ll explore Solidity and develop our first smart contract of “Hello World”.

Continue reading “Blockchain Development (Part 2): Programming Smart Contracts using Solidity, Truffle and Test-RPC”

Advertisements

Blockchain Development (Part 1) – Setting Up Development Environment For Smart Contracts


Introduction

In my last article on Blockchain, we learned about setting up Ethereum Blockchain on Microsoft Azure using Consortium leader. It is time for some development now. Before we move on to Smart Contracts and their development, it’s important for us to set up a development environment as a prerequisite. This article will solely focus on setting up the development environment for Smart Contract development. In the next article, we’ll see what smart contracts are and how we can develop those.

Continue reading “Blockchain Development (Part 1) – Setting Up Development Environment For Smart Contracts”

Creating Virtual Machine (VM) On Microsoft Azure


Introduction

This article will focus on creating VM, i.e., a Virtual Machine on Microsoft Azure. Microsoft Azure provides many cloud services and getting a virtual machine is one of those. One can create a virtual machine; i.e. a remote desktop machine, on the cloud and access the same with the provided credentials. Azure gives us the flexibility to choose the type of machine; i.e. client or server and the operating system and machine configuration of one’s choice. So, it gives the flexibility to create a small machine or set up a huge configuration machine based on the requirement. Each configuration and component chosen had a price that depends on how long and how much the VM is used. In this article, I’ll set a VM on Microsoft Azure step by step and this article will be more of a tutorial form.

Continue reading “Creating Virtual Machine (VM) On Microsoft Azure”

Setting Up Ethereum Blockchain On Azure


Introduction

This article will focus on setting up a custom Ethereum Blockchain on Azure. The article will be less theory and will focus more on the practical implementation of step by step setting up the Ethereum blockchain on Azure and transferring some Ethers between accounts using MetaMask. The article is for the readers who are more into development and have the background of Blockchain, Ethereum and Ether. We’ll cover theory in the next article of understanding Ethereum and Blockchain.

Continue reading “Setting Up Ethereum Blockchain On Azure”

Dependency Injection Using Unity – Resolve Dependency Of Dependencies

This article will not be very theoretical, but would be more of a tutorial to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection.


Introduction

Inversion of control (IOC) and Dependency Injection (DI) work hand in hand and makes our application more loosely coupled and easy to expand. It is strongly recommended to follow SOLID principles when it comes to development. This article will not be very theoretical but would be more of a tutorial to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection, solve the problem of resolving dependency of a dependency in a three-layered/n layered project architecture using unity framework. You can get the downloadable source code at the end of the article.

Continue reading “Dependency Injection Using Unity – Resolve Dependency Of Dependencies”

Singleton Design Pattern In C# – Part Three (Static vs Singleton)


Introduction

In this series on learning singleton pattern, we learned lazy initialization and eager initialization with practical examples. We also learned why it is necessary to make the singleton class sealed with the sealed keyword. In this article, I’ll try to explain the differences between static and singleton class. We will also see where to use static class and where to use singleton classes.

Continue reading “Singleton Design Pattern In C# – Part Three (Static vs Singleton)”

Singleton Design Pattern In C# – Part 2 (Eager and Lazy Initialization in Singleton)


Introduction

In the previous article on learning singleton pattern, we discussed what is singleton design pattern, when is it needed and what problems it solves. We also discussed how to create a basic singleton class step by step and how to enhance that class to be thread-safe with the help of locking and performance effective with the help of double check locking. In this article, we’ll discuss Lazy initialization, the lazy keyword, why to make singleton class a sealed class, and what are the differences between singleton and static class. Before we start, I strongly recommend you go through my last article.

Continue reading “Singleton Design Pattern In C# – Part 2 (Eager and Lazy Initialization in Singleton)”