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

It's probably worth examining why you think my PoV is "insane and crazy" as that's not a normal reaction.


Comments intermingled with code help me navigate as I'm trying to accomplish my task.

A simple comment every "paragraph" of code or so helps me narrow down the amount of code I need to mentally parse to get to the part that's actually relevant to what I'm trying to do.

So since we're supposed to be on the same team, explicitly saying "go fuck yourself, load a mental model of the entire codebase to find the part that's relevant to your task, I'm not going to help you" does indeed seem insane and crazy.


I feel like you're missing the entire point of abstraction. When you're looking at code, you should be able to understand what it does by way of how it's structured, and you shouldn't have to load the entire codebase in your brain to do that.

You see a function called, "getCustomer" you shouldn't have to dive into that function to understand what you're getting back. It's a customer, no need to figure out how it got the customer or what the format is, etc.

Whether or not you realize it, you've gotten to the point of arguing against a lot of really common and proven out design concepts (abstraction layers, orthogonality and the LoD, data types, etc.) without even realizing.

"How can I know how the program works without comments unless I load the entire thing into my brain all at once?" is not a question you ask if you understand these principles, because you know you won't need to.


Your argument is similar to the “I can write C because I don’t write bugs”


Howso?




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

Search: