[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"sanity-0lSJdSQD26SPuc4qEAkJgU6sf0VK78UnMGwGTb3bwjA":3},{"data":4,"sourceMap":-1},{"info":5,"latest":20},{"_createdAt":6,"_id":7,"_rev":8,"_type":9,"_updatedAt":10,"avatar":11,"employee":16,"name":17,"slug":18},"2023-05-23T16:27:18Z","wp-author-242","dgl3SCUzppW3U2LvCoP35A","blogAuthor","2023-06-20T15:05:08Z",{"_type":12,"asset":13},"image",{"_ref":14,"_type":15},"image-95df5348b1218788366ea950191019be16c98a8a-1024x1024-jpg","reference","none","Ellen Spertus",{"current":19},"espertus",[21,52],{"_id":22,"author":23,"commentCount":29,"comments":30,"excerpt":31,"featureTag":27,"image":32,"publishedAt":35,"slug":36,"sponsored":27,"tags":38,"title":51},"wp-post-18386",[24],{"_id":7,"avatar":25,"name":17,"role":27,"slug":28},{"_type":12,"asset":26},{"_ref":14,"_type":15},null,{"current":19},80,true,"While there are many resources to help programmers write better code—such as books and static analyzers—there are few for writing better comments. While it's easy to measure the quantity of comments in a program, it's hard to measure the quality, and the two are not necessarily correlated. A bad comment is worse than no comment at all. Here are some rules to help you achieve a happy medium.",{"_type":12,"asset":33},{"_ref":34,"_type":15},"image-414a8fbdab9119e924482a44f8c314a09e388768-1200x630-png","2021-12-23T14:38:45.000Z",{"current":37},"best-practices-for-writing-code-comments",[39,47],{"_createdAt":40,"_id":41,"_rev":42,"_type":43,"_updatedAt":40,"slug":44,"title":46},"2023-05-23T16:43:21Z","wp-tagcat-code-for-a-living","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":45},"code-for-a-living","Code for a Living",{"_createdAt":40,"_id":48,"_rev":42,"_type":43,"_updatedAt":40,"slug":49,"title":50},"wp-tagcat-comments",{"current":50},"comments","Best practices for writing code comments",{"_id":53,"author":54,"commentCount":59,"comments":30,"excerpt":60,"featureTag":27,"image":61,"publishedAt":64,"slug":65,"sponsored":27,"tags":67,"title":97},"wp-post-13933",[55],{"_id":7,"avatar":56,"name":17,"role":27,"slug":58},{"_type":12,"asset":57},{"_ref":14,"_type":15},{"current":19},77,"As a computer science professor, I encourage students to learn from mistakes, whether their own, mine, or famous examples. I feel it’s time to shine a light on my own mistakes to keep myself humble and in the hope that someone can learn from them.",{"_type":12,"asset":62},{"_ref":63,"_type":15},"image-9eee395a8adcadb4efbb46ad1cd85fa34f157571-1201x631-png","2019-10-29T14:55:25.000Z",{"current":66},"my-most-embarrassing-mistakes-as-a-programmer-so-far",[68,73,75,77,81,85,90,92],{"_createdAt":40,"_id":69,"_rev":42,"_type":43,"_updatedAt":40,"slug":70,"title":72},"wp-tagcat-bulletin",{"current":71},"bulletin","Bulletin",{"_createdAt":40,"_id":69,"_rev":42,"_type":43,"_updatedAt":40,"slug":74,"title":72},{"current":71},{"_createdAt":40,"_id":41,"_rev":42,"_type":43,"_updatedAt":40,"slug":76,"title":46},{"current":45},{"_createdAt":40,"_id":78,"_rev":42,"_type":43,"_updatedAt":40,"slug":79,"title":80},"wp-tagcat-lessons-learned",{"current":80},"lessons-learned",{"_createdAt":40,"_id":82,"_rev":42,"_type":43,"_updatedAt":40,"slug":83,"title":84},"wp-tagcat-mistakes",{"current":84},"mistakes",{"_createdAt":40,"_id":86,"_rev":42,"_type":43,"_updatedAt":40,"slug":87,"title":89},"wp-tagcat-stackoverflow",{"current":88},"stackoverflow","Stackoverflow",{"_createdAt":40,"_id":86,"_rev":42,"_type":43,"_updatedAt":40,"slug":91,"title":89},{"current":88},{"_createdAt":40,"_id":93,"_rev":42,"_type":43,"_updatedAt":40,"slug":94,"title":96},"wp-tagcat-career-advice",{"current":95},"career-advice","career advice","My Most Embarrassing Mistakes as a Programmer (so far)"]