Posts

Showing posts from September, 2025

The Code We Leave Behind

Image
  The Code We Leave Behind # python # coding # programming # softwaredevelopment Grace Hopper's keynote at AWS re:Invent 2025 Rear Admiral Grace Hopper (1906-1992) pioneered compiler theory and made programming accessible to everyone. She believed that the most dangerous phrase in any language was "we've always done it this way." This is Part 3 of an ongoing series imagining Grace Hopper reviewing modern Python code. What would she say to 10,000 developers at the world's largest cloud computing conference? The stage at AWS re:Invent is enormous. Ten thousand developers fill the convention hall, laptops glowing in the dimmed lights. The screen behind me—a wall of pure light—displays a single line of code in stark white text on a black background. I'm 119 years old, technically. My knees protest every time I stand, but my mind is as sharp as it was in 1952. And I have things to say. "Good morning," I begin. "I'm Grace Hopper, and I'm here ...

The Frozen Collection Vault: frozenset and Set Immutability

Image
  The Frozen Collection Vault: frozenset and Set Immutability # python # coding # programming # softwaredevelopment Timothy's membership registry had transformed how the library tracked visitors and members, but Professor Williams arrived with a problem that would reveal a fundamental limitation of his set system. The Dictionary Key Crisis "I need to catalog research groups," Professor Williams explained, "where each group is identified by its members. Some groups overlap—Alice and Bob form one research pair, Bob and Charlie form another. I want to use the member sets as keys in my catalog." Timothy confidently tried to implement her request: research_catalog = {} group_one = { " Alice " , " Bob " } group_two = { " Bob " , " Charlie " } research_catalog [ group_one ] = " Quantum Physics Project " # TypeError: unhashable type: 'set' The system rejected his attempt. Margaret appeared and smil...

The Membership Registry: Set Operations and Uniqueness

Image
  The Membership Registry: Set Operations and Uniqueness # python # coding # programming # softwaredevelopment Timothy had mastered his dictionary filing cabinet, but one morning brought an unusual request that would introduce him to an entirely different cataloging system. Professor Chen needed to track library membership—not who checked out which books, just whether someone was a member or not. The Value-Free System "I don't need to store any information about the members," Professor Chen explained. "I just need to answer one question instantly: Is this person a member? Yes or no." Timothy reached for his dictionary cabinet, but Margaret stopped him. "You're thinking like a key-value librarian. Professor Chen doesn't need values—just membership verification. Follow me." She led him to a simpler filing system labeled "The Membership Registry." Unlike the dictionary cabinet with its key-value pairs, this system stored only the keys th...