Regular Expression Puzzles and AI Coding Assistants: 24 Puzzles Solved by the Author, with and Without Assistance from Copilot, Chatgpt and More (Paperback)
暫譯: 正則表達式謎題與 AI 編碼助手:作者解答的 24 道謎題,包含 Copilot、ChatGPT 等的協助與不協助 (平裝本)
David, Mertz
- 出版商: Manning
- 出版日期: 2023-04-04
- 售價: $1,500
- 貴賓價: 9.5 折 $1,425
- 語言: 英文
- 頁數: 152
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1633437817
- ISBN-13: 9781633437814
-
相關分類:
人工智慧
-
相關翻譯:
Copilot 和 ChatGPT 編程體驗:挑戰 24個正則表達式難題 (簡中版)
立即出貨
買這商品的人也買了...
相關主題
商品描述
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.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
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.
商品描述(中文翻譯)
學習如何利用 ChatGPT 和 GitHub Copilot 進行 AI 輔助編碼,能顯著提高您在撰寫正則表達式及其他程式時的生產力(和樂趣)。
《正則表達式謎題與 AI 編碼助手》是兩位競爭者的故事。一方是 David Mertz,一位專業程式設計師,也是網路上最受歡迎的正則表達式教學的作者。另一方則是 AI 強大的編碼助手,GitHub Copilot 和 OpenAI ChatGPT。
比賽的方式如下:David 發明了 24 個他稱之為謎題的正則表達式問題,並展示如何解決每一個問題。當他完成後,他讓 Copilot 和 ChatGPT 解這些相同的謎題。他們產出的結果令他感到好奇。哪一方更有可能正確?哪一方能寫出簡單而優雅的程式碼?哪一方能更聰明地利用不太知名的正則表達式庫特性?閱讀本書以找出答案。
David 還提供了 AI 的最佳實踐,展示如何透過聰明的提示獲得更好的結果。到最後,無論您是否使用 AI,您都將成為解決自己正則表達式謎題的高手。
購買印刷書籍可獲得 Manning Publications 提供的免費 PDF、Kindle 和 ePub 格式電子書。
關於技術
來自 OpenAI、Google、Amazon 等公司的開創性大型語言模型研究,已經改變了對機器生成軟體的期望。但這些 AI 助手,如 ChatGPT 和 GitHub Copilot,與正則表達式相比如何呢?正則表達式是開發人員用來描述、查找和操作文本模式的工作馬技術。正則表達式既緊湊又複雜,且微妙。AI 助手能應對這一挑戰嗎?
關於本書
《正則表達式謎題與 AI 編碼助手》是任何經驗水平的程式設計師理解這些令人興奮的新工具的能力和限制的完美起點。作者 David Mertz 提出了 24 個具有挑戰性的正則表達式謎題、它們的傳統人類解法,以及流行 AI 助手提供的迷人答案。在這些令人驚訝的謎題旁,您將學會如何撰寫提示、整合 AI 生成的編碼建議,並與助手互動以獲得所需的結果。到書的結尾,您將清楚了解 AI 助手在哪些方面可以可靠地為您編寫程式碼,以及在哪些方面仍需人類的觸碰。此外,您還會學到很多關於正則表達式的知識!
關於讀者
程式碼範例使用簡單的 Python 和正則表達式。不需要具備 AI 編碼工具的經驗。
作者簡介
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.
作者簡介(中文翻譯)
關於作者
David Mertz 是 KDM Training 的創辦人,也是 Python 社群的知名貢獻者。他還是《正則表達式的迷人怪癖》、《有效數據科學的數據清理:完成其他 80% 的工作》等書籍的作者。
目錄大綱
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
目錄大綱(中文翻譯)
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