1
Front Matter
5 chapters2
Part I: Foundations
9 chapters- Part I: Foundations
- Chapter 1: Why Pascal? The Language Designed to Teach Programming Right
- Chapter 2: Setting Up: Free Pascal, Lazarus, and Your First Program
- Chapter 3: Variables, Types, and Expressions: Pascal's Strong Typing is a Feature, Not a Bug
- Chapter 4: Input, Output, and Formatting — Communicating with the User
- Chapter 5: Making Decisions — IF, CASE, and Boolean Logic
- Chapter 6: Loops and Iteration: REPEAT, WHILE, and FOR
- Chapter 7: Procedures and Functions — Structuring Your Code
- Chapter 8: Scope, Parameters, and the Call Stack: How Programs Really Work
3
Part II: Data Structures in Pascal
8 chapters- Part II: Data Structures in Pascal
- Chapter 9: Arrays: Fixed Collections and Multidimensional Data
- Chapter 10: Strings — Text Processing in Pascal
- Chapter 11: Records and Variant Records — Structured Data
- Chapter 12: Sets and Enumerations: Pascal's Unique Type System
- Chapter 13: Files and I/O — Text Files, Typed Files, and Untyped Files
- Chapter 14: Pointers and Dynamic Memory — Understanding the Heap
- Chapter 15: Dynamic Data Structures: Linked Lists, Stacks, and Queues
4
Part III: Object Pascal
7 chapters- Part III: Object Pascal
- Chapter 16: Introduction to Object-Oriented Programming: Classes and Objects in Pascal
- Chapter 17: Inheritance, Polymorphism, and Virtual Methods
- Chapter 18: Interfaces, Abstract Classes, and Design Principles
- Chapter 19: Exception Handling: Writing Robust Code with TRY..EXCEPT..FINALLY
- Chapter 20: Generics: Type-Safe Reusable Code
- Chapter 21: Advanced Object Pascal: Operator Overloading, Class Helpers, and Anonymous Functions
5
Part IV: Algorithms and Problem Solving
6 chapters- Part IV: Algorithms and Problem Solving
- Chapter 22: Recursion: The Power and Peril of Self-Reference
- Chapter 23: Searching and Sorting: Classic Algorithms Implemented in Pascal
- Chapter 24: Trees and Graphs: Hierarchical and Network Data Structures
- Chapter 25: Algorithm Design Strategies: Divide and Conquer, Greedy, Dynamic Programming
- Chapter 26: Complexity Analysis: How Fast Is Your Program and Can You Make It Faster?
6
Part V: GUI Programming with Lazarus
7 chapters- Part V: GUI Programming with Lazarus
- Chapter 27: Introduction to Lazarus — The IDE, the Component Library, and Your First GUI Application
- Chapter 28: Forms, Controls, and Events — Building User Interfaces
- Chapter 29: Menus, Dialogs, and Application Structure
- Chapter 30: Drawing, Graphics, and Custom Controls
- Chapter 31: Database Programming — Connecting to SQLite, PostgreSQL, and MySQL
- Chapter 32: Deploying Your Application — Compilation, Packaging, and Cross-Platform Considerations
7
Part VI: Systems and Advanced Topics
6 chapters- Part VI: Systems and Advanced Topics
- Chapter 33: Units, Packages, and Modular Design: Organizing Large Programs
- Chapter 34: File Formats and Serialization: JSON, XML, INI, and Custom Binary Formats
- Chapter 35: Networking and Internet Programming: Sockets, HTTP, and REST Clients
- Chapter 36: Multithreading and Concurrent Programming in Pascal
- Chapter 37: Interfacing with the Operating System: OS APIs, Processes, and Platform-Specific Code
8
Part VII: Capstone and the Pascal Ecosystem
4 chapters- Part VII: Capstone and the Pascal Ecosystem
- Chapter 38: Capstone Project: A Complete Cross-Platform Application from Design to Deployment
- Chapter 39: The Pascal Ecosystem: Free Pascal, Delphi, Lazarus, Libraries, and Community
- Chapter 40: Pascal's Legacy and Future: From Wirth to Modern Object Pascal and Beyond
9
Appendices
11 chapters- Appendix A: Pascal Language Quick Reference
- Appendix B: Free Pascal and Lazarus Installation Guide
- Appendix C: ASCII and Character Set Reference
- Appendix D: Common Compiler Errors and Fixes
- Appendix E: Free Pascal vs. Delphi Dialect Differences
- Appendix F: Pascal Reserved Words and Operators
- Appendix G: Lazarus Component Reference
- Appendix H: Glossary
- Appendix I: Answers to Selected Exercises
- Appendix J: Bibliography
- Appendix K: Index
Explore Related Books
More open-access textbooks from our library
Advanced COBOL 305 pages Advanced Data Science 299 pages AI Ethics 304 pages AI Literacy 40 pages AI & ML for Business 304 pages AI Engineering 307 pages Algorithmic Addiction 303 pages Applied Psychology 303 pages Learning Assembly Language 299 pages blockchain-cryptocurrency 295 pages College Football Analytics 213 pages Creator Economy 318 pages Pattern Recognition 322 pages Data & Society 305 pages data-visualization-python 275 pages Ethical Hacking 318 pages Fandom 332 pages History of Appalachia 324 pages How Humans Get Stuck 291 pages Handling Confrontation 306 pages how-to-learn-anything 298 pages How Your House Works 306 pages IBM DB2 282 pages Intermediate COBOL 339 pages Intermediate Data Science 278 pages Intro CS Python 44 pages Intro to Data Science 266 pages Introductory Statistics 216 pages Learning COBOL 322 pages Prediction Markets 316 pages Metacognition 222 pages Media Literacy 314 pages NFL Analytics 182 pages Physics of Music 316 pages Political Analytics 324 pages popular-psychology 305 pages Basketball Analytics 214 pages Soccer Analytics 230 pages Propaganda 304 pages Python for Business 298 pages Quantum Mechanics 303 pages RegTech 307 pages Science of Seduction 320 pages Sports Betting 322 pages Architecture of Surveillance 304 pages Science of Luck 306 pages Vibe Coding 316 pages Why They Watch 308 pages Working with AI 316 pages