Head First Programming: A Learner's Guide to Programming Using the Python Language

Front Cover
"O'Reilly Media, Inc.", Nov 23, 2009 - Computers - 406 pages

Looking for a reliable way to learn how to program on your own, without being overwhelmed by confusing concepts? Head First Programming introduces the core concepts of writing computer programs -- variables, decisions, loops, functions, and objects -- which apply regardless of the programming language. This book offers concrete examples and exercises in the dynamic and versatile Python language to demonstrate and reinforce these concepts.

Learn the basic tools to start writing the programs that interest you, and get a better understanding of what software can (and cannot) do. When you're finished, you'll have the necessary foundation to learn any programming language or tackle any software project you choose.

With a focus on programming concepts, this book teaches you how to:

  • Understand the core features of all programming languages, including: variables, statements, decisions, loops, expressions, and operators
  • Reuse code with functions
  • Use library code to save time and effort
  • Select the best data structure to manage complex data
  • Write programs that talk to the Web
  • Share your data with other programs
  • Write programs that test themselves and help you avoid embarrassing coding errors

We think your time is too valuable to waste struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First Programming uses a visually rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep.

 

What people are saying - Write a review

LibraryThing Review

User Review  - ricgerace - LibraryThing

Save your money. I'm a fan of the Head First books, but this one fails to deliver. Poorly presented, the book makes too many assumptions and leaps. I'm not sure who they had in mind as the audience ... Read full review

User Review - Flag as inappropriate

this book is really good for beginners.

Contents

table of contents
1
Your new gig at Starbuzz Coffee
38
The String Exposed
48
Python data is smart
54
Strings and numbers are different
64
Order is restored
74
table of contents
77
Always get things in the right order
84
Large Text fields are harder to handle
263
One of the HeadEx deliveries went astray
270
The radio buttons can share a model
276
HeadExs business is expanding
282
dont care what you guys do Im Things are going great at HeadEx
291
exceptions and message boxes
293
Theres an issue with the exception handler
302
Your Programming Toolbox
311

Use the Web Luke
93
Someone decided to mess with your code
102
Starbuzz is fully stocked
110
data files and arrays
113
Who won the surfing contest?
146
Associate a key with a value using a hash
153
When data gets complex
160
Heres your new board
168
TVNs data is on the money
174
modular programming
177
The Format String Exposed
186
Dont just update your copy
192
The transaction file is working great too
199
The Starbuzz code
205
The discounts get the customers flooding in
213
building a graphical user interface
215
Data entry widgets
257
graphical interface elements
313
Not all events are generated by button clicks
319
Yeah
320
Capturing the protocol event isnt enough
326
Working with checkboxes in tkinter
332
Use pygame to set the volume
339
The DJ is over the moon
347
table of contents
349
The new function contains other functions
356
The DJ is confused
362
But how does an object call a method?
369
The DJ has an entire directory of tracks
378
Leaving town
384
Doing things The Python Way
386
Ooops we couldve covered more OOP
392
Copyright

Other editions - View all

Common terms and phrases

About the author (2009)

David Griffiths began programming at age 12, after being inspired by a documentary on the work of Seymour Papert. At age 15 he wrote an implementation of Papert's computer language LOGO. After studying Pure Mathematics at University, he began writing code for computers and magazine articles for humans and he currently works in the UK, helping people to create simpler, more valuable software. He spends his free time traveling and time with his lovely wife, Dawn.

Paul Barry is formally educated and trained in Computer Science and holds a Masters Degree in Computing Science. He has been programming professionally, on and off, for close to 25 years. Paul already has two textbooks to his name, and is also a Contributing Editor to Linux Journal magazine. His day job is with the Institute of Technology, Carlow in Ireland where he has spent over a decade preparing Ireland's next generation of computing folk to be productive in the workforce. His role as a third level educator affords him the opportunity to explore, learn and teach the very latest programming technologies and practices, which is something that he enjoys even though he knows this makes him a bonafide "geek". Paul lives just outside the town of Carlow in Ireland with his wife, two sons, daughter, dog and cat. There's a bunch of computers and a growing collection of music instruments in the house, too (and like a lot of the Head First family, Paul is a struggling guitarist trapped inside a geek's body). He has so far resisted any suggestion that the family acquire a hamster ... or a set of drums.

Bibliographic information