Udit (@somepythonista) header
Udit (@somepythonista) profile picture

I write code with #python & #django.

India
Joined March 2011
I'm seeking to #Connect with folks interested in: 🌐 Web Development ⬅️ Backend 🛠️ System Design 💾 Databases ☁️ Cloud / DevOps 💻 Software Engineering 🔓 Open Source #buildinpublic #100DaysOfCode #letsconnect #webdevelopment #pythonprogramming #javascript #Python
41
29
2,722
Google wants to decide what you can and cannot install on YOUR phone.
2
11
1
32
2,290
Hi @mattpocockuk, I was using your Teach skill and remember you mentioning “smart zones” in models. If I’m using Teach to learn a topic through multiple lessons, should I clear the conversation after each lesson to keep the model in the smart zone, or is that not relevant here?
2
2
1,172
Diving into React with @hiteshdotcom's tutorials has been a game-changer! 🚀 Check out this cool app I built using React, Leaflet and GeoJSON data letting you explore and personalize maps of Indian states. indiamaps.netlify.app #buildinpublic #100daysofcode #javascript
2
141
1/ Ever wondered why responses from AI tools like ChatGPT or Bard seem to appear as if someone is typing them out in real-time? 🤔 It's done through HTTP Streaming, so let's dive into it and see how it enhances user experience. 🧵 #pythonprogramming #Django #webdeveloper
2
1
4
215
6/ Before wrapping up, don't forget to include the view in your urls.py file and open the URL in your browser to experience the smooth streaming firsthand! #pythonprogramming #django
1
3
74
7/ Want to dive deeper into HTTP Streaming? Check out the Django docs on StreamingHttpResponse for more insights: docs.djangoproject.com/en/5.… Hope this thread was helpful! Feel free to follow for more tips. 🐍👋
2
70
1/ Mutable objects in Python 🐍, like lists and dictionaries, are powerful but can lead to confusion. Ever faced pitfalls while using them? Let's dive into common issues and how to avoid them! #Python #pythonprogramming #pythonquiz
1
1
4
240
5/ For dictionaries or lists with nested data, use deepcopy to avoid nested object mutation:
1
3
57
6/ By grasping the nuances of mutable objects and mastering copy techniques, you'll write cleaner and more predictable Python code. Happy coding! 🚀 #Python #programming
3
47
1/ Ever wondered why you can update the value of a string or integer variable in Python, even though we say integers and strings are "immutable"? 🤔 Let's dive into the fascinating world of Python's memory management to find out! 🧵 #pythonprogramming #Python #pythonquiz
1
1
78
5/ The id() function returns a unique identifier for an object, which in the case of CPython is the object's memory address. This explains why the id() changes when you update an "immutable" variable.
1
1
49
6/ You can try the same exercise with string variables and you'll notice the same behavior.
1
41