TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Minimal Advice to Undergrads on Programming

6 pointsby antiformover 16 years ago

1 comment

jackowayedover 16 years ago
Does anyone comment to that degree?<p>My general policy is to follow the "Use meaningful names" policy and use that as the commenting. The meaningful names of the function give you an idea of what they do and what side effects they have. The meaningful names of the parameters tell you what they do.<p>Maybe it's not a perfect system, but I think it's a happy medium between eating up a lot of time commenting and having totally unreadable code
评论 #411250 未加载
评论 #411327 未加载
评论 #411576 未加载
评论 #411522 未加载
评论 #411355 未加载
评论 #411934 未加载