Book description
It's easier to learn how to program a computer than it has ever been before. Now everyone can learn to write programs for themselves - no previous experience is necessary. Chris Pine takes a thorough, but lighthearted approach that teaches you the fundamentals of computer programming, with a minimum of fuss or bother. Whether you are interested in a new hobby or a new career, this book is your doorway into the world of programming.
Computers are everywhere, and being able to program them is more important than it has ever been. But since most books on programming are written for other programmers, it can be hard to break in.
At least it used to be. Chris Pine will teach you how to program. You'll learn to use your computer better, to get it to do what you want it to do. Starting with small, simple one-line programs to calculate your age in seconds, you'll see how to write interactive programs, to use APIs to fetch live data from the internet, to rename your photos from your digital camera, and more. You'll learn the same technology used to drive modern dynamic websites and large, professional applications.
Whether you are looking for a fun new hobby or are interested in entering the tech world as a professional, this book gives you a solid foundation in programming. Chris teaches the basics, but also shows you how to think like a programmer. You'll learn through tons of examples, and through programming challenges throughout the book. When you finish, you'll know how and where to learn more - you'll be on your way.
What You Need:
All you need to learn how to program is a computer (Windows, macOS, or Linux) and an internet connection. Chris Pine will lead you through setting set up with the software you will need to start writing programs of your own.
Publisher resources
Table of contents
- Acknowledgments
- Preface to the Third Edition
- Introduction
- 1. Numbers
- 2. Letters
- 3. Variables and Assignment
- 4. Conversions and Input
- 5. Methods
- 6. Flow Control
- 7. Arrays and Iterators
- 8. Custom Methods
- 9. File Input and Output
- 10. More Classes and Methods
- 11. Custom Classes and Class Extensions
- 12. Remote Data and APIs
- 13. Blocks and Procs
- 14. The Magic of Recursion
- 15. Beyond This Book
- A1. Installation and Setup on Windows
- A2. Installation and Setup on macOS
- A3. Installation and Setup on Linux
-
A4. A Few Things to Try: Possible Solutions
- Exercises from Chapter 1
- Exercises from Chapter 2
- Exercises from Chapter 3
- Exercises from Chapter 4
- Exercises from Chapter 5
- Exercises from Chapter 6
- Exercises from Chapter 7
- Exercises from Chapter 8
- Exercises from Chapter 9
- Exercises from Chapter 10
- Exercises from Chapter 11
- Exercises from Chapter 12
- Exercises from Chapter 13
- Exercises from Chapter 14
Product information
- Title: Learn to Program, 3rd Edition
- Author(s):
- Release date: June 2021
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781680508178
You might also like
book
Learn to Program, 2nd Edition
For this new edition of the best-selling Learn to Program, Chris Pine has taken a good …
book
The Rules of Programming
This philosophy-of-programming guide presents a unique and entertaining take on how to think about programming. A …
book
The Programmer's Brain
Your brain responds in a predictable way when it encounters new or difficult tasks. This unique …
book
Code: The Hidden Language of Computer Hardware and Software, 2nd Edition
Computers are everywhere --- most obviously in our laptops and smartphones, but also our cars, televisions, …