Parottasalna Course Notes

📝 Parottasalna Blog

249 practical articles on backend engineering, system design, databases, Docker, Python, AI and DSA, explained simply.

Programming Basics

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…

Jul 11, 2024 · 4 min read
DockerTips

Docker 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…

Jul 10, 2024 · 1 min read
Docker

Docker 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…

Jul 9, 2024 · 3 min read
Programming Basics

TASK 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…

Jul 7, 2024 · 1 min read
Python Basics

PYTHON-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…

Jul 7, 2024 · 4 min read
Python Basics

Python-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…

Jul 5, 2024 · 4 min read
Python Basics

TASK 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…

Jul 4, 2024 · 2 min read
Development

Migrating 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…

Jun 30, 2024 · 3 min read
Docker Best Practices

Antipatterns 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…

Jun 30, 2024 · 8 min read
Docker

Can 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…

Jun 29, 2024 · 1 min read
Coding Tips

Code 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…

Jun 29, 2024 · 5 min read
Programming

Will --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…

Jun 26, 2024 · 3 min read