What's a good intro computer science book?

Click For Summary

Discussion Overview

The discussion revolves around recommendations for introductory computer science books, particularly focusing on C++ programming and some mentions of Java. Participants share their experiences with various textbooks and resources, as well as suggestions for programming environments.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about good introductory computer science or C++ programming books for an upcoming course.
  • Another participant suggests a specific C++ book available on Amazon.
  • A participant recalls Lippman's C++ Primer as a good resource but expresses uncertainty about current favored textbooks, criticizing Deitel and Deitel's C++ How to Program for its integration of C++ features.
  • One post emphasizes the importance of using Cygwin on Windows for compiling and running C++ code, suggesting it may be more accessible than Visual Studio for beginners.
  • A participant mentions their satisfaction with D. S. Malik's book, noting its straightforward examples and exercises.
  • Another participant recommends "Introduction to Programming in Java" by Robert Sedgewick & Kevin Wayne, providing links to the first chapter and additional resources for learning Java.

Areas of Agreement / Disagreement

Participants present various recommendations and experiences with different books, indicating a lack of consensus on a single best resource. Some express strong preferences for specific texts while others critique popular options.

Contextual Notes

Some participants express uncertainty about the current state of C++ textbooks and the effectiveness of certain resources, highlighting potential limitations in their recommendations.

Lobos
Messages
11
Reaction score
2
I'm going to be taking a computer science course next semester, what is a good intro computer science book or C++ programming book I can buy?
 
Technology news on Phys.org
Yes, I remember Lippman's C++ Primer as being pretty good in its earlier editions, for earlier versions of C++.

I haven't taught C++ in over ten years so I don't know which textbooks are favored now. One book that I do remember disliking strongly even though it's fairly popular and widely promoted is Deitel and Deitel's C++ How to Program. The first few reviews on Amazon appear to agree with me. My impression from reading it way back when is that it started life as their C How to Program, and they simply "updated" it for C++. Then when the first C++ standard came out in the late 1990s, they took the good new stuff from the standard library (vectors, strings. etc.) and simply tacked them on at the end instead of integrating them into the rest of the text in place of the C-style constructs that they superseded (arrays, char* "strings", etc.). I have no idea how they handle C++11.
 
Tangential point, but very important to a good start:

If you can install applications on the desktop you use, and it is Windows, consider installing cygwin. It allows you to get many different (GNU) free compilers, C++ among them. I think it is a great idea to see a code snippet in a book, take it and run with it. Generally with Visual Studio and .Net there is a considerable learning curve for getting to the point of compiling and running code well - as well as great cost.
VS is a really good product, but not the best tool to cut your teeth on, unless you must learn C# and lambdas. From the getgo.

If you are on Linux or cygwin you are good to go for C, C++, FORTRAN, ADA, Python...
 
Last edited by a moderator:
I like very much
"Introduction to Programming in Java" by Robert Sedgewick & Kevin Wayne

The 1st chapter is here: http://introcs.cs.princeton.edu/java/home/chapter1.pdf

There is a very good course online using a condensed version of this book with exercises and some solutions, many downloadable programs, etc...
http://introcs.cs.princeton.edu/java/home/

To start programming in Java on a pc, first you have to install a Java programming environment.
http://introcs.cs.princeton.edu/java/windows/

The previous link will install DrJava for beginners. http://drjava.sourceforge.net/
 

Similar threads

  • · Replies 102 ·
4
Replies
102
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
15
Views
3K
Replies
16
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K