Think Like a Programmer: An Introduction to Creative Problem Solving (Paperback)

V. Anton Spraul

買這商品的人也買了...

商品描述

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.

商品描述(中文翻譯)

真正的程式設計挑戰不在於學習語言的語法,而是學習如何創造性地解決問題,以便建立出優秀的作品。在這本獨特的書中,作者 V. Anton Spraul 分解了程式設計師解決問題的方式,並教授了其他入門書籍常常忽略的技巧:如何像一個程式設計師一樣思考。每一章都涵蓋一個程式設計概念,例如類別、指標和遞迴,並且遍佈全書的開放式練習題目挑戰你應用所學的能力。你還將學習到以下技巧:

- 將問題分解為獨立的組件,以便更容易解決
- 利用函數、類別和庫來最大化程式碼的重用性
- 選擇最適合特定工作的資料結構
- 掌握更高級的程式設計工具,如遞迴和動態記憶體
- 組織思緒並制定解決特定類型問題的策略

儘管本書的範例是以 C++ 寫成的,但所展示的創造性問題解決概念超越了任何特定的程式語言;事實上,它們常常超越了計算機科學的範疇。正如最熟練的程式設計師所知,寫出優秀的程式碼是一種創意藝術,而創作傑作的第一步就是學習像一個程式設計師一樣思考。