Integrating Gemini API: From First Request to Streaming ConversationsIf you want to get hands-on with Gemini's API quickly — without spinning up a local environment — Google Colab is the fastest path. This post walks through the full integration: from understanding whaApr 28 · 6 min readsomusblog.hashnode.dev
04_Numbers in PythonIn lower-level languages like C or Java, a number is often just a direct mapping to a processor register (a 32-bit or 64-bit block of memory). In Python, however, numbers are abstractions—they are fully-fledged objects allocated on the heap. We’ll di...Jan 25 · 10 min readsomusblog.hashnode.dev
03_Understanding Variables: Labels vs. Boxes ExplainedIf you are coming from languages like C++ or Java, Python variables are probably gaslighting you. They look the same, they use the same = syntax, but they behave completely differently under the hood. I realized I had the wrong mental model. In Pytho...Jan 11 · 4 min readsomusblog.hashnode.dev
02_The “Mutable Default Argument” Trap (and Why It Happens)If you’ve been coding in Python for more than a week, you’ve probably heard the golden rule: “Everything in Python is an object.” But here’s the catch that confused me early on:some objects are chill and let you change them. Others are stubborn and...Jan 8 · 4 min readsomusblog.hashnode.dev
01_Python Under the HoodWhen I first started writing Python, I often heard it described simply as an "interpreted language." I imagined the computer reading my code line-by-line and executing it on the fly. While that’s not entirely wrong, it is a massive oversimplification...Jan 8 · 5 min readsomusblog.hashnode.dev