Python-FUNDAMENTALS: The Print()
{% raw %} 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 Python, we do this using the print func...
{% raw %} 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 Python, we do this using the print func...
{% raw %} 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?How do you print the variables name, age,...
{% raw %} Official Link: https://github.com/motdotla/dotenv As a developer, we used .env file where we used to store environmental variables. As stated from founder, Dotenv is a zero-dependency m...
{% raw %} During my docker learning journey, while i was going through many blogs, tutorials, conference videos; most of them were mentioning about some of the anti-patterns. I would like to collat...
{% raw %} This is somewhat similar to antipattern, but goes beyond just doing a git clone directly into an image. This involves cloning, building, and then running the newly created image without e...
{% raw %} 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 that’s encountered in the source but has...
{% raw %} 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 caching. So was trying to reduce the size...
{% raw %} List all images ? docker images List all containers ? docker container ls -a / docker ps -a List all containers belong to a particular image ? docker ps --all --filter ancestor=<image...
{% raw %} Problem faced: During our software development, we used to use design a class just to use it as a data structure. But while i was interested in reading about code smells; i got to know th...
{% raw %} While i was reading on the best practices of writing a Dockerfile, its mentioned that COPY is preferred than ADD. The COPY and ADD commands in Docker are both used to copy files or direct...