Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
xavierd
on May 3, 2015
|
parent
|
context
|
favorite
| on:
Ask HN: Is my code any good?
I would say you're documenting way too much: the obvious shouldn't need documentation.
cFire
on May 3, 2015
[–]
It's more a matter of what you consider to be obvious in this case. In my experience, especially regex matching can become very not-so-obvious if you're coming back to code you wrote some time ago. Or if someone else is reading it.
richardwhiuk
on May 3, 2015
|
parent
[–]
# Do NAT table lookup n = natlookup( p1, p2 )
is clearly unnecessary. If natlookup doesn't do a NAT table lookup, it's a badly named function.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: