E-Learning
Tutorials
Practical tutorials for the work we actually do. Pick one, read it in order, and apply it.
Any topics
APIs and Integrations
7
Automation and Scripting
3
Data Structures and Algorithms
2
Databases
11
Deployment and Containers
14
✓ Object-Oriented Programming
3
Packaging and Dependencies
5
Performance Optimization
24
Programming Patterns
10
Security
5
Testing and Debugging
10
Type Systems
14
Web Development
15
0 likes
Likes for this tutorial.
Writing a Custom Iterator Class in Python With __iter__ and __next__
Level: Advanced
A for loop calls iter() once and next() until StopIteration. Write __iter__ and __next__ yourself, avoid the iterator that only works once, and know when a generator in __iter__ does the same job in fewer lines.
6 min read
0 likes
Likes for this tutorial.
Writing Your Own Python Context Manager, With a Class or contextlib
Level: Advanced
Write a context manager when something must be undone no matter how the block ends. Build one as a class and with @contextmanager, keep yield inside try/finally, and don't swallow errors by accident.
5 min read
0 likes
Likes for this tutorial.
Fix a Bound Event Listener That Will Not Detach
Level: Advanced
Trace a wrong callback receiver, bind one stable listener, and verify start, stop and restart without duplicate or stale subscriptions.
6 min read