How Python Manages Memory: A Simple IntroductionThe Basics Python manages memory using a private heap space. When a program runs, Python first allocates a small portion of memory for itself. This is where all the program's data structures are stored. Python uses references and garbage collection t...Dec 29, 2024 · 7 min readropali.hashnode.dev
Class Vs Instance variable in Python: Many know but few understand.So before I begin talking, I have a question for you, just don't scroll below & look at the code snippet given below and try to answer this question without running the code, "What is the output of print(t2.foo)?" class FooBar: foo = [] def...Nov 28, 2022 · 4 min readropali.hashnode.dev
Liskov's Substitution Principle Explained Using PythonLiskov's substitution principle is a part of the S.O.L.I.D design principle where L is for Liskov's substitution principle. You might be wondering if this sounds like some mathematical principle in computer science that is hardly used in the daily li...Oct 27, 2022 · 7 min readropali.hashnode.dev
Best pre-commit hooks setup for your Python projectHave you ever pushed your code or created a PR and then you realized that you forgot to remove that print statement or that your code formatting is messed up or even better you forgot to remove those unused imports? If all of the above problems you f...Sep 9, 2022 · 5 min readropali.hashnode.dev
Django features you did not know existed!So software engineers have to work with various technologies & frameworks while creating new pieces of software. Often times we work on some frameworks or libraries that have some handy feature but are not aware of it. So is the case with the Django ...Aug 28, 2022 · 6 min readropali.hashnode.dev