Recently at work, We were looking for a way to generate unique IDs across a distributed system that could also be used as the primary keys in the MySQL tables.
We knew in a single MySQL database we can simply use an auto-increment ID as the primary key, But this won’t work in a sharded MySQL database.
So I looked at various existing solutions for this and finally learned about Twitter Snowflake — a simple 64-bit unique ID generator.
UUIDs are 128-bit hexadecimal numbers that are globally unique. The chances of the same UUID getting generated twice are negligible.
In this article, we will see what’s the difference between a Nullish Coalescing Operator (??) and a Logical OR (||)
Here are few examples 👇
const value1 = 1;
const value2 = 2;const result = value1 || value2;console.log(result); // 1
Both value1 and value2…
FizzBuzz is the most popular coding problem, and perhaps also one of the easiest.
For those of you who don’t know, here’s the problem statement :
Write a short program that prints each number from 1 to 100 on a new line. For each multiple of 3, print “Fizz” instead of the number. For each multiple of 5, print “Buzz” instead of the number. For numbers that are multiples of both 3 and 5, print “FizzBuzz” instead of the number.
Recently, Digital collectibles have exploded in popularity because of NFTs. You’ve probably seen people in your social media feeds talking about NFTs too.
The growing market for NFT is turning the art, music, gaming, and finance industries upside down.
NFTs can be confusing to understand for someone who is hearing it for the first time.
So today let’s unwrap what is NFT and why suddenly it is becoming the next big thing on the Internet.
We will be running through everything you need to know about them.🙂
You’re probably familiar with this famous tweet by Jack Dorsey, the billionaire co-founder…
As a developer, we use GitHub every day and it is already a great tool, but what if we can make it even better with some chrome extensions!
Let’s have a look at some of them 🔽
It enhances GitHub code review and exploration with features like:
I like this extension very much! It lets you explore the files and folders of a repository with a tree like structure.
Learning web development is like learning to drive a car. No matter how much you do not enjoy it, learning these skills sometimes can help you a lot and can even act as a great skill to put on your resume.
I needed to create some landing pages, custom logos, and mockups.
So I decided to go through all these technologies once again and during that process, I found…
This post is from the third issue of The Trojan’s Wednesday Wisdom newsletter.
Here’s what we will be doing this time:
So, grab a coffee☕ , and Let’s get started -
The first issue of the newsletter started with “Hello World!”. …
Fledgling software developer. I write about algorithmic solutions for software engineering problems (May also include machine learning & blockchain)