Python
fromRealpython
1 week agoImplementing the Factory Method Pattern in Python Quiz - Real Python
The quiz tests understanding of the Factory Method Pattern in Python.
Autonomy is an output of a technical system. Trustworthiness is an output of a design process. Here are concrete design patterns, operational frameworks, and organizational practices for building agentic systems that are not only powerful but also transparent, controllable, and trustworthy. In the first part of this series, we established the fundamental shift from generative to agentic artificial intelligence. We explored why this leap from suggesting to acting demands a new psychological and methodological toolkit for UX researchers, product managers, and leaders.
If you spend long enough in the programming world, you'll come across the term singleton at some point. And if you hadn't seen this term yet, well, now you have! In Python, you don't need singleton classes. Almost never. But creating one is a great exercise in understanding how Python creates objects. And discussing alternatives to a singleton class helps you explore other aspects of Python.
Service design is evolving and we're quickly moving past static screens and pages toward dynamic, contextual experiences. In my previous article, Service Design in the Era of AI Agents, I discussed this evolution in detail. After reading it, many people reached out with one specific question: what exact design patterns will we use for GenUI apps? In this article, I decided to discuss specific foundational patterns for GenUI apps.