Learn to Program

Learn to Program

by Chris Pine
Learn to Program

Learn to Program

by Chris Pine

eBook

$29.99  $39.99 Save 25% Current price is $29.99, Original price is $39.99. You Save 25%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

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.


Product Details

ISBN-13: 9781680508727
Publisher: Pragmatic Bookshelf
Publication date: 06/17/2021
Sold by: Barnes & Noble
Format: eBook
Pages: 232
File size: 2 MB

About the Author

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.

Table of Contents

Introductionix
What Is Programming?xi
Programming Languagesxii
The Art of Programmingxiii
1Getting Started1
1.1Windows2
1.2Mac OS X4
1.3Linux7
2Numbers9
2.1Introduction to puts9
2.2Integer and Float9
2.3Simple Arithmetic10
2.4A Few Things to Try12
3Letters13
3.1String Arithmetic14
3.212 vs. '12'15
3.3Problems15
4Variables and Assignment19
5Mixing It Up23
5.1Conversions23
5.2Another Look at puts25
5.3The Methods gets and chomp26
5.4A Few Things to Try27
5.5Mind Your Variables27
6More about Methods31
6.1Fancy String Methods33
6.2A Few Things to Try37
6.3Higher Math38
6.4More Arithmetic38
6.5Random Numbers39
6.6The Math Object41
7Flow Control43
7.1Comparison Methods43
7.2Branching46
7.3Looping50
7.4A Little Bit of Logic51
7.5A Few Things to Try57
8Arrays and Iterators59
8.1The Method each61
8.2More Array Methods63
8.3A Few Things to Try65
9Writing Your Own Methods67
9.1Method Parameters71
9.2Local Variables73
9.3Return Values74
9.4A Few Things to Try79
10There's Nothing New to Learn in Chapter 1081
10.1Recursion81
10.2Rite of Passage: Sorting88
10.3A Few Things to Try89
10.4One More Example89
10.5A Few More Things to Try96
11Reading and Writing, Saving and Loading, Yin and...99
11.1Doing Something99
11.2The Thing about Computers...100
11.3Saving and Loading for Grown-ups101
11.4YAML102
11.5Renaming Your Photos105
11.6A Few Things to Try109
12New Classes of Objects111
12.1The Time Class112
12.2A Few Things to Try113
12.3The Hash Class114
12.4Ranges115
12.5Stringy Superpowers116
12.6A Few More Things to Try118
12.7Classes and the Class Class119
13Creating New Classes, Changing Existing Ones121
13.1A Few Things to Try122
13.2Creating Classes122
13.3Instance Variables123
13.4A Few More Things to Try131
14Blocks and Procs133
14.1Methods That Take Procs134
14.2Methods That Return Procs138
14.3Passing Blocks (Not Procs) into Methods139
14.4A Few Things to Try142
15Beyond This Fine Book145
15.1irb: Interactive Ruby145
15.2The PickAxe: Programming Ruby146
15.3Ruby-Talk: the Ruby Mailing List146
15.4Tim Toady147
15.5The End149
From the B&N Reads Blog

Customer Reviews