TheLearningDev's Blog

TheLearningDev's Blog

Follow
Follow
homeBuild Your Own Python Project

A Burned-Out Developer to Indie-Hacker Dev Retro 2022

Bhavani RaviBhavani Ravi
Jan 1, 20235 min read

I always wanted to be a techie. Right from when I knew Software engineering was a profession. Someone who can master any technology, spin up any...

A Burned-Out Developer to Indie-Hacker
Dev Retro 2022

What is __name__ == "__main__" in Python?

Bhavani RaviBhavani Ravi
Nov 22, 20221 min read

Python snippets use name == "main" checks to ensure that the module-specific code is run only when they are run directly via Python. If you are a...

What is __name__ == "__main__" in Python?

When to use List vs Dict in Python?

Bhavani RaviBhavani Ravi
Oct 28, 20222 min read

Lists Only a single data point for each item To find an item we have to loop the whole list my_books = ["Atomic Habits", "Life is what you make it",...

When to use List vs Dict in Python?

First OpenSource Contribution? Don't Start at Good First Issue

Bhavani RaviBhavani Ravi
Oct 4, 20222 min read

A solid OSS code contribution will take somewhere from 3-6 months. But that sounds like a tedious task and a lot of time and effort. It is. That is...

First OpenSource Contribution? Don't Start at Good First Issue

Python: Iterables and Iterators

Bhavani RaviBhavani Ravi
Sep 24, 20222 min read

I was teaching PythonToProject Bootcamp the other day. As an add-on module, I was teaching Iterators and how to implement custom iterators in...

Python: Iterables and Iterators

"yield" keyword in Python

Bhavani RaviBhavani Ravi
Sep 23, 20221 min read

What does the "yield" keyword do in Python? ยท "yield" is a Python keyword that can be used in a function instead of return. def scale_vector(vector,...

"yield" keyword in Python