Advertisement
Membership
Login
ACCU Buttons
Programming Topics or Overload Journal #39 - Sep 2000
Browse in : |
All
> Topics
> Programming All > Journals > Overload > 39 All of these categories |
- Options:
- View Article Map
- View Archives
Description : Set and collated by Roger Orr. A book prize is awarded for the best entry.
Category: [ Programming Topics | CVu Journal Vol 30, #6 - January 2019 | Student Code Critiques from CVu journal. ]
Description : Set and collated by Roger Orr. A book prize is awarded for the best entry.
Category: [ Programming Topics | CVu Journal Vol 27, #1 - March 2015 | Student Code Critiques from CVu journal. ]
Description : Set and collated by Roger Orr. A book prize is awarded for the best entry.
Category: [ Programming Topics | CVu Journal Vol 27, #2 - May 2015 ]
Description : Set and collated by Roger Orr. A book prize is awarded for the best entry.
Category: [ Programming Topics | CVu Journal Vol 27, #4 - September2015 ]
Description : Set and collated by Roger Orr. A book prize is awarded for the best entry.
Category: [ Programming Topics | CVu Journal Vol 27, #5 - November 2015 ]
Description : Set and collated by Roger Orr. A book prize is awarded for the best entry.
Category: [ Programming Topics | CVu Journal Vol 28, #2 - May 2016 ]
Description : This has a database of code generation tools and also articles and interviews on CG approaches.
Added on : 21 October 2007 13:34:24 +01:00
Description :
We have all seen comments in source files which look more like executable code than documentation.
The first line in the body of the for loop below is such a comment: you might expect to be able to remove the leading slashes and have code which compiles and runs, but functions slightly differently.
What did the author of this comment intend?
Example 0
for (Surfaces::iterator sf = surfaces.begin(); sf != surfaces.end(); ++sf) { // std::cout << "Drawing: " << *sf << "\n"; sf->draw(); }
OK, I’m being disingenuous. I’m aware that the comment isn’t really a comment, it’s commented-out code. And, like any tolerant and capable programmer, by examining the surrounding context I can guess why this code has been commented out.
This article examines how to comment out code, then describes various problems which lead to code being commented out, before finally arguing that there’s often a better solution to these problems.
Source : Hand entered.
Category: [ Programming Topics | CVu Journal Vol 16, #1 - Feb 2004 ]
Category: [ Programming Topics | CVu Journal Vol 11, #4 - Jun 1999 ]
Description : Maintaining code is vital to keep it working. Tom Guest explores what happens when you neglect it.
Category: [ Programming Topics | Overload Journal #92 - August 2009 ]
Category: [ Programming Topics | CVu Journal Vol 15, #5 - Oct 2003 ]
Description : Alan Griffiths outlines an Open Source project and invites contributions.
Category: [ Programming Topics | CVu Journal Vol 28, #2 - May 2016 ]
Description :
The first step here in finding problems in the code is to identify the problem the code is trying to solve. The discussion in the C Vu article is basically about curiosities in the way in which the C++ standard library std::istream is defined, but I will make the perhaps unwarranted assumption that what the problem the code is really about is not the uses of std::istream, but rather, more generally, how to write a read routine that can effectively and safely capture data from an input stream. Actually as the first problem below illustrates neither of these issues can be effectively addressed without the other.
Category: [ Programming Topics | CVu Journal Vol 16, #1 - Feb 2004 ]
Description : Comments can help or hinder. Kevlin Henney assesses when to avoid them.
Category: [ Programming Topics | Overload Journal #157 - June 2020 ]
Description : A letter has flooded in from Colin Masterson, the author of our series on structured programming:
Category: [ Programming Topics | CVu Journal Vol 1, #2 - Dec 1987 | Letters to the Editor ]
Description : We are taught that adding comments to code is a good thing and adds value. In practice this value is seldom, if ever, realised. Mark Easterbrook makes the case for a better way.
Category: [ Programming Topics | Overload Journal #73 - Jun 2006 ]
Description : In our last issue, we offered the case against comments; in this issue, William Fishbourne responds in defence. He argues that it is not the practice of commenting that it is evil, it is the thoughtless commenter.
Category: [ Programming Topics | Overload Journal #74 - Aug 2006 ]
Category: [ Programming Topics | CVu Journal Vol 11, #5 - Aug 1999 ]
Description : Chris Oldwood goes through the motions of version control.
Category: [ Programming Topics | CVu Journal Vol 28, #5 - November 2016 ]