Muutke küpsiste eelistusi

Learn to Program 3rd edition [Pehme köide]

  • Formaat: Paperback / softback, 200 pages
  • Ilmumisaeg: 09-Sep-2021
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1680508172
  • ISBN-13: 9781680508178
  • Formaat: Paperback / softback, 200 pages
  • Ilmumisaeg: 09-Sep-2021
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1680508172
  • ISBN-13: 9781680508178

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.

Acknowledgments ix
Preface to the Third Edition xi
Introduction xiii
1 Numbers 1(4)
Printing to the Screen
1(1)
Integers and Floats
2(1)
Simple Arithmetic
2(2)
Progress Checkpoint
4(1)
2 Letters 5(6)
String Arithmetic
6(1)
Numbers vs Digits
6(1)
When Bad Things Happen to Good Programs
7(2)
Progress Checkpoint
9(2)
3 Variables and Assignment 11(4)
Variables Point to Values
13(1)
Progress Checkpoint
14(1)
4 Conversions and Input 15(8)
Numbers to Strings and Back Again
15(2)
Let Me Tell You a Secret
17(1)
Getting Strings from the User
17(1)
Cleaning Up User Input
18(1)
Good Variable Names
19(2)
Progress Checkpoint
21(2)
5 Methods 23(10)
Fancy String Methods
24(5)
More Arithmetic
29(1)
Random Numbers
30(2)
The Math Object
32(1)
Progress Checkpoint
32(1)
6 Flow Control 33(14)
Comparison Methods
33(2)
Branching
35(4)
Looping
39(2)
A Little Bit of Logic
41(5)
Progress Checkpoint
46(1)
7 Arrays and Iterators 47(8)
My First Iterator
49(2)
More Array Methods
51(2)
Progress Checkpoint
53(2)
8 Custom Methods 55(14)
Method Arguments: What Goes In
58(1)
Local Variables: What's Inside
59(1)
Experiment: Stuby
60(2)
Return Values: What Comes Out
62(5)
Progress Checkpoint
67(2)
9 File Input and Output 69(10)
Really Doing Something
69(1)
The Thing about Computers
69(1)
Saving and Loading for Grown-Ups
70(2)
JSON
72(1)
Back to Our Regularly Scheduled Programming
73(1)
Renaming Photos
74(3)
Progress Checkpoint
77(2)
10 More Classes and Methods 79(10)
The Time Class
80(1)
The Hash Class
81(2)
The Range Class
83(1)
Stringy Superpowers
84(2)
Classes and the Class Class
86(1)
Progress Checkpoint
87(2)
11 Custom Classes and Class Extensions 89(12)
Creating Classes
90(1)
Instance Variables
91(2)
Methods: new vs initialize
93(1)
The Care and Feeding of Your Baby Dragon
94(5)
Progress Checkpoint
99(2)
12 Remote Data and APIs 101(12)
Random Internet Jokes
101(2)
Respect
103(1)
Trivia Database
104(2)
Location of the ISS
106(2)
Where Did I Put My Keys?
108(1)
Movie Search
109(3)
Progress Checkpoint
112(1)
13 Blocks and Procs 113(10)
Methods That Take Procs
114(3)
Methods That Return Procs
117(1)
Passing Blocks (Not Procs) into Methods
118(3)
Progress Checkpoint
121(2)
14 The Magic of Recursion 123(10)
A Method So Easy, It Calls Itself
123(7)
Rite of Passage: Sorting
130(2)
Progress Checkpoint
132(1)
15 Beyond This Book 133(6)
Interactive Ruby (irb)
133(1)
The PickAxe: Programming Ruby
134(1)
Ruby-Doc org
134(1)
Online Search
134(1)
Stack Overflow
134(1)
Tim Toady
135(1)
You Did It
136(3)
A1 Installation and Setup on Windows 139(4)
A2 Installation and Setup on macOS 143(4)
A3 Installation and Setup on Linux 147(2)
A4 A Few Things to Try: Possible Solutions 149(48)
Exercises from
Chapter 1
150(1)
Exercises from
Chapter 2
151(1)
Exercises from
Chapter 3
151(1)
Exercises from
Chapter 4
151(2)
Exercises from
Chapter 5
153(1)
Exercises from
Chapter 6
154(6)
Exercises from
Chapter 7
160(2)
Exercises from
Chapter 8
162(7)
Exercises from
Chapter 9
169(3)
Exercises from
Chapter 10
172(5)
Exercises from
Chapter 11
177(3)
Exercises from
Chapter 12
180(4)
Exercises from
Chapter 13
184(5)
Exercises from
Chapter 14
189(8)
Index 197
Chris Pine has been teaching folks to program for over 15 years. He began his career making video games and other high performance software, before discovering his true calling: helping others learn and grow as programmers. Chris has been managing teams of amazing software engineers ever since.