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
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
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
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
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…
Before we proceed let’s try to know more about react and why you should learn react in 2020.
HTML, CSS and JS
React → Library or 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…
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
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:
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.
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…
Aut viam inveniam aut faciam