
Genics Blog
700 FOLLOWERS
Covers well explained tutorials and stuff on coding by Gourav Khunger, a 16 years old enthusiast programmer.
Genics Blog
1M ago
A complete guide on migrating from SharedPreferences to Jetpack Compose Preference DataStore in Android using a Kotlin generics-based approach ..read more
Genics Blog
1y ago
The phrases ‘User Interface’ (UI) and ‘User Experience’ (UX) are frequently used in tech-related settings. But what does a UX or UI design mean, and what is its impact on your web app or website? When using a website, app, or electronic device, you interact with screens, buttons, toggles, icons ..read more
Genics Blog
1y ago
Beginning November 28, 2022, Heroku, one of the most popular go to choice used by developers to host their apps, announced that it would be shutting down its free tier. The Platform-as-a-Service (PaaS) provider’s free tier used to provide a generous 550 hours of dyno uptime which could be easily ..read more
Genics Blog
2y ago
As developers, most of us use the terminal to interact with our computers for many tasks as we find it more productive. We are familiar with commands like ls, cd, cat, grep, and find. These are primarily pre-installed on our computers and mostly get the job done hence, we never consider looking f ..read more
Genics Blog
2y ago
Welcome to the second issue in the Genics log series! I know this is super late in the month, but I wanted to share some updates on the blog from the past months.
Before diving into the latest news at Genics, I would like to introduce myself. I am Gourav Khunger, the founder of Genics Blog. I am a teenager from India who is passionate about software development and open source.
In the last article in this series, we talked about how we went open source and how we managed to grow from 200 visitors/month to 500+ visitors/month, along with sponsorship from BeyondWords.
This log is more inclined t ..read more
Genics Blog
2y ago
Introduction
Wassup everyone, long time no see. Today we will see a few ways to not clean code in React, let’s jump right into it!
10 ways to not write clean code Not using a linter
Who needs a linter to keep good code styles, and keep the code clean when you can define the rules as you go. 🚨
Add everything in one file
Just put everything in one file, so you don’t need to create many different files and components and can have 1000s of lines in one file. The compilation build time will also be very small if you use just a single file! 🙈
Write duplicate code
Why reuse variables, and components ..read more
Genics Blog
3y ago
Learn about Object Keys in JavaScript
Have you ever wondered how to use object keys in JavaScript? If so, then here is a quick tutorial on how to use object keys in JavaScript. Do not worry if you don’t know anything about objects yet, this blog covers that as well!
What are Javascript Objects?
Objects are one of the eight data types in javascript. They are used to store various kinds of complex data in a key-value collection pair.
Here’s a simple example on how to create an empty object in JavaScript:
let obj = new Object();
let obj = {}; // same as above
Basic Objects
The Objects data s ..read more
Genics Blog
3y ago
Hello, in this post I will go over authentication, various methods to implement it, each of their drawbacks, and which one you may want to use! Let’s get started!
What is Authentication?
Authentication or auth for short is the process where a server recognizes the identity of a user. Authorization is then done, to allocate a role to the authenticated user and allocate the required services to that particular user.
There are 2 ways you can implement auth:
Sessions
JSON Web Tokens
Let’s take a deep dive into sessions!
Sessions
Server-side sessions were the traditional way to implement auth. Th ..read more
Genics Blog
3y ago
At some point of time, we all have worked with arrays. It is a useful data structure to store multiple values of the same type in a single variable. Complex usage of arrays includes storing data in 2D, 3D, or other multidimensional arrays. This allows us to represent things like matrices, grids, and cubes effectively.
In this tutorial, we will specifically focus on declaring, initializing and using 2D, 3D, and other multidimensional arrays in the Kotlin programming language.
1D Arrays in Kotlin 1D Arrays with pre-defined data
Simple 1D arrays in kotlin are declared using the arrayOf() standard ..read more
Genics Blog
3y ago
Hey everyone 👋! I guess I took a long break from blogging but I am back with some interesting web3 stuff. Today we are doing to be BUIDLing a command-line interface that would act as a faucet and we would be also adding metamask authentication to it 🚀!
💡 The idea
Let’s understand the idea of the command-line interface which we are going to be building. It’s a simple command-line interface that would transfer testnet tokens to the user and we are going to be adding metamask authentication also 👀.
Wait what? Metamask authentication via a CLI ???
Let me explain how are we going to implement the ..read more