Home > Articles > Programming > C/C++

C/C++

61 Items

Sort by Date | Title

Interview with Andrei Alexandrescu (Part 3 of 3)
By Andrei Alexandrescu, Eric Niebler
Aug 25, 2010
Eric Niebler and Andrei Alexandrescu conclude their conversation about the D programming language by discussing concurrency, the complications of sharing data, dynamic loading, specification and licensing, and the future of D.
Adding an Easy File Save and File Load Mechanism to Your C++ Program
By Jeff Cogswell
Jul 1, 2005
Why waste your time figuring out an algorithm for storing things in a file? And why spend time debugging the code? Let the Boost library do it for you. Saving your data to your own custom-made file formats is easy with the help of the Boost serialization templates. Jeff Cogswell shows you how to save the data and read it back in with ease.
All Systems Are Go: An Interview with Rob Pike, the Co-developer of Google's Go Programming Language
By Rob Pike, Danny Kalev
Aug 17, 2010
Danny Kalev talks with Rob Pike, the co-developer of Google's new Go programming language. In this interview, Pike speaks about the limitations of C++ in large-scale projects, the design philosophy of Go and its unusual type-system, and Go's future.
An In-Depth Look at Metafunctions in C++
By Aleksey Gurtovoy, David Abrahams
Apr 1, 2005
This chapter looks at a practical example from science and engineering that can find applications in almost any numerical code. Along the way, you'll learn some important new concepts and get a taste of metaprogramming at a high level using the MPL.
An Interview with Barbara Moo on C++11
By Barbara E. Moo, Danny Kalev
Nov 12, 2012
C++ Primer has been one of the most popular C++ textbooks for nearly two decades. Now in its new fifth edition, it covers all of the new C++11 core features and library changes. Danny Kalev interviewed co-author Barbara Moo about the new edition of C++ Primer, the writing process, her experiences from the early days of AT&T’s C++ project, and her future plans.
An Interview with Brian Kernighan on C and The C Programming Language
By John Wait, Brian W. Kernighan
Oct 1, 2012
Originally published in 1978 and updated in 1988, The C Programming Language is considered a “must-read” classic by most programmers and is generally known simply as “K&R.”  To mark the publication of an ebook version of the 1988 second edition, we interviewed coauthor Brian Kernighan about the C programming language, the book, and future trends.
C/C++ Memory Management, Bit Fields, and Function Pointers
By Stephen B. Morris
Aug 26, 2015
You're sure that your C/C++ memory-allocation code is bulletproof, but will the code work when the host platform is under stress? Consider using bit flags for applications that require low-level data access. Modern programming also routinely requires the use of complex language features such as callbacks and function pointers. As Stephen B. Morris explains, the use cases for these features are both simple and powerful.
C++ Basics
By Peter Gottschling
Feb 5, 2016
Learn the fundamental features of C++, including variables, operators, expressions and statements, functions, error handling, I/O, arrays, pointers, and references, and structuring software projects.
C++ Coding Standards: Report, Handle, and Translate Errors Appropriately
By Herb Sutter, Andrei Alexandrescu
Apr 29, 2005
In C++, as in all coding, it is important to address errors as soon as they are detected. This chapter provides the process for dealing with errors in a precise and prompt manner.
C++ Coding Standards: Take Parameters Appropriately by Value, (Smart) Pointer, or Reference
By Herb Sutter, Andrei Alexandrescu
May 6, 2005
Choosing well among values, references, and pointers for parameters is good habit that maximizes both safety and efficiency. This chapter from Herb Sutter and Andrei Alexandrescu will help you do just that.
C++ Tip #83: Use a Checked STL Implementation
By Herb Sutter, Andrei Alexandrescu
Mar 18, 2005
In C++, it's all too easy to make iterator mistakes, and you may not even detect them when compiling and running your program. That's the bad news. The good news is that you don't have to run blind. There are tools for checking your code for these errors, and this chapter will tell you how to use them.
Concurrency in the D Programming Language
By Andrei Alexandrescu
Jul 6, 2010
Andrei Alexandrescu explains recent hardware changes allowing concurrency and how the D programming languages addresses these possibilities.
Construction Unions: A C++ Challenge
By Herb Sutter
Feb 4, 2005
In this C++ Challenge, Herb Sutter throws down the gauntlet. Can you get around the C++ rule of using constructed objects as members of unions? Find out the answer in this sample chapter.
Data and the C Programming Language
By Stephen Prata
Dec 20, 2013
This chapter explores the two great families of data types: integer and floating point. C offers several varieties of these types. This chapter tells you what the types are, how to declare them, and how and when to use them. Also, you discover the differences between constants and variables.
Designing and Writing Generic Facilities: A C++ Challenge
By Herb Sutter
Jan 28, 2005
This chapter provides you with the opportunity to flex your C++ muscles by critiquing a piece of code. Can you find a better way to optimize this code for idiomatic usage? Find out in this challenge from Herb Sutter.
Domain-Specific Languages: An Introductory Example
By Martin Fowler
Sep 27, 2010
In this excerpt from his book, Domain-Specific Languages, Martin Fowler offers a concrete example to demonstrate the different forms a DSL can take.
Eight Terrifying Team Project Mistakes
By John Paul Mueller
Aug 17, 2009
John Paul Mueller shares project mistakes, including these frightening (true) examples.
Exceptional C++ Style: Index Tables
By Herb Sutter
Apr 15, 2005
It may seem obvious, but clear, concise code benefits everyone in the process. This sample chapter from Exceptional C++ Style explains in detail how clear code enhances productivity at every step of the way, not just for programmers and debuggers.
From Mathematics to Generic Programming: An Interview with Alexander Stepanov and Daniel Rose
By John Lakos, Alexander A. Stepanov, Daniel E. Rose
Feb 16, 2015
John Lakos interviews Alexander Stepanov and Daniel Rose, authors of From Mathematics to Generic Programming, on their new book, why it applies to everyday programmers, and their positions on some closely related technical issues — including value semantics, concepts, contracts, and polymorphic memory resources — facing the C++ Standards Committee today.
Helping the Development Team Learn More About the Business
By Lisa Crispin
Aug 18, 2009
Your software development team might be brilliant at testing and coding, but the team can support your business much better with software if they know that business inside and out. Lisa Crispin shows how the effort can pay off.

Page 1 2 3 4 Next >