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

I write code with #python & #django.

India
Joined March 2011
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
5/ Next, we use Django's StreamingHttpResponse class, passing our generator function as the streaming content. Plus, we set the Content-Disposition header value to attachment ensuring the file is downloaded by the browser. See how it's done below. #pythonprogramming #django
1
32
4/ First, we define a generator function to stream each row of the CSV file to the user, ensuring a smooth experience. Check out the code snippet below. #pythonprogramming
1
16
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
Replying to @connect__alok
I recently finished this tutorial by @traversymedia and it was pretty good 😁 youtu.be/LDB4uaJ87e0?si=idce…
1
9
5/ For dictionaries or lists with nested data, use deepcopy to avoid nested object mutation:
1
3
57
4/ Unlike immutable objects, modifying mutable ones inside a function affects the original object. Avoid surprises by making a copy before modifying!
1
12
3/ Let's take a look at an example: In contrast, immutable objects like int, strings and tuples retain their original value when passed to functions.
1
22