Home > Programming > C Programming Language



Learning Standard C++ as a New Language

Sort Desciption:

we ought to use C++ and any other programming language in ways that most ...... Stroustrup1997] Bjarne Stroustrup: The C++ Programming language (Third ...



Content Inside:

Learning Standard C++ as a New LanguagePage 1Learning Standard C++ as a New LanguageBjarne StroustrupAT&T LabsABSTRACTTo get the most out of Standard C++ C++1998] we must rethink the way we writeC++ programs. An approach to such a "rethink" is to consider how C++ can be learned(and taught). What design and programming techniques do we want to emphasize? Whatsubsets of the language do we want to learn first? What subsets of the language do wewant to emphasize in real code?This paper compares a few examples of simple C++ programs written in a modern styleusing the standard library to traditional Cstyle solutions. It argues briefly that lessonsfrom these simple examples are relevant to large programs. More generally it argues fora use of C++ as a higherlevel language that relies on abstraction to provide elegancewithout loss of efficiency compared to lowerlevel styles.1 IntroductionWe want our programs to be easy to write correct maintainable and acceptably efficient. It follows thatwe ought to use C++ and any other programming language in ways that most closely approximate thisideal. It is my conjecture that C++ community has yet to internalize the facilities offered by Standard C++so that major improvements relative to the ideal can be obtained from reconsidering our style of C++ use.This paper focuses on the styles of programming that the facilities offered by Standard C++ support notthe facilities themselves.The key to major improvements is a reduction of the size and complexity of the code we write throughthe use of libraries. Below I demonstrate and quantify these reductions for a couple of simple examplessuch as might be part of a introductory C++ course.By reducing size and complexity we reduce development time ease maintenance and decrease the costof testing. Importantly we also simplify the task of learning C++. For toy programs and for students whoprogram only to get a good grade in a nonessential course this simplification would ...

Source: www.research.att.com


add to Google Reader add to Google Bookmark add to bloglines add to newsgator add to FURL add to digg add to webnews add to Netscape add to Yahoo MyWeb add to spurl.net add to diigo Bookmark newsvine Bookmark del.icio.us Bookmark @ SIMPIFY Bookmark MISTER WONG Bookmark Linkarena Bookmark icio.de Bookmark oneview Bookmark folkd.com Bookmark yigg.de Bookmark reddit Bookmark StumbleUpon Bookmark Slashdot Bookmark blinklist Bookmark technorati add to blogmarks add to blinkbits add to ma.gnolia add to smarking.com add to netvouz add to co.mments add to Connotea add to de.lirio.us
Search Terms:

 

Related Files

Programming in C C++ Java

Filed under: Programming and C Programming Language
Programming in C C++ Java. Course Overview. Object oriented programming languages are widely used for the development of complex software systems. ...

C Programming

Filed under: Programming and C Programming Language
The C Programming Language ANSI C. By Brian W. C. Kernighan & Dennis M. Ritchie. K and R. "Practical C programming". By Steve ...

An Overview of the C++ Programming Language

Filed under: Programming and C Programming Language
The C++ programming language provides a model of memory and computation that ... 3 The C Programming Model presents the C subset of C++ and other C++ ...

C Programming Fundamentals

Filed under: Programming and C Programming Language
1 C Programming Fundamentals C is a compiled language. The user creates source code (often ... exe extension). Below is typical C program called LED.C that illustrates some fundamental C ...

Essential C

Filed under: Programming and C Programming Language
C Programming Language (below) as part of their research at AT&T. Unix and C++ ... The C Programming Language 2nd ed. by Kernighan and Ritchie. ...