📝 Parottasalna Blog
249 practical articles on backend engineering, system design, databases, Docker, Python, AI and DSA, explained simply.
Python Variable - Is a Container or a Reference ?
Unlike other programming languages, in Python, variable is not a container but just a reference or a name/label to the object. Caution: This post dea…
DockerTipsDocker Directives - ARG Directive
The ARG directive in a Dockerfile is used to define variables that users can pass at build time to the builder with the docker build command. These v…
DockerDocker Directives - Env Directive
The ENV directive in a Dockerfile can be used to set environment variables. Environment variables are key-value pairs that provide information to app…
Programming BasicsTASK 2 - Constants and Variables
Create a variable named name and assign your name to it. Then print the value of the variable. Create a variable age and assign your age to it. Later…
Python BasicsPYTHON-FUNDAMENTALS: Constants Variables aNd Data Types
Variables A variable in Python is a symbolic name that references or points to an object. Once a variable is assigned a value, it can be used to refe…
Python BasicsPython-FUNDAMENTALS: The Print()
Welcome to the world of ParottaSalna ! One of the first things you’ll learn in any programming language is how to display output on the screen. In Py…
Python BasicsTASK 1: Python - Print exercises
How do you print the string “Hello, world!” to the screen? How do you print the value of a variable name which is set to “Syed Jafer” or Your name? H…
DevelopmentMigrating from .env to dotenvx
Official Link: https://github.com/motdotla/dotenv As a developer, we used .env file where we used to store environmental variables. As stated from fo…
Docker Best PracticesAntipatterns while using docker containers
During my docker learning journey, while i was going through many blogs, tutorials, conference videos; most of them were mentioning about some of the…
DockerCan we build image on the FLY and USE IT ?
This is somewhat similar to antipattern, but goes beyond just doing a git clone directly into an image. This involves cloning, building, and then run…
Coding TipsCode Smell 2 - Magic Numbers
Introduction A Magic Number is a hard-coded value that may change at a later stage, but that can be therefore hard to update. It’s a numeric value th…
ProgrammingWill --no-cache-dir in pip helps in reducing size of docker image ?
Problem Faced: I was trying to reduce the docker size of a python application. In those one of the methods, i was struck by an idea of remove pip cac…