Apr 01, 2022
React Callback Hook
Callback hook in React can be used to memoized a callback function to skip unnecessary rendering. In today’s post we will see why we would useCallback hook.
Apr 01, 2022
Callback hook in React can be used to memoized a callback function to skip unnecessary rendering. In today’s post we will see why we would useCallback hook.
Mar 25, 2022
Ref hook in React can be used to keep a mutable reference across multiple renders. In today’s post we will see how we can use useRef hook and when they are useful.
Mar 18, 2022
Context hook in React can be used to manage global state. In today’s post we will see how we can use useContext hook and how we can pair it with useState to provide a global state to all children components.
Mar 11, 2022
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.
Mar 04, 2022
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
Feb 25, 2022
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.
Feb 18, 2022
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.
Feb 11, 2022
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.
Feb 04, 2022
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.
Jan 28, 2022
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.
Jan 21, 2022
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.
Jan 14, 2022
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.
Jan 07, 2022
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.
Dec 31, 2021
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.
Dec 24, 2021
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.
chrome
cypress
dbeaver
ethereum
figma
flask
git
graphql
jekyll
jenkins
js
maths
metamask
mobx
mysql
oas
postgres
postman
puml
python
solidity
splunk
sqlalchemy
sqlite
typescript
unicode
vscode
zsh