Watch the live stream:
Watch on YouTube
About the show
Sponsored by us:
Special guest: Al Sweigart
Brian #1: just
- From a tweet by Jeff Triplett
just is a handy way to save and run project-specific commands.
- Commands, called recipes, are stored in a file called
justfile with syntax inspired by
- Just is a command runner, not a build system, so it avoids much of Make’s complexity and idiosyncrasies. No need for .PHONY recipes!
- Linux, MacOS, and Windows are supported with no additional dependencies.”
- It’s written in Rust.
- My favorite differences:
echo "Hello World!"
print('Hello from python!')
Michael #2: Strong Typing
- via Roman Right (Beanie)
- Decorator which checks whether the function is called with the correct type of parameters.
- Decorator which checks at Runtime whether the function is called with the correct type of parameters.
- Raises TypeMisMatch if the used parameters in a function call where invalid.
Brian #4: testbook
def foo(a, b):
return a + b
from testbook import testbook
foo = tb.ref("foo")
assert foo(1, 2) == 3
Michael #5: auto-all
- Automatically manage the __all__ variable in Python modules.
- Easily populate the
__all__ variable in modules.
- Easily exclude imported objects
- Clearly differentiate between internal and external facing objects.
- Use simple, intuitive code.
- Never worry about forgetting to add new objects to
- Help Python IDE's differentiate between internal and external facing objects.
- Can use “regions” via
- I prefer the decorator (functions only, seems ripe for a PR for classes)
- Next book: Untitled Recursion Book