dhruvi-shah.hashnode.devThe Secret Life of Protobuf: The Fast, Small, and Mighty Data Format! 🚀Picture this: you’re packing for a vacation ✈️, and instead of neatly folding your clothes, you’re stuffing them into a suitcase with no organization just random piles of socks, shirts, and shoes. That’s what JSON and XML do to your data, stuffing it...Dec 31, 2024·5 min read
dhruvishah.hashnode.dev“with” in Python: The Secret to Cleaner Resource Management✨If you've ever found yourself juggling file handles, database connections, or network sockets in Python, you know how easy it is to forget to close them properly. with is with you for situation just like this 😉 What is the with Statement? The with ...Dec 22, 2024·3 min read
dhruvishah.hashnode.devMetaclasses Demystified: Building Classes that Build Classes! 🚀What’s a Metaclass? In Python, when you define a class, Python uses a metaclass to determine how the class behaves. By default, the metaclass for all classes in Python is type. Think of metaclasses as the architects of your classes. They don’t buil...Dec 16, 2024·5 min read