Hacker News new | past | comments | ask | show | jobs | submit login

My team comments way too much. I constantly see stuff like this

def fetch_data(comment_id):

  Args:  
    - comment_id: The id of the comment to fetch.

  Returns: The comment data
  
# Fetch comment data

data = fetchCommentData()






Mine do this as well, but in PHP. They adopted docblocks over a decade ago and never defined any best practices or used any tools to check them, so comments don't even match the code half of the time. We're on PHP 8 now which can enforce types in the code itself but still have to include docblock types because that's how it has always been done, so the problem persists. It's maddening



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: