Learning to Program

Af Steven Foote
Detaljer Addison Wesley Professional
ISBN 9780789753397
Sprog Engelsk
Pris 417,00 kr.
Paperback

Ikke på lager

Print on demand. Leveringstid vil være ca 2-3 uger.

Everyone can benefit from basic programming skills-and after you start, you just might want to go a whole lot further.

 

Author Steven Foote taught himself to program, figuring out the best ways to overcome every obstacle. Now a professional web developer, he'll help you follow in his footsteps. He teaches concepts you can use with any modern programming language, whether you want to program computers, smartphones, tablets, or even robots.

 

Learning to Program will help you build a solid foundation in programming that can prepare you to achieve just about any programming goal. Whether you want to become a professional software programmer, or you want to learn how to more effectively communicate with programmers, or you are just curious about how programming works, this book is a great first step in helping to get you there.

 

Learning to Program will help you get started even if you aren't sure where to begin.

 

*  Learn how to simplify and automate many programming tasks

*  Handle different types of data in your programs

*  Use regular expressions to find and work with patterns

*  Write programs that can decide what to do, and when to do it

*  Use functions to write clean, well-organized code

*  Create programs others can easily understand and improve

*  Test and debug software to make it reliable

*  Work as part of a programming team

*  Learn the next steps to take to build a lifetime of programming skills

 

 

Introduction Why I Wrote This Book 1 Why You Should Read This Book 3 Your Project 3 1 "Hello, World!" Writing Your First Program 5 Choose a Text Editor 5 Core Features 6 Making Your Choice 8 Sublime Text 9 TextMate 9 Notepad++ 9 Gedit 9 Vim 10 Eclipse 10 IntelliJ 11 Xcode 11 Visual Studio 11 Create a Project Directory 12 Start Small: Create a Test File 12 How HTML and JavaScript Work Together in a Browser 13 The Value of Small Changes 15 Build on Your Success 17 Reference Your JavaScript in manifest.json 20 Let It Run! 20 Great Power, Great Responsibility 21 Summing Up 21 2 How Software Works 23 What Is "Software"? 23 Software Life Cycle 24 Source Code--Where It All Starts 25 A Set of Instructions 25 Programming Languages 26 From Source Code to 0''s and 1''s 31 Compiled vs. Interpreted Languages: When Does the Source Code Become Binary? 31 Runtime Environment 32 Execution by the Processor 34 Input and Output 34 Making Software Useful (and Reusable) with Input 34 Where Does the Input Come From? 35 How the Software Gets the Input 36 Types of Output 36 GIGO: Garbage In, Garbage Out 37 State 38 Add State to Kittenbook 39 Memory and Variables 41 Variables 41 Variable Storage 42 A Finite Resource 44 Memory Leaks 44 Summing Up 45 3 Getting to Know Your Computer 47 Your Computer Is Stupid 47 Your Computer Is Magic 48 Standing on the Shoulders of Giants 48 Computer Guts 48 Processor 48 Short-Term Memory 49 Long-Term Memory 49 Using Your Computer 50 The File System 50 The Command Line: Take Control 52 Summing Up 62 4 Build Tools 63 Automate (Almost) Everything 63 Install Node 64 Install Grunt 66 Software That Helps You Create Software 69 Avoid Mistakes 70 Work Faster 70 Tasks to Automate 70 Compile 71 Test 71 Package 72 Deploy 72 Build Your Own Build 72 Gruntfile.js 73 Use Grunt Plug-ins 73 Load Grunt Plug-ins 76 Register Tasks 76 Watch This! 78 Summing Up 80 5 Data (Types), Data (Structures), Data(bases) 83 Data Types 83 Why Different Data Types Exist 84 Primitive Data Types 84 Composite Data Types 89 Dynamically and Statically Typed Languages 96 Data Structures 96 Set 99 Stack 99 Tree 100 Graph 101 How to Choose an Effective Data Structure 104 Databases 104 Long-Term (Persistent) Storage 104 Relational Databases 104 A Brief Introduction to SQL 106 Summing Up 107 6 Regular Expressions 109 Ctrl+F on Steroids: Looking for Patterns 109 Using Regular Expressions in JavaScript 110 Repetition 111 ? 111 + 111 * 112 Special Characters and Escaping 112 {1,10}: Make Your Own Super Powers 113 Match Anything, Period 113 Don''t Be Greedy 114 Understanding Brackets from [A-Za-z] 115 Lists of Characters 115 Ranges 115 Negation 116 A Pattern for Phone Numbers 116 I Need My \s 119 Shortcuts for Brackets 119 Limitations 121 Capture the Tag 124 Advanced Find and Replace 125 The Beginning and