Racket Programming the Fun Way: From Strings to Turing Machines
- 4h 51m
- James W. Stelly
- No Starch Press
- 2021
At last, a lively guided tour through all the features, functions, and applications of the Racket programming language. You’ll learn a variety of coding paradigms, including iterative, object oriented, and logic programming; create interactive graphics, draw diagrams, and solve puzzles as you explore Racket through fun computer science topics—from statistical analysis to search algorithms, the Turing machine, and more.
Early chapters cover basic Racket concepts like data types, syntax, variables, strings, and formatted output. You’ll learn how to perform math in Racket’s rich numerical environment, and use programming constructs in different problem domains (like coding solutions to the Tower of Hanoi puzzle). Later, you’ll play with plotting, grapple with graphics, and visualize data. Then, you’ll escape the confines of the command line to produce animations, interactive games, and a card trick program that’ll dazzle your friends.
You'll learn how tot:
- Use DrRacket, an interactive development environment (IDE) for writing programs
- Compute classical math problems, like the Fibonacci sequence
- Generate two-dimensional function plots and create drawings using graphics primitives
- Import and export data to and from Racket using ports, then visually analyze it
- Build simple computing devices (pushdown automaton, Turing machine, and so on) that perform tasks
- Leverage Racket’s built-in libraries to develop a command line algebraic calculator
Racket Programming the Fun Way is just like the language itself—an embodiment of everything that makes programming interesting and worthwhile, and that makes you a better programmer.
About the Author
James W. Stelly is a semiretired systems analyst and developer of several business-line applications utilizing backend databases. He has degrees in mathematics and computer science from the University of Houston, and this book is a result of his lifelong interest in those topics.
In this Book
-
Introduction
-
Racket Basics
-
Arithmetic and Other Numerical Paraphernalia
-
Function Fundamentals
-
Plotting, Drawing, and A Bit of Set Theory
-
GUI—Getting Users Interested
-
DATA
-
Searching for Answers
-
Logic Programming
-
COMPUTING MACHINES
-
TRAC—The Racket Algebraic Calculator
-
Bibliography