Video description
In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.
Learn how AI-assisted coding using ChatGPT and GitHub Copilot can dramatically increase your productivity (and fun) writing regular expressions and other programs.
Regular Expression Puzzles and AI Coding Assistants is the story of two competitors. On one side is David Mertz, an expert programmer and the author of the Web's most popular Regex tutorial. On the other are the AI powerhouse coding assistants, GitHub Copilot and OpenAI ChatGPT.
Here's how the contest works: David invents 24 Regex problems he calls puzzles and shows you how to tackle each one. When he's done, he has Copilot and ChatGPT work the same puzzles. What they produce intrigues him. Which side is likelier to get it right? Which will write simple and elegant code? Which makes smarter use of lesser known Regex library features? Read the book to find out.
David also offers AI best practices, showing how smart prompts return better results. By the end, you'll be a master at solving your own Regex puzzles, whether you use AI or not.
About the Technology
Groundbreaking large language model research from OpenAI, Google, Amazon, and others have transformed expectations of machine-generated software. But how do these AI assistants, like ChatGPT and GitHub Copilot, measure up against regular expressions—a workhorse technology for developers used to describe, find, and manipulate patterns in text. Regular expressions are compact, complex, and subtle. Will AI assistants handle the challenge?
About the Book
Regular Expression Puzzles and AI Coding Assistants is the perfect starting point for programmers of any experience level who want to understand the capabilities—and the limitations—of these exciting new tools. Author David Mertz presents 24 challenging regex puzzles, their traditional human-made solutions, and the fascinating answers given by popular AI assistants. Alongside these eye-opening puzzles you’ll learn how to write prompts, integrate AI-generated coding suggestions, and interact with the assistant to get the results you want. By the end of the book, you'll have a clear understanding of where AI assistants can reliably write code for you and where you’ll still need a human touch. Plus, you’ll learn a lot about regular expressions!
About the Reader
Code examples use simple Python and Regular Expressions. No experience with AI coding tools required.
About the Author
David Mertz is the founder of KDM Training and an acclaimed contributor to the Python community. He is also the author of The Puzzling Quirks of Regular Expressions, Cleaning Data for Effective Data Science: Doing the Other 80% of the Work, and other books.
Quotes
AI coding assistants are here, and they’re transforming how programming is and will be done. If you know regular expressions, pick up this book and learn all about AI coding assistants. If you don’t know regular expressions, well, pick it up anyway and experience how you learn with AI coding assistants.
- Dr. Daniel Zingaro University of Toronto, author of Algorithmic Thinking
How these tools can be both so very amazing in what they produce, and simultaneously so utterly doltish in their numerous failures, is the main thing this book tries to understand. For reasons I attempt to elucidate throughout, of all the domains of computer programming, games with regular expressions are particularly well suited for getting a grasp on the peculiar behaviors of AI.
- From the Preface
I am a strong believer in Augmented Intelligence and welcome tools such as ChatGPT & Co-Pilot. To take meaningful steps toward Augmented Intelligence, we will need to understand both Humans' and Machines' strengths and weaknesses. This is where David's book comes in. Through the puzzles, David was able to show it well. Strongly recommended for anyone who is looking to use Artificial Intelligence for their business, to tap into its strength and prepare for potential risks.
- Koo Ping Shung, Data Science Rex
Table of contents
- Chapter 1. The map and the territory
- Chapter 1. Rise of the programming machines
- Chapter 2. Quantifiers and special sub-patterns
- Chapter 2. AI thoughts :The transformator
- Chapter 2. AI thoughts: Notes from the Cyberdyne vault
- Chapter 3. Pitfalls and sand in the gears
- Chapter 3. Puzzle 7: Playing dominoes
- Chapter 3. AI thoughts: How many readers can pass the Turing Test?
- Chapter 3. Author thoughts: Find a matching pattern, if possible
- Chapter 4. Creating functions using regexen
- Chapter 4. Puzzle 12: Finding a name for a function
- Chapter 4. Puzzle 14: Playing poker (Part 2)
- Chapter 4. Puzzle 16: Playing poker (Part 4)
- Chapter 4. Puzzle 17: Playing poker (Part 5)
- Chapter 5. Easy, difficult, and impossible tasks
- Chapter 5. AI thoughts: Deep fakes in the Chomsky hierarchy
- Chapter 5. AI thoughts: I want to be a machine
- Chapter 5. Puzzle 22: Matching the Fibonacci sequence
- Chapter 5. Author thoughts: Honor the fundamental theorem of arithmetic
- Chapter 6. Conclusions
- Appendix. Learning to use regular expressions
- Appendix. Complement operator
- Appendix. Backreferences
- Appendix. Modification using backreferences
- Appendix. Changing backreference behavior
Product information
- Title: Regular Expression Puzzles and AI Coding Assistants, Video Edition
- Author(s):
- Release date: March 2023
- Publisher(s): Manning Publications
- ISBN: None
You might also like
book
Regular Expression Puzzles and AI Coding Assistants
Learn how AI-assisted coding using ChatGPT and GitHub Copilot can dramatically increase your productivity (and fun) …
video
Grokking Algorithms, Video Edition
In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and …
video
Regular Expressions for Beginners and Beyond
Regular expressions have a bad reputation for being difficult to understand. This course introduces tools and …
book
Codeless Data Structures and Algorithms: Learn DSA Without Writing a Single Line of Code
In the era of self-taught developers and programmers, essential topics in the industry are frequently learned …