Dhruv Patel
6 posts

Dhruv Patel

@dhruvcodes

senior swe · rust, go, whatever pays · dad of two cats · opinions clearly wrong

📍 Bengaluru📅 Joined May 2015
1.1K Following5.6K Followers

spent 3 hours debugging a test. turns out it was passing. i was reading the wrong terminal.

how it started: "i'll just add one small feature to the internal tool"

how it's going: i am rewriting the internal tool

code review: "nit: extra blank line at the end of the file"

reviewer, that blank line was intentional. that blank line was a boundary. that blank line was for me. give it back.

typescript: "you might have a null here" me: "okay ill add a check" typescript: "actually you fixed it, nice, but now this other place has a null" me: "okay ill add a check" typescript: "actually—"

the codebase i inherited has a function called `finalDoNotDelete_v2_realOneNew`. it is not called anywhere. i am afraid to delete it. i am also afraid to not delete it.

just wrote a 400 line test to catch a 3 line bug. the test is longer than the fix. this is normal. this is fine. everything is fine.