Most voted "comments" questions
Comments on programming languages, are text snippets in the application source code that are not interpreted as part of the code, serve to assist the developer in understanding the code.
Learn more…34 questions
Sort by count of
-
36
votes3
answers1858
viewsHow to know the right measure of comments?
I went through PHP, C, C++, Javascript and now I’m working with C#. All this time I’ve always heard that it’s important to have well-commented codes, but I never knew the right measure of comments.…
-
21
votes4
answers694
viewsWhy not comment on the code?
After reading a bit of Robert C. Martin’s Clean Code, he says that it is no use to "make up" a bad code with comments, in other words, try to explain a gambit made there. It is also quoted about…
terminology characteristic-language encoding-style commentsasked 5 years, 4 months ago CypherPotato 9,292 -
15
votes2
answers221
viewsFull snippets of commented codes. Why?
I’m learning PHP and use scripts ready to study them, as a complement. However what I often see is whole snippets of commented code. Does anyone know why? Does it have any function? If the project…
-
13
votes2
answers2284
viewsTODO - What is, what is its utility and how to use it?
I’ve seen enough of that word "ALL OVER", especially in IDE’s and I’ve always been curious to know what it is. Example: // TODO: alguma coisa escrita código.... Now the questions: WHAT’S ALL? What…
-
12
votes1
answer202
viewsWhat are WET Comments?
What are W.E.T., Python comments? Why are they bad?
-
11
votes3
answers1771
viewsCode comments when working in a group
When working in a group, developing code with other people, using specific tools and everything, what is the best way to comment on the code? Well, let’s go to the stage. By owning the project in…
-
10
votes6
answers3344
viewsHow is an agile way to add and remove code comments in VIM?
I don’t want to remove the entire line of code in VIM, what I want is to work with the comment codes. I have 3 purpose cases: Comments with which open and close (usually multiple lines): /*…
-
10
votes4
answers58562
viewsCss comments with // instead of /* */
Place // at the beginning of a line creates an invalid property, i.e., CSS ignores that line. div { background-color: cyan; // background-color: red; } I know the CSS standard is using /* */, but…
-
10
votes2
answers5514
viewsIs there a correct way to comment on a code snippet?
Is there a correct way to comment on a code snippet? For example: // Esconde a tela this.Hide() or would be: this.Hide() // Esconde a tela or even: this.Hide() // Esconde a tela Is there some kind…
-
10
votes2
answers12658
views -
10
votes1
answer169
viewsWhat is formal documentation?
On the website of W3schools they mention the expression "formal documentation". It is Most common to use single line comments. Block comments are often used for formal Documentation. What is a…
-
9
votes0
answers898
viewsComment form does not appear in theme
I am creating a new theme for Wordpress and can not make appear the file comments form comments.php. The other related elements (already saved comments, amount of comments, etc.) usually appear, but…
-
6
votes2
answers338
viewsComments on regular expressions?
REGEX is a very complicated language and not easy to read, but is there any way to describe what that little letter does? Example: Nessa regex: \{.*?[^\}]+\} will capture everything you have in a…
-
4
votes1
answer74
viewsComment equal #Region from Visual Studio
There is similar comment #region Visual Studio in PHP with Netbeans?
-
4
votes1
answer56
viewsSet a standard comment for every new project
I need to define a standard comment, so that in every project that is created it appears, without having to type it every time. Ex.: Author: Pedro H.
c# visual-studio visual-studio-2013 visual-studio-2015 commentsasked 8 years, 3 months ago Pedro Henrique 43 -
3
votes2
answers6412
viewsComments of multiple lines in Visual Basic
It’s like I put multiple-line comments in Visual Basic?
-
3
votes1
answer112
viewsRecommendations for comments on an interface and its contracts
Every day I come across this situation when I will insert comment for an interface and for a class. I wonder if I should use the same interface comments and their contracts, in class and their…
-
3
votes1
answer830
viewsDifference between // and /*...*/
As far as I knew, use // to comment on a line and /*...*/ was the same thing, with the difference that the second covered more than one line if needed. Is there ANY difference between doing // var a…
-
2
votes0
answers409
viewsError Facebook plugin does not count amount of comments
I used the Facebook plugin on my site, for the buttons to like (like), share (share), face box (facepile) and comments (comments). Everything works, except the comment counter in each post, all…
-
2
votes3
answers4406
viewsHow to comment on python3
I’m starting to learn programming, and I’ve already learned the basics of language c++, in this language there is the function of commenting the programming that can be accessed by //, but the same…
-
2
votes2
answers469
viewsHow do I make a comment in HTML?
I wanted to know how to make a comment in Pycharm with HTML. The comment in Python is #, in C is // or /* */, and in HTML?
-
2
votes1
answer130
viewsThere is a standard documentation/software comments in Reactjs
I’m leading a development team on Reactjs with Node.Js, and I’m having a question about how to document or comment this code so it’s nice and easy to read by other devs. Still commenting code? Sorry…
-
1
votes2
answers168
viewsWhere to place comments and javadoc ? Model or Controller?
I’m doing an MVC program, but it’s time to describe in a javadoc what each window does, I was in doubt between putting these comments in the forms (Model), or us controllers of the respective…
-
1
votes1
answer63
viewsOnly the last array item is displayed
How to play a php code, like a comment system. Using this code I was able to make this possible but, in the same way the code returns only the last query item: <?php error_reporting(0);…
-
1
votes0
answers391
viewsPlugin Comments Facebook
Buenas Guys, someone has already had problems with the plugin’s comments Facebook? I integrated to the firm’s website as described on the platform, it appears on the page but does not let anyone…
-
1
votes3
answers254
viewsDifferent comments on Javascript
I noticed that, at least in Notepad++, comments in the Javascript language are treated in two different ways, which are marked with two colors. When I use // and "/* ... */ appears in green and when…
-
1
votes1
answer52
viewsHow to copy the summary of a method with Overload in C#
I’m creating an application where in the classes I have a series of Overload's to optimise its performance and flexibility. Ex: public class Calc { // método original com sumário /// <summary>…
-
0
votes1
answer1173
viewsHow to display Facebook comment count on Wordpress Admin posts page?
I know to display comments on the blog front just add <fb:comments-count href=<?php echo get_permalink(); ?>></fb:comments-count> anywhere in the theme. However, I need to display…
-
0
votes1
answer32
viewsIt is possible to modify the header comment of a file in Pydev
I’ve been experimenting with several Ides for Python, for example PyCharm or the same IDLE. Now I’m trying to use the PyDev as plug-in for Eclipse, and I like it. I wonder if it is possible to…
-
0
votes1
answer67
viewsApprove wordpress comments via email
I am developing a site in Wordpress and I need the approval of the comments in the posts is done through email. I looked for plugins and tutorials on the subject but found nothing. The intention is…
-
0
votes1
answer517
viewsHow to remove all comments from multiple PHP documents at once?
How to remove all comments from multiple PHP documents at once?
-
0
votes2
answers220
viewsItem within comment in PHP
If the "@Return string" inside the encoding of a PHP file is deleted, will the encoding suffer significant changes? I can delete all comments including "@Return string"? And lastly, why did he turn…
-
0
votes2
answers823
viewsHow to read comments from Mysql table fields?
This command SHOW COLUMNS FROM [table name]; Shows the fields of a table and the most important details of them I need to read the field comments, example: COLUMN cod_id INT(10) UNSIGNED NOT NULL…
-
0
votes1
answer127
viewsDescription of a declaration by reference
I have a question in making descriptive comment related to the parameters of these 3 functions below. int proximoClientePreferencial(CLIENTE *filaPreferencial){ void mostrarFilaPreferencial(CLIENTE…