Regular Expression Puzzles and AI Coding Assistants

Regular Expression Puzzles and AI Coding Assistants
Title Regular Expression Puzzles and AI Coding Assistants PDF eBook
Author Mertz David
Publisher Simon and Schuster
Total Pages 150
Release 2023-03-28
Genre Computers
ISBN 1633437817

Download Regular Expression Puzzles and AI Coding Assistants Book in PDF, Epub and Kindle

Learn how AI-assisted coding using ChatGPT and GitHub Copilot can dramatically increase your productivity (and fun) writing regular expressions and other programs. This book 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. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

Regular Expression Puzzles and AI Coding Assistants

Regular Expression Puzzles and AI Coding Assistants
Title Regular Expression Puzzles and AI Coding Assistants PDF eBook
Author Mertz David
Publisher Simon and Schuster
Total Pages 150
Release 2023-04-11
Genre Computers
ISBN 1638351880

Download Regular Expression Puzzles and AI Coding Assistants Book in PDF, Epub and Kindle

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. Table of Contents 1 The map and the territory 2 Quantifiers and special sub-patterns 3 Pitfalls and sand in the gears 4 Creating functions using regex 5 Easy, difficult, and impossible tasks 6 Conclusions Appendix A: Learning to use regular expressions

Text Processing in Python

Text Processing in Python
Title Text Processing in Python PDF eBook
Author David Mertz
Publisher Addison-Wesley Professional
Total Pages 544
Release 2003
Genre Computers
ISBN 9780321112545

Download Text Processing in Python Book in PDF, Epub and Kindle

bull; Demonstrates how Python is the perfect language for text-processing functions. bull; Provides practical pointers and tips that emphasize efficient, flexible, and maintainable approaches to text-processing challenges. bull; Helps programmers develop solutions for dealing with the increasing amounts of data with which we are all inundated.

Learning Regular Expressions

Learning Regular Expressions
Title Learning Regular Expressions PDF eBook
Author Ben Forta
Publisher Addison-Wesley Professional
Total Pages 470
Release 2018-05-01
Genre Computers
ISBN 0134757041

Download Learning Regular Expressions Book in PDF, Epub and Kindle

Learn to use one of the most powerful text processing and manipulation tools available Regular expression experts have long been armed with an incredibly powerful tool, one that can be used to perform all sorts of sophisticated text processing and manipulation in just about every language and on every platform. That’s the good news. The bad news is that for too long, regular expressions have been the exclusive property of only the most tech savvy. Until now. Ben Forta's Learning Regular Expressions teaches you the regular expressions that you really need to know, starting with simple text matches and working up to more complex topics, including the use of backreferences, conditional evaluation, and look-ahead processing. You’ll learn what you can use, and you’ll learn it methodically, systematically, and simply. Regular expressions are nowhere near as complex as they appear to be at first glance. All it takes is a clear understanding of the problem being solved and how to leverage regular expressions to solve them. Read and understand regular expressions Use literal text and metacharacters to build powerful search patterns Take advantage of advanced regular expression features, including lookahead and backreferences Perform powerful search-and-replace operations in all major professional editing tools Add sophisticated form and text processing to web applications Search for files using command-line tools like grep and egrep Use regular expressions in programming languages like JavaScript, Java, PHP, Python, Microsoft .NET, and C#, as well as in DBMSs including MySQL and Oracle Work with phone numbers, postal codes, social security numbers, IP addresses, URLs, email addresses, and credit card numbers Contents at a Glance 1 Introducing Regular Expressions 2 Matching Single Characters 3 Matching Sets of Characters 4 Using Metacharacters 5 Repeating Matches 6 Position Matching 7 Using Subexpressions 8 Using Backreferences 9 Looking Ahead and Behind 10 Embedding Conditions 11 Regular Expression Solutions to Common Problems Appendix A Regular Expressions in Popular Applications and Languages

Cleaning Data for Effective Data Science

Cleaning Data for Effective Data Science
Title Cleaning Data for Effective Data Science PDF eBook
Author David Mertz
Publisher Packt Publishing Ltd
Total Pages 499
Release 2021-03-31
Genre Mathematics
ISBN 1801074402

Download Cleaning Data for Effective Data Science Book in PDF, Epub and Kindle

Think about your data intelligently and ask the right questions Key FeaturesMaster data cleaning techniques necessary to perform real-world data science and machine learning tasksSpot common problems with dirty data and develop flexible solutions from first principlesTest and refine your newly acquired skills through detailed exercises at the end of each chapterBook Description Data cleaning is the all-important first step to successful data science, data analysis, and machine learning. If you work with any kind of data, this book is your go-to resource, arming you with the insights and heuristics experienced data scientists had to learn the hard way. In a light-hearted and engaging exploration of different tools, techniques, and datasets real and fictitious, Python veteran David Mertz teaches you the ins and outs of data preparation and the essential questions you should be asking of every piece of data you work with. Using a mixture of Python, R, and common command-line tools, Cleaning Data for Effective Data Science follows the data cleaning pipeline from start to end, focusing on helping you understand the principles underlying each step of the process. You'll look at data ingestion of a vast range of tabular, hierarchical, and other data formats, impute missing values, detect unreliable data and statistical anomalies, and generate synthetic features. The long-form exercises at the end of each chapter let you get hands-on with the skills you've acquired along the way, also providing a valuable resource for academic courses. What you will learnIngest and work with common data formats like JSON, CSV, SQL and NoSQL databases, PDF, and binary serialized data structuresUnderstand how and why we use tools such as pandas, SciPy, scikit-learn, Tidyverse, and BashApply useful rules and heuristics for assessing data quality and detecting bias, like Benford’s law and the 68-95-99.7 ruleIdentify and handle unreliable data and outliers, examining z-score and other statistical propertiesImpute sensible values into missing data and use sampling to fix imbalancesUse dimensionality reduction, quantization, one-hot encoding, and other feature engineering techniques to draw out patterns in your dataWork carefully with time series data, performing de-trending and interpolationWho this book is for This book is designed to benefit software developers, data scientists, aspiring data scientists, teachers, and students who work with data. If you want to improve your rigor in data hygiene or are looking for a refresher, this book is for you. Basic familiarity with statistics, general concepts in machine learning, knowledge of a programming language (Python or R), and some exposure to data science are helpful.

Functional Programming in Python

Functional Programming in Python
Title Functional Programming in Python PDF eBook
Author David Mertz
Publisher
Total Pages 48
Release 2018-02-23
Genre
ISBN 9781985826748

Download Functional Programming in Python Book in PDF, Epub and Kindle

In this document, we'll take a tour of Python's features suitable for implementing programs in a functional style. After an introduction to the concepts of functional programming, we'll look at language features such as iterators and generators and relevant library modules such as itertools and functools.

Expert C Programming

Expert C Programming
Title Expert C Programming PDF eBook
Author Peter Van der Linden
Publisher Prentice Hall Professional
Total Pages 379
Release 1994
Genre Computers
ISBN 0131774298

Download Expert C Programming Book in PDF, Epub and Kindle

Software -- Programming Languages.