Think Like a Programmer: An Introduction to Creative Problem Solving

Front Cover
No Starch Press, Aug 12, 2012 - Computers - 256 pages
2 Reviews
The real challenge of programming isn't learning a language's syntax—it's learning to creatively solve problems so you can build something great. In this one-of-a-kind text, author V. Anton Spraul breaks down the ways that programmers solve problems and teaches you what other introductory books often ignore: how to Think Like a Programmer. Each chapter tackles a single programming concept, like classes, pointers, and recursion, and open-ended exercises throughout challenge you to apply your knowledge.

You'll also learn how to:
–Split problems into discrete components to make them easier to solve
–Make the most of code reuse with functions, classes, and libraries
–Pick the perfect data structure for a particular job
–Master more advanced programming tools like recursion and dynamic memory
–Organize your thoughts and develop strategies to tackle particular types of problems

Although the book's examples are written in C++, the creative problem-solving concepts they illustrate go beyond any particular language; in fact, they often reach outside the realm of computer science. As the most skillful programmers know, writing great code is a creative art—and the first step in creating your masterpiece is learning to Think Like a Programmer.
 

What people are saying - Write a review

LibraryThing Review

User Review  - ilokhov - LibraryThing

The premise of this book is quite interesting: instead of focusing on a particular programming language, it is devoted to problem solving and the application of it to programming in general. For ... Read full review

User Review - Flag as inappropriate

This is a very interesting book purely about the way problems are broken down, irrespective of syntax or language. Especially love the problem/quizzes about task completion though context displacement. To be able to adopt that mentality has certainly helped address problems quickly in a new perspective. I highly recommend it especially for new programmer before their mentality sets into stereotypical ways. 

Contents

Strategies for Problem Solving
1
Pure Puzzles
25
Solving Problems with Arrays
55
Solving Problems with Pointers and Dynamic Memory
81
Solving Problems with Classes
111
Solving Problems with Recursion
143
Solving Problems with Code Reuse
171
Thinking Like a Programmer
195
Index
227
Copyright

Common terms and phrases

About the author (2012)

V. Anton Spraul has taught introductory programming and computer science for more than 15 years. He is the author of Computer Science Made Simple (Broadway) and How Software Works (No Starch Press). He offers advice for beginning programmers in his series "Learning to Program: A Guide" on his website (http://www.vantonspraul.com).

Bibliographic information