Home > Articles > Programming > C/C++

C/C++

61 Items

Sort by Date | Title

Protect C++ Legacy Programs by Using Python
By Stephen B. Morris
Feb 11, 2014
Stephen B. Morris illustrates a simple way to execute C++ programs by using Python. This approach is lightweight and yet robust, taking advantage of Python's powerful exception-management facilities. Learn how to achieve deeper integration between C++ and Python, while addressing important design issues.
Publish and Subscribe Using C++ and the Observer Pattern
By Stephen B. Morris
May 27, 2005
Separation of concerns is increasingly on the programmer's radar. Given the growing range of data access products and platforms, it is now essential to separate data producers from data consumers. The observer pattern provides a simple but powerful model for achieving this crucial design goal.
Robert C. Martinโ€™s Clean Code Tip of the Week #1: An Accidental Doppelgänger in Ruby
By Robert C. Martin
Jan 7, 2009
Robert C. Martin investigates an interesting dilemma: if the implementation of two functions is identical, yet their intent is completely different, is it still duplicate code?
Robert C. Martin's Clean Code Tip #12: Eliminate Boolean Arguments
By Robert C. Martin
Aug 25, 2009
We join "The Craftsman," Robert C. Martin's series on an interstellar spacecraft where programmers hone their coding skills. In this twelfth tip in the series, the crew learns that Boolean arguments loudly declare that the function does more than one thing. They are confusing and should be eliminated.
Robert C. Martin's Clean Code Tip of the Week #2: The Inverse Scope Law of Function Names
By Robert C. Martin
Jan 21, 2009
The longer the scope of a function, the shorter its name should be.
Robert C. Martin's Clean Code Tip of the Week #3: Avoid Inappropriate Information
By Robert C. Martin
Jan 28, 2009
In this third tip of the series, programmers discuss how to avoid inappropriate information.
Robert C. Martin's Clean Code Tip of the Week #4: Avoid Obsolete Comments
By Robert C. Martin
Feb 11, 2009
A comment that has gotten old, irrelevant, and incorrect is obsolete. Obsolete comments tend to migrate away from the code they once described and become floating islands of irrelevance and misdirection.
Robert C. Martin's Clean Code Tip of the Week #6: Avoid Poorly Written Comments
By Robert C. Martin
Feb 27, 2009
We join "The Craftsman," Robert C. Martin's series on an interstellar spacecraft where programmers hone their coding skills. In this sixth tip in the series, the crewmen try to interpret a poorly worded comment.
Robert C. Martin's Clean Code Tip of the Week #7: Clean up Old Commented Out Code
By Robert C. Martin
Mar 30, 2009
Robert C. Martin explains why old commented-out code is an abomination.
Robert C. Martin's Clean Code Tip of the Week #8: Your Build Shouldn't Require More Than One Step
By Robert C. Martin
May 16, 2009
We join "The Craftsman," Robert C. Martin's series on an interstellar spacecraft where programmers hone their coding skills. In this eighth tip in the series, the crewmen learn that building a project should be a single trivial operation.
Safety in Numbers: Introducing C++14's Binary Literals, Digit Separators, and Variable Templates
By Danny Kalev
May 14, 2014
Danny Kalev highlights three new core features in C++14 that simplify the design and implementation of numeric apps. Binary literals such as 0b10101 enable you to parse binary numbers without the onus of converting them to decimal; the new digit separator improves code readability; and, finally, variable templates let you define parameterized constants instead of resorting to cumbersome static member functions.
Smart Pointers
By Andrei Alexandrescu
Feb 8, 2002
In this chapter from Modern C++ Design, Andrei Alexandrescu navigates through the sometimes treacherous waters of using smart pointers, which imitate built-in pointers in syntax and semantics but perform a host of additional tasks that built-in pointers can't.
Smart Pointers in C++
By Andrei Alexandrescu
Apr 18, 2003
Andrei Alexandrescu discusses smart pointers, from their simplest aspects to their most complex ones and from the most obvious errors in implementing them to the subtlest ones—some of which also happen to be the most gruesome.
Stroustrup on C++: C++ in 2005
By Bjarne Stroustrup
Jul 8, 2005
In the Japanese edition of his latest book, Bjarne Stroustrup added an extended essay, reflecting on C++ use over the last decade, and presenting plausible directions for the next revision of the C++ standard.
The Absolute Beginner's Guide to Writing Your First C Program
By Greg Perry, Dean Miller
Aug 22, 2013
This chapter introduces you to your first C program, your first function, and teaches you to identify different kinds of data used in programs.
The Components of a C Program
By Bradley L. Jones, Peter Aitken, Dean Miller
Nov 18, 2013
In this lesson you will learn the components of a short C program, the purpose of each program component, and how to compile and run a sample program.
The Design of Design: Exemplars in Design
By Frederick P. Brooks
Apr 19, 2010
Few designs are all-new. Usually, even novel designs derive from earlier artifacts intended for similar purposes and built with similar technology. What then is the proper role of exemplars, precedents, in design? How should the designer study and use them? Should each design domain develop an accessible cumulative store of exemplars? Frederick P. Brooks considers these questions in this excerpt from his book, The Design of Design.
Using Library Algorithms in C++
By Andrew Koenig, Barbara E. Moo
Feb 15, 2002
By using the standard algorithms provided by the library's common interfaces, you can avoid rewriting code. Andrew Koenig and Barbara Moo show how to write smaller, simpler programs with this approach.
What Is Clean Code?
By Robert C. Martin
Aug 19, 2008
Robert C. Martin introduces his book, Clean Code, and polls experienced programmers -- including Bjarne Stroustrup, Grady Booch, Dave Thomas, and Ward Cunningham -- on what their definition of "Clean Code" is.
What Programmers Have to Know About Testing
By Janet Gregory
Jan 11, 2010
Janet Gregory offers some good advice to developers: Even when you know that a dedicated test team will be testing your software, there are some things that your programming team shouldn't leave for the testers to find.

<< < Prev Page 1 2 3 4 Next >