Beginning Programming All-in-One For Dummies, 2nd Edition

Book description

Let there be code!

Beginning Programming All-in-One For Dummies offers one guide packed with 7 books to teach you programming across multiple languages. Coding can seem complex and convoluted, but Dummies makes it simple and easy to understand. You’ll learn all about the principles of programming, algorithms, data structures, debugging programs, unique applications of programming and more while learning about some of the most popular programming languages used today. Move confidently forward in your computer science coursework or straight into the workforce. You’ll come away with a rock-solid foundation in the programming basics, using data, coding for the web, and building killer apps.

  • Learn the basics of coding, including writing and compiling code, using algorithms, and data structures
  • Get comfortable with the syntax of several different programming languages
  • Wrap your mind around interesting programming opportunities such as conducting biological experiments within a computer or programming a video game engine
  • Develop cross-platform applications for desktop and mobile devices

This essential guide takes the complexity and convolution out of programming for beginners and arms you with the knowledge you need to follow where the code takes you.

Table of contents

  1. Cover
  2. Title Page
  3. Copyright
  4. Introduction
    1. About This Book
    2. Foolish Assumptions
    3. Icons Used in This Book
    4. Beyond the Book
    5. Where to Go from Here
  5. Book 1: Getting Started with Programming
    1. Chapter 1: Getting Started Programming a Computer
      1. How Computer Programming Works
      2. The History of Computer Programming
      3. Figuring Out Programming
    2. Chapter 2: Different Methods for Writing Programs
      1. Spaghetti Programming
      2. Structured Programming
      3. Event-Driven Programming
      4. Object-Oriented Programming
      5. Using Protocol-Oriented Programming
      6. Design Patterns
    3. Chapter 3: Types of Programming Languages
      1. Your First Language
      2. Curly-Bracket Languages
      3. Artificial Intelligence Languages
      4. Scripting Languages
      5. Database Programming Languages
      6. Comparing Programming Languages
    4. Chapter 4: Programming Tools
      1. Choosing a Compiler
      2. Finding an Interpreter
      3. Compiling to a Virtual Machine
      4. Writing a Program with an Editor
      5. Fixing a Program with a Debugger
      6. Saving Time with Third-Party Components
      7. Optimizing a Program with a Profiler
      8. Managing Source Code
      9. Creating a Help File
      10. Installing a Program
      11. Dissecting Programs with a Disassembler
  6. Book 2: Programming Basics
    1. Chapter 1: How Programs Work
      1. Using Keywords as Building Blocks
      2. Organizing a Program
      3. Dividing a Program into Subprograms
      4. Dividing a Program into Objects
      5. Creating a User Interface
    2. Chapter 2: Variables, Data Types, and Constants
      1. Declaring Variables
      2. Using Different Data Types
      3. Storing Data in a Variable
      4. Retrieving Data from a Variable
      5. Using Constant Values
      6. Defining the Scope of a Variable
    3. Chapter 3: Manipulating Data
      1. Storing Data with the Assignment Operator
      2. Using Math to Manipulate Numbers
      3. Manipulating Strings
      4. Finding Strings with Regular Expressions
      5. Using Comparison Operators
      6. Using Boolean Operators
      7. Converting Data Types
    4. Chapter 4: Making Decisions by Branching
      1. Picking One Choice with the IF-THEN Statement
      2. Picking Two Choices with the IF-THEN-ELSE Statement
      3. Picking Three or More Choices with the IF-THEN-ELSEIF Statement
      4. Playing with Multiple Boolean Operators
      5. Making Multiple Choices with the SELECT CASE Statement
    5. Chapter 5: Repeating Commands by Looping
      1. Looping a Fixed Number of Times with the FOR-NEXT Loop
      2. Looping Zero or More Times with the WHILE Loop
      3. Looping at Least Once with the DO Loop
      4. Playing with Nested Loops
      5. Prematurely Exiting from a Loop
      6. Checking Your Loops
    6. Chapter 6: Breaking a Large Program into Subprograms
      1. Creating and Using Subprograms
      2. Passing Parameters
      3. Repeating a Subprogram with Recursion
    7. Chapter 7: Breaking a Large Program into Objects
      1. How Object-Oriented Programming Works
      2. Encapsulation Isolates Data and Subprograms
      3. Sharing Code with Inheritance
      4. Polymorphism: Modifying Code without Changing Its Name
      5. Design Patterns
      6. Object-Oriented Languages
      7. Real-Life Programming Examples
    8. Chapter 8: Reading and Saving Files
      1. Storing Data in Text Files
      2. Storing Fixed-Size Data in Random-Access Files
      3. Storing Varying-Size Data in Untyped Files
      4. Using Database Files
    9. Chapter 9: Documenting Your Program
      1. Adding Comments to Source Code
      2. Writing Software Documentation
    10. Chapter 10: Principles of User Interface Design
      1. The Evolution of User Interfaces
      2. Elements of a User Interface
      3. Designing a User Interface
    11. Chapter 11: Debugging and Testing
      1. Common Types of Programming Errors
      2. Debugging with Comments and Print Statements
      3. Breakpoints, Stepping, and Watching
      4. Testing Code
  7. Book 3: Data Structures
    1. Chapter 1: Structures and Arrays
      1. Using Structures
      2. Using an Array
      3. Working with Resizable Arrays
      4. Working with Multidimensional Arrays
      5. Using Structures with Arrays
      6. Drawbacks of Arrays
    2. Chapter 2: Sets and Linked Lists
      1. Using Sets
      2. Using Linked Lists
      3. Drawbacks of Sets and Linked Lists
    3. Chapter 3: Collections and Dictionaries
      1. Using a Collection
      2. Using Dictionaries
      3. Understanding Hash Tables
    4. Chapter 4: Stacks, Queues, and Deques
      1. Using Stacks
      2. Using Queues
      3. Using Deques
    5. Chapter 5: Graphs and Trees
      1. Understanding Graphs
      2. Creating Trees
      3. Taking Action on Trees
  8. Book 4: Algorithms
    1. Chapter 1: Sorting Algorithms
      1. Using Bubble Sort
      2. Using Selection Sort
      3. Using Insertion Sort
      4. Using Shell Sort
      5. Using Heap Sort
      6. Using Merge Sort
      7. Using Quick Sort
      8. Comparing Sorting Algorithms
    2. Chapter 2: Searching Algorithms
      1. Sequential Search
      2. Using Indexes
      3. Adversarial Search
    3. Chapter 3: String Searching
      1. Sequential Text Search
      2. Searching with Regular Expressions
      3. Searching Phonetically
    4. Chapter 4: Data Compression Algorithms
      1. Lossless Data Compression Algorithms
      2. Lossy Data Compression
    5. Chapter 5: Encryption Algorithms
      1. How Encryption Works
      2. The Basics of Encryption
      3. Symmetric/Asymmetric Encryption Algorithms
      4. Cracking Encryption
  9. Book 5: Web Programming
    1. Chapter 1: HyperText Markup Language
      1. The Structure of an HTML Document
      2. Adding Graphics
      3. Defining the Background
      4. Creating Hyperlinks
      5. Making Tables
    2. Chapter 2: CSS
      1. The Structure of a Stylesheet
      2. Creating Style Classes
      3. Separating Styles in Files
      4. Cascading Stylesheets
    3. Chapter 3: JavaScript
      1. The Structure of a JavaScript Program
      2. Creating Comments
      3. Declaring Variables
      4. Using Operators
      5. Branching Statements
      6. Looping Statements
      7. Creating Functions
      8. Using Arrays
      9. Designing User Interfaces
    4. Chapter 4: PHP
      1. Examining the Structure of a PHP Program
      2. Creating Comments
      3. Declaring Variables
      4. Using Operators
      5. Branching Statements
      6. Looping Statements
      7. Creating Functions
      8. Using Arrays
      9. Creating Objects
    5. Chapter 5: Ruby
      1. The Structure of a Ruby Program
      2. Creating Comments
      3. Declaring Variables
      4. Using Operators
      5. Branching Statements
      6. Looping Statements
      7. Creating Functions
      8. Using Data Structures
      9. Creating Objects
  10. Book 6: Programming Language Syntax
    1. Chapter 1: C and C++
      1. Looking at the Structure of a C/C++ Program
      2. Creating Comments
      3. Declaring Variables
      4. Using Operators
      5. Branching Statements
      6. Looping Statements
      7. Creating Functions
      8. Data Structures
      9. Using Objects
    2. Chapter 2: Java and C#
      1. Looking at the Structure of a Java/C# Program
      2. Creating Comments
      3. Declaring Variables
      4. Using Operators
      5. Branching Statements
      6. Looping Statements
      7. Creating Functions
      8. Data Structures
      9. Using Objects
    3. Chapter 3: Perl and Python
      1. Reviewing the Structure of a Perl or Python Program
      2. Creating Comments
      3. Defining Variables
      4. Using Operators
      5. Branching Statements
      6. Looping Statements
      7. Creating Functions
      8. Making Data Structures
      9. Using Objects
    4. Chapter 4: Kotlin
      1. Looking at the Structure of a Kotlin Program
      2. Creating Comments
      3. Declaring Variables
      4. Declaring Constants
      5. Using Operators
      6. Branching Statements
      7. Looping Statements
      8. Creating Functions
      9. Creating Data Structures
      10. Creating Objects
    5. Chapter 5: Swift and SwiftUI
      1. Considering the Structure of a Swift Program
      2. Creating Comments
      3. Declaring Variables
      4. Declaring Constants
      5. Using Operators
      6. Branching Statements
      7. Looping Statements
      8. Creating Functions
      9. Data Structures
      10. Creating Objects
    6. Chapter 6: Flutter and Dart
      1. Working with Flutter
      2. Understanding the Dart Language
  11. Book 7: Applications
    1. Chapter 1: Database Management
      1. Understanding the Basics of Databases
      2. Manipulating Data
      3. Database Programming
    2. Chapter 2: Bioinformatics
      1. The Basics of Bioinformatics
      2. Database Searches
      3. Bioinformatics Programming
    3. Chapter 3: Computer Security
      1. Stopping Malware
      2. Stopping Hackers
      3. Secure Computing
    4. Chapter 4: Artificial Intelligence
      1. Problem Solving
      2. Machine Learning
      3. Applications of Artificial Intelligence
    5. Chapter 5: Mobile and Wearable Computing
      1. Understanding the Different Generations of Computing
      2. Giving Data to the User
      3. Getting Data from the User
      4. Tracking Motion and Location
      5. Tracking Real-Time Health Data
      6. Looking to the Future of Augmented Reality and Wearable Computers
    6. Chapter 6: Game Engines
      1. Understanding Game Engines
      2. Picking a Game Engine
      3. Programming a Game Engine
      4. Exploring the Future Uses of Game Engines
    7. Chapter 7: The Future of Computer Programming
      1. Picking a Programming Language
      2. Picking an Operating System
      3. Doing Cross-Platform Programming
      4. Defining Your Future in Programming
  12. Index
  13. About the Author
  14. Advertisement Page
  15. Connect with Dummies
  16. End User License Agreement

Product information

  • Title: Beginning Programming All-in-One For Dummies, 2nd Edition
  • Author(s): Wallace Wang
  • Release date: June 2022
  • Publisher(s): For Dummies
  • ISBN: 9781119884408