Coding

Post Image

Using Types in Python: A Simple Way to Improve Your Code

Having spent most of my career working with statically typed languages, I’ve often found Python challenging — especially when trying to understand the structure of data and how it transforms throughout a codebase.Recently, my team inherited a Python project that lacked type annotations. As we began working on it, we quickly ran into issues in understanding how data was structured and how it changed across different parts of the codebase — making even small modifications risky and time-consuming.Among other issues, the use of a...

Read
Post Image

Locking in Databases and Isolation Mechanisms

 should become a familiar term if you are dealing with locks. In a large application accessed by thousands of users, concurrency is inevitable. Your application should be able to handle multiple requests simultaneously. When you execute operations concurrently, the results can be conflicting. For e.g. if you are reading a row while someone else is writing to it simultaneously, then you are bound to get inconsistent data. If we execute these transactions sequentially, then we don’t need concurrency control. But...

Read