Advertisement
Membership
Login
ACCU Buttons
Programming Topics or Design of applications and programs or Overload Journal #79 - Jun 2007
Browse in : |
All
> Topics
> Programming All > Topics > Design All > Journals > Overload > 79 All of these categories |
- Options:
- View Article Map
- View Archives
Description :
There have been many languages for writing applications, but relatively few foundation platforms which support applications that are written in various different languages. We've had assembler (proprietary), then C (an ISO standard), and now we have the Common Language Infrastructure (CLI). The CLI standard is ISO/IEC 23271; the same content is also available online at http://www.ecma-international.org/publications/standards/Ecma-335.htm.
Category: [ Programming Topics | CVu Journal Vol 16, #2 - Apr 2004 ]
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 ]
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 ]
Category: [ Programming Topics | Overload Journal #58 - Dec 2003 ]
Category: [ Programming Topics | CVu Journal Vol 15, #5 - Oct 2003 ]
Category: [ Programming Topics | Overload Journal #48 - Apr 2002 ]
Category: [ Programming Topics | Overload Journal #42 - Apr 2001 ]
Category: [ Design of applications and programs | Overload Journal #41 - Feb 2001 ]
Category: [ Programming Topics | Overload Journal #39 - Sep 2000 ]
Category: [ Programming Topics | Overload Journal #28 - Oct 1998 ]