I am building a team roster application. It takes a team class (this is a quick mockup not the actual class as my question does not pertain to it)
class Team {
function __construct($teamName, $roster){
$this->setName($teamName);
$this->setRoster($roster);
}
I didn't include the set functions because this class is ...
This post (When not to comment code) has a great discussion about commenting styles.
I agree with the sentiment to commenting the intent of the code ("why") rather than the "what".
It occurred to me that perhaps we should be placing the comments after the code, like this:
_checkForUpdatesThread = new Thread(new ThreadStart(upd...
I can't seem to find this one!
So say someone like "Joe" (the Author) submits his code into the svn repository with the message "Fixed this bug and that bug yada yada" (his Comments).
I'd like to get, via the svn.exe command line, the Author and his Comments for the latest revision.
Maybe someone can tell me what arguments I could use ...
Is there a python script or tool available which can remove comments and docstrings from python source?
it should take care of cases like
"""
aas
"""
def f():
m = {
u'x':
u'y'
} # faake docstring ;)
if 1:
'string' >> m
if 2:
'string' , m
if 3:
'string' > m
Edit:
So a...
I´m searching for a way to display the userimage next to the name of a Blog-comment in sharepoint 07. First idea was to add a Image column to the comment list and use a add event to fill it, but this would not catch a change of the userimage and I still have no control over the rendering.
Thanks for any suggestion
ren
...
Does anybody have a nice well structured starting comment for a file? I'm looking for something that looks nice, either fancy or very professional.
By general comment I mean the comment at the top of a file showing your name and purpose of the file. Like this one:
/********************************************************
...
Here's a fragment of code I'm prototyping that should, by all accounts, never see the light of day. I'll refactor it and clean it up before I merge it into my project.
However, it seems to be working and I happened to be listening to Arlo Guthrie when I was working on it.
#!/usr/bin/env python
import re
expr = re.compile(r'\[[0-9][-0...
I am new to rails so go easy. I have created a blog. I have successfully implemented comments and attached them to each post. Now...I would like to display, in the sidebar, a list of the most recent comments from across all posts. I think there are two things involved here, an update to the comment_controller.rb, and then the call from t...
Hi guys! I'm in the process of coding my very first blog. With the help of various tutorials, and other forums I have managed to gather a semi-working code.
Right now I have a code that takes and displays the comment, but the problem is coordinating which comments go on which post. My current set up is all my post are HTML files, and t...
I just found out you can use <!-- --> brackets in PHP to inject commands in unsecured forms. I couldn't find any information about these brackets in PHP. I know they're used in XML structures. I tried googling but google simple escapes those brackets.
Are they similar to /* */ comments in PHP?
Edit: Here's where I found out.
http://na...
My excel comment is gone under the cell ...how to make it always on top?
...
hi!
The copy of joomla i'm using is edited by the super administrator to not to show the unnecessary menus like installing/uninstalling modules etc etc..
but now, i want to set the permissions of Jcomments and i can't find the menu anywhere to do that..
i found a simple settings page using administrator/index.php?option=com_jcomments&ta...
I have a blog, and I'm using Disqus for comments. I want to give users the ability to tag comments, but I can't figure out where in the code this would go. Any help would be appreciated.
...
A typical chat widget will have a log of messages displayed in chronological order with the most recent message at the bottom. An input field is usually displayed below the log.
Comment systems, like those on YouTube, seem to vary. Some display most recent comments up top, while some display most recent comments at the bottom. The lo...
Is there a built-in command or tool that can reflow C# comments in Visual Studio?
Sometimes, a section of code requires several lines of comments, and after extensive editing you have to manually insert the line breaks in the appropriately places so that it does not flow past the right edge of your editor window. I'd like to be able to ...
<!-- <script type="text/javascript">/*<![CDATA[*/ c-- ;//]]></script> -->
When I have the above line in the <head> section of a plain html page, Firefox 3.5.5 renders the trailing --> as text. If I change c-- to c- it doesn't. Any ideas what's going on here? I getting an artifact on my pages with this due to a very large script th...
Let's say I have a function called DisplayWhiskers() which puts some slashes and backslashes on the screen to represent an animal's whiskers like this: /// \\\.
I might write a comment for this function along the lines of
// Represents an animal's whiskers by displaying three
// slashes followed by a space and three backslashes
But ...
Well I need to implement the comments feature on a custom coded social networking website. The comments need to be implemented on various pages like videos, pictures, albums etc etc similar to facebook.
What would be the best practice for implementing this ?
Making one global comments table with fields like this, and grab comments base...
I'm finding comments on code starting to get annoying. I feel that once you achieve some level of expertise, code is pretty much self documenting. But comments are still a necessity.
What I would like to know if there's such a plugin or IDE with this idea of comments separated from the code. If such a thing doesn't exists, what ideas do...
I'm new to ANTLR and i've come up with this lexer rule to parse out comments, will it work?
COMMENT_LINE : (COMMENT (. - LINE_ENDING)* LINE_ENDING){$channel=hidden};
(I couldn't find anything regarding syntax such as this in the docs)
...