Photo by Franki Chamaki on Unsplash

Pre-requisites -- you’ll be able to understand:
1: Relationships (1-N, 1–1, N-N)
2: Basic mongo terminology like document, parent document, child document, etc
3: cardinality of a relationship

During Database Design specially in a NO-SQL DB, the most common decision we have to take is how to build a 1-N relationship as it’s not as straight forward as SQL and have some factors to consider.

So let’s go through multiple ways to create 1-N relationship

1: Embedding

The most common approach is to embed an array of children into the parent document. The main advantage is that you don’t…

Learn how to respond, not react

Photo by Lesly Juarez on Unsplash

What is mindfulness?

Simply stating it is the ability to be conscious of your thoughts (getting hold of what’s going in your mind) rather than getting carried away by your thoughts.

A cliche that is often used around mindfulness is to be fully present at the moment which is actually right.

Note: Many tend to confuse between meditation and mindfulness.

Everything you need to know about it

Photo by Snappy Shutters on Unsplash

As we all know that necessity is the mother of invention.
Let’s see some needs and issues that are solved by Dockerising Applications.

To develop a dynamic application we need the following:
1: Web Server (like node+ express or Django etc)
2: Database (MongoDb or PostgreSQL etc)
3: Messaging Service (RabbitMQ or SQS etc)
4: Orchestration tool (Ansible etc)

Issues one faces while developing, deploying, and setting up applications are mentioned below:

1: We need to ensure the compatibility with the underline OS version (Windows, Linux, etc) of the packages required for the…

Versioning an interface is just a “polite” way to kill deployed clients
- Django Rest Framework

Why versioning

Whenever we need to do some API changes that are not backward compatible ie: request params/headers or response object’s structure is changed

We don’t usually face many issues with the websites as we can deploy the frontend system and the end-users will have an updated system to work with.

But, When it comes to applications (mobile or desktop), The update doesn’t happen simultaneously as it depends on the user when the app update happens and thus we need to support older app…

Quite Confusing Right?

Let’s understand each term as it comes.


Traversing over an object in python.
let say we have a list as:

random_list = [4, 7, 9]

for element in random_list:

The above statements represents process of iteration, in which every element in the list is traversed and printed.


iter() is an inbuilt method in python which converts a python object to an iterator.


Any python object which can be iterated over, ie. you can traverse upon all the values of the object.


An iterator is an object with a state it remembers…

Photo by Max Duzij on Unsplash

Before we proceed let’s try to know more about react and why you should learn react in 2020.


React → Library or framework?

React is actually a javascript library created by Facebook to simplify development of visual interfaces, but it’s also misjudged and often called a framework because of its capabilities and behaviour.

Difference between library and framework

FYI: The code that you run on react actually runs on the client’s browser rather than a server as it’s used for client side rendering.

Due to this, it helps to make the UI more interactive. For…

Photo by Roman Synkevych on Unsplash

But why isn’t is too pythonic?

Let’s first understand what pythonic code is with a use case of the list comprehension.
(Hitting two targets with one arrow #lazy)

When you use the common/famous Python idioms well, that’s pythonic code (examples mentioned below will help you understand better)

Problem — Make a list containing the squares of another list

Photo by Tine Ivanič on Unsplash

Loops are fantastic! but everything in excess sucks and so does loops.

Before we start with this article:
→ If you don’t love programming, just give a 2 min read and come back.
→ This article will help you to understand how to decrease code complexities without Big(O) or other notation :p
→ The examples below are in Django(Python’s framework for web development) only but you’ll see a similar pattern/functionality in every language.

1: Get “only” what you need.

The Django ORM by default gives you all the information about the database’s object when you write code as:


Photo by Adi Goldstein on Unsplash


you are at a programming interview for a (javascript/python) developer and you’ve been given an array of persons with ages as follows:
ages =[22, 66, 4, 21, 35, 43]
and you need to get people who can drink in India.
Now, just an FYI (For Your Information) to all the lawbreakers out there, the legal age for drinking in India is 25 you
In a nutshell, you need to get an array with an age greater than or equal to 25.

Photo by NESA by Makers on Unsplash

Programming doesn’t flow naturally in me “marketing” does, coding is boring, not for me, I am not much actively interested in technologies as my friends are!

If these are the questions that hit you the most while going through data structures and unnecessary looping then, this 3-minute read will change is what you need!

Sorry to say you are mentally ill, my friend you are suffering from “escape root mechanism”.

Okay! just kidding it’s not a disease its just how your mind reacts when you forcefully do things which the brain finds difficult or boring + you have another option…

Ivjot Singh

Aut viam inveniam aut faciam

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store