So one thing I think that gets lost is, to me, the most important quality in code is: how easy is it to debug. Like, I remember once having to maintain this guy's code where he just went crazy on C++ templates. And like, he proved that he's very smart and clever, but it made his code practically unusable since nobody could figure it out, and trying to debug a template masterpiece is like the hardest thing in c++ codi…
Forget about inherent complexity, just having good error messages is hard! I spent hours this week debugging a test that kept failing in EXPECT_EQ(result.status(), SUCCESS) Since this was a codebase I hadn't ever worked in before, I spent quite a while flailing around trying to figure out where I needed to add logging and eventually realized that `result` had more error details that the assertion was hiding from me.…
https://chromium.googlesource.com/chromium/src/+/master/net/...