Learned the hard way that comments aren't for me, they're for the next person
I used to write comments like 'this loops through the array' which is just restating the code. Took a coworker at my last job in Austin to point out that comments should explain the 'why', like why we're using a while loop instead of a for loop. Now I ask myself if a comment would still make sense to someone who's never seen the code. Anyone else have that moment where a small code review changed how you write? I'm curious what your old comments looked like.