← Back to home The book

So You Want to Learn to Program?

A complete, free textbook that teaches anybody to program a computer — written for BASIC-256 by James M. Reneau, and free to read chapter by chapter.

Free to read · Third Edition (updated through BASIC-256 v2.0.0.0) · Hosted at syw2l.org

About the book

Alongside the language, James M. Reneau wrote a complete, free textbook — "So You Want to Learn to Program? — BASIC-256"a book to teach ANYBODY how to program a computer. Written originally for middle- and high-school students, it teaches programming step by step using sound, colour, shapes and text-to-speech, with full source-code examples for animations, games and applications. The chapters below remain hosted at the author's site, syw2l.org, and are linked here so they stay easy to find.

AuthorJames M. Reneau, Ph.D.
EditionThird Edition (updated through BASIC-256 v2.0.0.0)

Table of contents

  1. Front Material
  2. Chapter 1 — Meeting BASIC-256: Say Hello
  3. Chapter 2 — Drawing Basic Shapes
  4. Chapter 3 — Variables
  5. Chapter 4 — Sound and Music
  6. Chapter 5 — Thinking Like a Programmer
  7. Chapter 6 — Your Program Asks for Advice
  8. Chapter 7 — Decisions, Decisions, Decisions
  9. Chapter 8 — Looping and Counting
  10. Chapter 9 — Custom Graphics: Your Own Shapes
  11. Chapter 10 — Functions and Subroutines
  12. Chapter 11 — Mouse Control
  13. Chapter 12 — Keyboard Control
  14. Chapter 13 — Images, WAVs, and Sprites
  15. Chapter 14 — Printing
  16. Chapter 15 — Arrays: Collections of Information
  17. Chapter 16 — Mathematics: More Fun With Numbers
  18. Chapter 17 — Working with Strings
  19. Chapter 18 — Files: Storing Information For Later
  20. Chapter 19 — Stacks, Queues, Lists, and Sorting
  21. Chapter 20 — Runtime Error Trapping
  22. Chapter 21 — Database Programming
  23. Chapter 22 — Connecting with a Network
  24. Back Material — Appendix

Book content © James M. Reneau, Ph.D., hosted at syw2l.org. Links open the original pages on the author's site. For the story of the language itself, see the About page.

Ready to start?

Read the book, then write your first program right in the browser.