News for hackers. Stuff that matters.
Re:Ask HN: What code do you consider as clean code? by hamedb on Monday January 17, 2022 @04:20PM (#29971801)
oh thanks for giving a great example definitely well written code. been reading this https://github.com/apache/guacamole-client/blob/master/guaca...

don't you find that comments are taking a lot of space more than the actual code or do you think this is what a takes to avoid confusion. I found that single line comments are much better, compact and enough to explain what is happening as opposed to those multiline comments that take so much space.

Re:Ask HN: What code do you consider as clean code? by joshink1 on Saturday January 22, 2022 @05:27AM (#30035424)
The multi-line comments follow JSDoc syntax, which many IDEs can parse to give the developer useful suggestions. https://jsdoc.app/about-getting-started.html