Simulating Blackjack the Hard Way
Building a 28,000-line Python blackjack simulator with event-driven architecture, immutable state, and realistic shuffle physics to understand casino math.
Topic
8 articles spanning 2006–2026
Building a 28,000-line Python blackjack simulator with event-driven architecture, immutable state, and realistic shuffle physics to understand casino math.
Solving Project Euler problems in Python, from brute force to optimized algorithms like prime factorization with the Sieve of Eratosthenes.
What monkey patching is, how it works in Python and Ruby, and why the two communities think about it so differently.
Exploring cyclomatic complexity metrics in Django, the Python web framework, and why software engineering measurements are rarely applied to open source projects.
TurboGears API reaches 1.0 stability with no breaking changes ahead. A milestone for Python web development alongside Django's maturity.
Exploring Python's core philosophy and design principles from PEP 20, a guide to writing beautiful and readable code.
Exploring Django and Turbogears for web development, weighing their strengths and considering Ruby on Rails as an alternative to traditional PHP.
Exploring the potential of running dynamic languages like Python, Ruby, and Perl on the JVM, and why Sun should open-source it.