Why do Web developers leave comments in the code?
Use comments to document your page’s development. Comments can also document content, table rows or columns, track changes or whatever you would like.
Can you comment on YouTube anonymously?
How do I hide my name on YouTube comments? Youtube will always show your public channel name when you are commenting. There’s no anonymous mode (like on Quora, for example). But unlike Facebook and Quora, you can use just about any name for your channel.
Can you comment on YouTube live without an account?
You can watch videos on YouTube without signing in, but you can’t add comments until you sign in with your Google account. When you leave your first comment, you agree to set up your own YouTube channel. This doesn’t mean you have to post videos (though you can).
Does commented code affect website performance?
The short answer is yes. It does because it will add to the overall size of the document and affect the download time for the html or css file. That being said, if you have a few lines commented out it’s not a big deal. If you have a few hundred lines of comments then you may see a slight change in load time.
Where to put comments in an IF-THEN-ELSE?
For me, a comment above the IF explains the IF statement itself. For example, if the condition being tested is particularly complex. A comment in the block below the IF or ELSE describes what’s going once the condition has been evaluated and a choice made.
How should one comment an IF-ELSE structure?
Comments are very much a personal thing, and (as can be seen by some of the earlier answers) generate as much debate as the code. In simple cases, comments detract from the code. But assuming a more complex condition, I prefer:
What kind of comments can you leave on YouTube?
YouTube’s community guidelines prohibit nudity/sexual content, violent/graphic content, hateful content, spam, harmful/dangerous content, threats, and content that doesn’t respect copyright. For comments, the particularly relevant prohibitions are hateful comments, threatening comments, and spam. Think about why you’re commenting.
When do comments detract from the code?
In simple cases, comments detract from the code. But assuming a more complex condition, I prefer: In any case, the comments must not just repeat the code. I wouldn’t comment in those particular cases at all–the comments don’t add any value over your already clear code.