Python
Airflow UnitTest with DAG BAG
Explains DAG_BAG-based Airflow unit testing and CI setup with GitHub Actions.
Python's with Statement and Context Managers: The Elegant Alternative to try-finally
You probably use with open(...) all the time without a second thought. But have you ever wondered how the file gets closed automatically?
List vs Generator in Python: Why Use Generators When Both Work in a For Loop?
Lists and generators look interchangeable in a for loop, but they differ fundamentally in evaluation strategy and memory usage.