Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't do Rust or Javascript so I can't judge, but I opened a file at random and feel like the commenting probably serves as a good enough code smell.

From the one random file I opened:

/// Real LSP server implementation for Lens pub struct LensLspServer

/// Configuration for the LSP server

pub struct LspServerConfig

/// Convert search results to LSP locations

async fn search_results_to_locations()

/// Perform search based on workspace symbol request

async fn search_workspace_symbols()

/// Search for text in workspace

async fn search_text_in_workspace()

etc, etc, etc, x1000.

I don't see a single piece of logic actually documented with why it's doing what it's doing, or how it works, or why values are what they are, nearly 100% of the comments are just:

function-do-x() // Function that does x



Sure, this is a reasonable point, but understand that documentation passes come late, because if you do heavy documentation refinement on a product under feature/implementation drift you just end up with a mess of stale docs and repeated work.


Early coding agents wanted to do this - comment every line of code. You used to have to yell at them not to. Now they’ve mostly stopped doing this at all.




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

Search: