Open in app
JOSHUA WEINSTEIN
48 Followers
About

Sign in

48 Followers
About
Open in app
The Reason Behind if __name__ == ‘__main__’ in Python
637
7

Jordan Williams

JOSHUA WEINSTEIN

JOSHUA WEINSTEIN

·Nov 4, 2020

Good points! I found its useful to add if you want unit tests at the bottom of a file to run as needed :)

More from JOSHUA WEINSTEIN

Programmer, Artist, Published Author. I’m an engineer on a mission to write the fastest software in the world.

More From Medium

Learning frameworks isn’t a replacement for learning to code

JOSHUA WEINSTEIN

Copying Data 2000% Faster With Advanced Vector Extensions

JOSHUA WEINSTEIN in The Startup

The Best and Worst Ways to Use Stack Overflow

JOSHUA WEINSTEIN in The Startup

Make Python Hundreds of Times Faster With a C-Extension

JOSHUA WEINSTEIN in The Startup

How to become famous on GitHub

JOSHUA WEINSTEIN in Data Driven Investor

How to Learn CMake in Just 20 Minutes

JOSHUA WEINSTEIN in The Startup

Illustrating Code: The Art of Visual Learning

JOSHUA WEINSTEIN in The Startup

4 Easy Tips for Using Threads and Mutexes in C++

JOSHUA WEINSTEIN in Better Programming

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store