What's a good intro computer science book?

In summary, a good intro computer science book or C++ programming book for someone starting out is "Introduction to Programming in Java" by Robert Sedgewick & Kevin Wayne.
  • #1
Lobos
11
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
  • #3
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.
 
  • #4
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...
 
  • #6
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/
 

1. What topics should a good intro computer science book cover?

A good intro computer science book should cover topics such as programming languages, algorithms, data structures, computer architecture, and problem-solving strategies. It should also introduce basic programming concepts such as loops, conditionals, functions, and object-oriented programming.

2. Is prior knowledge of computer science required to understand the book?

No, a good intro computer science book should be accessible to readers with no prior knowledge of computer science. It should start with the basics and gradually build upon them, making it suitable for beginners.

3. How important is the author's writing style in a computer science book?

The author's writing style can greatly impact the reader's understanding of the book. A good intro computer science book should have a clear and concise writing style, with relevant examples and explanations to help the reader grasp the concepts easily.

4. Are there any practical exercises or projects included in a good intro computer science book?

Yes, practical exercises and projects are crucial in a good intro computer science book. They allow readers to apply the concepts they have learned and gain hands-on experience. This helps to reinforce their understanding and prepare them for real-world scenarios.

5. Should I choose a book that focuses on a specific programming language?

It depends on your goals and interests. If you are looking to learn a specific programming language, then choosing a book that focuses on that language may be beneficial. However, if you are new to computer science, it is recommended to choose a book that covers multiple programming languages to give you a broader understanding of the field.

Similar threads

  • Programming and Computer Science
Replies
4
Views
1K
Replies
2
Views
796
  • Programming and Computer Science
Replies
7
Views
1K
  • Programming and Computer Science
Replies
15
Views
2K
  • Programming and Computer Science
Replies
16
Views
1K
  • Programming and Computer Science
Replies
7
Views
1K
  • Programming and Computer Science
Replies
15
Views
1K
  • Programming and Computer Science
Replies
8
Views
1K
  • STEM Academic Advising
Replies
3
Views
832
  • Programming and Computer Science
Replies
5
Views
711
Back
Top