Mar 11, 2022

React Effect Hook

When using React hooks, we often come across scenarios where we need to perform side effects. For that, a built-in hook is in our disposal; useEffect. In today’s post, we’ll look at how to use useEffect hook and in which context it should be used.

React Typescript

Mar 04, 2022

Smart Contract Development With Brownie

Few months ago we looked at how we could use web3.py to directly compile Solidity contracts and deploy them on a local ganache-cli blockchain. Although that’s a possible way of deploying smart contracts, it wouldn’t be a recommended way to manage production grade contracts. For that, we would be delegating the steps to a development and testing framework for smart contracts. Such environment provides us an easy way to manage project of smart contracts, manage dependencies, and test our smart contracts. In today’s post, we will look at Brownie, a Python-based development and testing framework for EVM smart contracts

Ethereum Solidity Python

Feb 25, 2022

Setup Local Development Blockchain With Ganache

Ganache is a local blockchain which allows us to develop and test smart contract easily. In today’s post, we will look at how we can start a development Ethereum blockchain in few clicks, and we will look at the feature provided by Ganache.

Metamask

Feb 18, 2022

Dbeaver Auto Commit And Manual Commit

When using DBeaver, we can choose betweeen using auto commit or manual commit modes when executing SQL scripts. In today’s post, we will look at how we can switch between the two and how transactions can be managed.

DBeaver

Feb 11, 2022

Exhaustiveness Checking In Typescript

Last week we talked about type predicate allowing us to narrow down based a variable based on a predicate function. In today’s post, we’ll continue to explore some of the narrowing functionalities of Typescript by looking at discriminated union narrowing and exhaustiveness checking.

Typescript

Feb 04, 2022

Type Predicate In Typescript

Type predicate in Typescript allows us to narrow down the type of a variable using a predicate. Today we’ll look at how to use type predicates, and show examples where they are useful.

Typescript

Jan 28, 2022

Unions In Typegraphql

Following up our previous post on generic types, we created a ServiceResponse<T> type which had a statusCode: string field to differentiate between the responses. In Typescript, a common pattern to differentiate between success and error is to create a union. In today’s post, we will see how we can leverage typegraphql to translate Typescript unions into graphql schema unions.

Typescript GraphQL

Jan 21, 2022

Generic Type In Typegraphql

Last week, we looked at how typegraphql was supporting inheritance, translating it into a proper graphql schema. Today we will look at another common feature of Typescript, generic types and how they can be translated properly into a graphql schema.

Typescript GraphQL

Jan 14, 2022

Inheritance In Typegraphql

When working with typegraphql, we expect our models to be translated properly into a graphql schema. Inheritance is one of the feature supported by classes in Typescript. In this post, we will see how we can use inheritance in both objects and resolvers with typegraphql.

Typescript GraphQL

Jan 07, 2022

Introduction To Metamask

With the web transitioning to a decentralized internet, new systems and applications are being built. In order to access them, we need tools that interact with the next version of web, web 3.0. In today’s post, we will take a look at Metamask, a gateway to the decentrailized internet. We will look at what functionalities it provides and how to use it.

Metamask

Dec 31, 2021

Json Stringify

When doing web development, we often use JSON.stringify to print to the screen the value of a variable. But when the variable contains multiple attributes, the print could be quite dense. To cater for that JSON.stringify has extra parameters that can be specified. In today’s post, we will look at each of them with example.

JavaScript

Dec 24, 2021

Exploring Query Statements In Kusto Queries

In the last post, we looked at scalar operators in Kusto queries. To complete this mini series on Kusto queries, today we will be looking at useful query statements with examples.

Azure

Dec 03, 2021

Winston Logger With Typescript

Winston logger is one of the most popular logger for node application. In today’s post we will look at how we can configure and use Winston.

Typescript