They probably encompass everything the function originally was supposed to do, but not all the additions that got crammed in over time.I have to deal with a metric fuckton of legacy code all the time, so the definition at the top rarely encompasses even a fraction of what it's supposed to do, and thus in-function comments are essential.
How I wish that were true. What I've found usually happens:They probably encompass everything the function originally was supposed to do, but not all the additions that got crammed in over time.
Well, now I know why you married a priest.you don't fix any of the existing warnings unless you're re-writing the line anyways. Because there's 10s of THOUSANDS of them.
I would actually endorse that approach for a beginner, though I think I'd also agree with your prof. It CAN go too far.Back when I was first learning to code, my comments occupied two to three times more lines than my code did. I basically wrote out detailed descriptions of what every line of code was supposed to do.
My professor once took a look at my code, and just shook his head and said, "I think that's a bit much."
Make sure you let us know how it works for you.
Thank you for following up.Well. I bought the Netgear R6250 and I'm really unhappy with it.
For anyone else who thought this looked interesting, they decided to go into a little more detail and actually show how they built it.Any reason you wouldn't want to go home-brew?