
Boris
@lokasan
1053 Following
53 Followers
Using Data and Non-Data Descriptors in Python: A Practical Perspective
At first, Python descriptors seem like an advanced, behind-the-scenes feature. But once I started using them directly, especially data and non-data descriptors, they became essential for writing cleaner, more powerful code.
Data descriptors implement both __get__ and __set__, and always take precedence over instance attributes. I used one to validate temperatures — even if someone tried obj.temp = "hot", the descriptor enforced correctness. This gave me full control over data integrity.
Non-data descriptors, with only __get__, are overridden by instance attributes. That’s perfect for cases like @lazy_property, where I compute a value once and store it in the instance for future access — efficient and clean.
The key benefit of descriptors is separation of behavior from logic. I no longer scatter validation or caching across the class — it all lives in small, reusable descriptor objects. 0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
1 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
1 reply
0 recast
1 reaction
How ITIL v4 Supports Development
ITIL v4 (Information Technology Infrastructure Library) is a flexible set of best practices designed to help organizations manage IT services throughout their lifecycle. Here's how it helps with modern software development:
1. Value-Driven Mindset
ITIL v4 starts with the question: What value are we delivering?
This encourages development teams to align with business goals and user needs, not just technical specs.
2. The Service Value System (SVS)
At the heart of ITIL v4 is the Service Value System, which integrates strategy, governance, operations, and continual improvement. It helps teams understand how their work contributes to overall service delivery.
3. Integration with Agile, DevOps, and Lean
Unlike earlier versions, ITIL v4 embraces Agile and DevOps cultures. It supports fast iteration, automation, feedback loops, and cross-functional collaboration — key ingredients in modern development. 0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
1 reaction
0 reply
0 recast
3 reactions
0 reply
0 recast
2 reactions
0 reply
0 recast
2 reactions