Hey, Philip! FB you
In this case, it was a lazy property that could be accessed by two different threads at the same time under a specific condition.
We added a lock around the access. Before accepting the fix, I checked that it actually prevents concurrent initialization, that the lock covers the relevant access paths, and that it doesn’t introduce deadlocks or unexpected side effects.
@hualulinyun And the tricky part is that those assumptions eventually become part of how the system works. Nobody questions them until something changes (or breaks)…
Sometimes the hardest part of adding a new feature isn’t the feature itself.
At some point, you stop asking “Why is this so complicated?” and start asking “What happened here?” 😅
Remote, hybrid or office? What’s your thing?
I usually work from home, but went to the office today. Didn’t get much coding done, to be honest. Mostly chatted with the team, caught up with people and had a few coffees.
And you know what? I actually enjoyed it.