Welcome to my official blog where I share most of the issues I encounter while programming and my solutions to them using my favourite javascript libraries and frameworks. Author - Alfred Johnson Awa
The tech industry is changing fast—but not in the way most people think. By 2026, success in engineering won’t be about chasing the newest tools or stacking buzzwords on a résumé. It will be about depth, ownership, and usefulness. Here’s a grounded l...
1. Server Streaming RPC: Description: In this type of RPC, the client sends a single request to the server, and the server responds with a stream of messages. The client reads from this stream of responses until there are no more messages. Use Case...
Email communication is a crucial aspect of many applications, and Amazon Simple Email Service (SES) provides a reliable and scalable solution for sending emails in the Amazon Web Services (AWS) environment. I've created a go package that facilitates ...
Introduction This article shows a complete setup on how you can verify a signature sent by paystack when they make a POST request to your server. I'm using the bun http router as my go lang framework. I really do not have strength for long talks, so ...
Funny title, but that's the reality from January to December. So, you're here to hear some gist about my 2023, say less. First I just want to take a moment to laugh small, 😂😂😂😂 why? the plans I had for 2023 come be like say na small pikin write a...
Bitcoin, the pioneering cryptocurrency, relies on cryptographic keys for secure transactions. This article walks through a JavaScript code snippet that demonstrates how to generate a Bitcoin address from a private key using the bitcoinjs-lib library....
import * as bitcoin from 'bitcoinjs-lib' import ECPairFactory from 'ecpair'; import * as ecc from 'tiny-secp256k1'; // Generate a new random key pair const ECPair = ECPairFactory.ECPairFactory(ecc) const keyPair = ECPair.makeRandom(); // // Get t...
To generate a unique token/OTP for each verification request and associate it with the user's email or session in Go, you can use a combination of cryptographic libraries and data structures. Here's an example implementation: package main import ( ...
Have you ever wanted to send bulk emails that have dynamic content to multiple users? Well, you are not alone and I'll be showing you the exact code snippet I used for this purpose but in PHP. In order to successfully send emails, I made use of SendG...
Hello guys and welcome to my youtube channel 😂😂😂😂 .. Yo! What's good fam? It's that time of the year again, actually, the third time doing this review thingy, but this time around it's even more interesting, a lot of interesting actions generally...
Polymorphism is the ability of an object or function to take on multiple forms. In the Go programming language, polymorphism is supported through the use of interfaces. An interface in Go defines a set of methods that a type must implement to satisfy...
Genesis 1:1 In this blog post, we will learn about upgradeable smart contracts, different upgrade patterns, reasons behind smart contract upgrades, and finally, how to utilize the Hardhat framework to aid in deploying and implementing smart contracts...
Are you a seasoned smart contract developer or a regular subscriber to the "Patrick collins" youtube channel? Then you probably have heard about OpenZeppelin, or even used some solutions and products by this amazing web3 company. Just in case you are...
The Question Write a function that takes in a non-empty array of distinct integers and an integer representing a target sum. If any two numbers in the input array sum up to the target sum, the function should return them in an array, in any or...
What's a Hash Table This is a data structure seen and proven to be very efficient for data storage, insertion, and retrieval. Unlike an array data structure, hash tables store their data in a key to value pair format, at least on a higher level. Con...
Generics is a fundamental part of the rust programming language and can sometimes be a pain to truly understand its use and purpose. In this article, I'll try and explain this concept like you are a kid ( if you are not ). How to identify a generic G...
Lee to the Mao (Lmao) , yes in 2022! Because all those articles out there are really old and do not work anymore. So if you are like me who almost lost your job because this react app just refused to deploy properly to Heroku, well You might just tip...
Writing tests for your smart contracts are just as important as running audits on them too. There are a few reasons why you might want to write full coverage tests for your smart contracts, one of which would be to save you some bucks. How? Deploying...
For some extraordinary reasons, you need to make use of uniswap to swap assets, perform some liquidity operations, or any other cool thing uniswap has to offer. You probably started off from remix IDE, and now you want to bring it down to your local ...
In a previous article which can be found here, we talked about this awesome project to be built. I asked a few questions concerning the project, one of which was "What shall we name our token?" From the look of things, we've got a name already. Thro...