Everything is linear if plotted log-log with a fat magic marker.>
| tap "heroku/brew" | |
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/cask-fonts" | |
| tap "homebrew/cask-versions" | |
| tap "homebrew/core" | |
| tap "mongodb/brew" | |
| brew "openjdk@11" | |
| brew "apache-spark" | |
| brew "scala" |
| # Find and update all pip packages within Python | |
| # This code is dangerous but gets the job done 💀 💼 | |
| import pkg_resources | |
| from subprocess import call | |
| ignored = {'pycurl', 'tbb', 'daal', 'gast'} | |
| packages = {dist.project_name for dist in pkg_resources.working_set | |
| if dist.project_name not in ignored} | |
| # Update each package individually |
Do not be the person who has practiced 10,000 things once, but be the person who has practiced one thing 10,000 times.
— Intentionally misquoting Bruce Lee
- Write a lot of code. Physically type code and run it (if either part is missing, it is not quality code practice).
- Think of coding practice as a portfolio. It should be a mix:
- 40-60% Easy-for-you fundamentals. Practicing Pythonic idioms to solve common atomic problems. This develops fluency to solve novel challenges and build up to more advanced coding.
- 20-30% Difficult-but-possible problems. LeetCode and similar is good for this level.
Follow these steps:
-
Don't Panic! Relax and realize that you will solve this problem, even if it takes a little bit of messing around. Banging your head against the computer is part of your job (both as a student and as a professional programmer). Remember that the computer is doing precisely what you are telling it to do. There is no magic.
-
Determine precisely what is going on. Did you get an error message from Python? If it is a
SyntaxError, a helpful guide is here. Also, running your code in Python 3.11 or higher has improved error messages. -
Python error messages include a stack trace. There could be a number errors throughout the stack. You read a stack trace from bottom to top. Go slowly and understand each character and each line.