Muhammad Ghulam Azad Ansari’s Post

Spent 3 hours debugging a production issue last week. Turned out someone had named a variable "data" inside a function that also used an outer "data" variable. No error. No warning. Just completely wrong output silently the whole time. Please, for the love of everything, give your variables actual names. "data", "info", "temp" and "obj" are not variable names, they're apologies. #SoftwareEngineering #CleanCode #Programming #DevLife #CodingTips

  • text

How did a function that constantly returns incorrect values end up in production?

Like
Reply

To view or add a comment, sign in

Explore content categories