Coding with AI For Dummies (eBook)

(Autor)

eBook Download: EPUB
2024
509 Seiten
John Wiley & Sons (Verlag)
978-1-394-24914-5 (ISBN)

Lese- und Medienproben

Coding with AI For Dummies - Chris Minnick
Systemvoraussetzungen
19,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

Boost your coding output and accuracy with artificial intelligence tools

Coding with AI For Dummies introduces you to the many ways that artificial intelligence can make your life as a coder easier. Even if you're brand new to using AI, this book will show you around the new tools that can produce, examine, and fix code for you. With AI, you can automate processes like code documentation, debugging, updating, and optimization. The time saved thanks to AI lets you focus on the core development tasks that make you even more valuable. Learn the secrets behind coding assistant platforms and get step-by-step instructions on how to implement them to make coding a smoother process. Thanks to AI and this Dummies guide, you'll be coding faster and better in no time.

  • Discover all the core coding tasks boosted by artificial intelligence
  • Meet the top AI coding assistance platforms currently on the market
  • Learn how to generate documentation with AI and use AI to keep your code up to date
  • Use predictive tools to help speed up the coding process and eliminate bugs

This is a great Dummies guide for new and experienced programmers alike. Get started with AI coding and expand your programming toolkit with Coding with AI For Dummies.



Chris Minnick is an accomplished author, teacher, and programmer. Minnick authored or co-authored over 20 books, including titles in the For Dummies series. He has developed video courses for top online training platforms and he teaches programming and machine learning to professional developers at some of the largest global companies.

Chris Minnick is an accomplished author, teacher, and programmer. Minnick authored or co-authored over 20 books, including titles in the For Dummies series. He has developed video courses for top online training platforms and he teaches programming and machine learning to professional developers at some of the largest global companies.

Introduction 1

Part 1: Techniques and Technologies 7

Chapter 1: How Coding Benefits from AI 9

Chapter 2: Parsing Machine Learning and Deep Learning 37

Chapter 3: AI Coding Tools 57

Chapter 4: Coding with Chatbots 79

Part 2: Using AI to Write Code 109

Chapter 5: Progressing from Plan to Prototype 111

Chapter 6: Formatting and Improving Your Code 139

Chapter 7: Finding and Eliminating Bugs 167

Chapter 8: Translating and Optimizing Code 195

Part 3: Testing, Documenting, and Maintaining Your Code 211

Chapter 9: Testing Your Code 213

Chapter 10: Documenting Your Code 239

Chapter 11: Maintaining Your Code 267

Part 4: The Part of Tens 285

Chapter 12: Ten More Tools to Try 287

Chapter 13: Ten AI Coding Resources 299

Index 311

Introduction


I started writing this book almost a year after OpenAI launched ChatGPT. That launch and the subsequent releases of generative AI tools by Microsoft, Google, Facebook, and others have begun to change how we think about creating content. At the same time, we're facing important questions about what the future of work will look like — especially for those of us whose job primarily involves the things that tools such as ChatGPT are pretty good at.

My own feelings about generative AI are mixed. On one hand, I worry that the skills in writing and programming that I've spent more than half my life working on will no longer be useful. On the other hand, I see that AI has the potential to take on some of the most boring and least rewarding work I do, saving me time and effort that I can devote to the more creative parts of writing and programming.

I also worry that when I do write things using old-fashioned methods (aka “I think of them and write them”), people will assume that I used AI. This happened with a book I wrote last year on a relatively current topic. People who didn't bother to read the book commented that “it was probably written by AI.” As a result of this experience, I announced that I'd livestream the process of writing my next book. I had no idea at the time that my next book would be about AI. So, here I am, writing a book about coding with AI while live-streaming my writing processes in an attempt to prove to future readers that the book wasn't generated by AI. If you have any doubt that I wrote this book the old-fashioned way, or if you have a few hundred hours to spare, you can see the entire book being written by going to https://bit.ly/codingwithai.

Even though I refuse to use AI to write my books, and I'm generally against other people using AI to write books, I feel differently about using AI tools to generate computer code. The history of computer programming has been about people inventing better tools that make coding easier. When I worked at Software Development Magazine in the 1990s, the technical editor was Roger Smith. One day, while we were talking about a new programming tool, Roger told me that he believed that in the future we'd be able to use natural language to write software. I was skeptical. Almost 30 years later, it turns out that Roger was right.

The pace of change in AI is fast. Technologies and tools that are new and interesting this month will be replaced by better ones next month. Because I write about technology and programming, there's always the risk that something I write today will be outdated when the book is released. However, even though AI and AI software development tools will certainly have improved, the techniques I write about here will be just as applicable — unless, of course, AI has made the profession of software developer obsolete and everyone who used to be a software developer now gets paid to hang out on the beach (or whatever your idea of relaxation and fun is).

Whether you embrace this new era of AI-assisted coding or resist it, there's no denying that it's here. In this book, I show you how these tools work and how you can use them to not only make writing code easier and faster but to help you write better code.

I hope you enjoy reading this book and that you find it useful. If you have any questions or comments, please reach out to me at chris@minnick.com.

About This Book


When it comes to coding with generative AI, we're all dummies at this point. Whether you're a new programmer or a veteran, this book will teach you what you need to know to benefit from the new tools that are rapidly becoming available.

I cover these topics:

  • Understanding foundational principles of machine learning (ML), deep learning (DL), and generative AI (GenAI)
  • Working with AI responsibly, safely, and ethically
  • Using some of the latest tools for coding with AI
  • Using AI to help with
    • Automating monotonous coding tasks
    • Learning new skills
    • Improving your code
    • Testing your code
    • Documenting your code
    • Maintaining your code

As you go through the book, keep the following in mind:

  • You can read the book from beginning to end, but feel free to skip around if you like. If a topic interests you, start there. You can always return to previous chapters, if necessary.
  • At some point, you will get stuck, and something you try will not work as intended. Do not fear! There are many resources to help you, including support forums, others on the internet, AI chatbots, and me! You can contact me via email at chris@minnick.com or through my website (https://www.chrisminnick.com). Additionally, you can sign up for my Substack (https://chrisminnick.substack.com) to receive occasional updates from me about AI, programming, and learning.
  • Code in the book appears in a monospaced font like this: <h1>Hi there!</h1>.

Some web addresses break across two lines of text. If you’re reading this book in print and want to visit one of these web pages, simply key in the web address exactly as it’s noted in the text, pretending as though the line break doesn’t exist. If you’re reading this as an e-book, you have it easy — just click the web address to be taken directly to the web page.

Foolish Assumptions


I do not make many assumptions about you, the reader, but I do make a few.

I assume you have some experience or familiarity with programming in a computer language. It doesn't matter which language you code in, just that you know what programming is and you've done it before. If you're new to computer programming, many excellent books and tutorials are available that can give you the background you need for this book in a few days. I recommend Coding All-in-One For Dummies, 2nd Edition (written by me and an awesome team of other coding experts), which contains an introduction to all the languages and techniques you use in this book. In particular, read the chapters about Python and JavaScript.

Most of the examples in this book are JavaScript code, because that's the programming language I know the best. However, this is not a JavaScript-specific book and the techniques and tools I use to help write or improve my JavaScript code work with any language. The code examples are generally simple enough to be understood without a specific knowledge of JavaScript.

I assume you have a computer running a modern web browser. You will do most of the exercises in this book by using web-based resources. Although it may be possible to complete these exercises using a smartphone or tablet, I don't recommend it.

I assume you have access to an internet connection. Because the language models we'll be working with are far too large to install on your computer, an internet connection will be essential to completing the hands-on element.

I assume you can download and install free software to your computer. Oftentimes, the computer you use at work will have restrictions on what can be installed by the user. Using your own computer to develop and run the applications in this book should work without a problem.

Icons Used in This Book


Here are the icons used in the book to flag text that should be given extra attention or can be skipped.

This icon flags useful information or explains a shortcut to help you understand a concept.

This icon explains technical details about the concept being explained. The details might be informative or interesting but are not essential to your understanding of the concept.

Try not to forget the material marked with this icon. It signals an important concept or process that you should keep in mind.

Watch out! This icon flags common mistakes and problems that can be avoided if you heed the warning.

Beyond the Book


A lot of extra content that you won’t find in this book is available at www.dummies.com. Go online to find the following:

  • The source code for the examples in this book: Go to www.dummies.com/go/codingwithaifd. The source code is organized by chapter. The best way to work with a chapter is to download all the source code for it at one time.
  • The cheat sheet: Go to www.dummies.com and, in the search field, typing Coding with AI for Dummies. You'll find helpful prompting tips for coding with AI, a list of dangers when using AI-generated code, and a tongue-in-cheek look at what AI coding assistants can't do.
  • Updates: AI is changing rapidly, and I don't expect it to stop doing so after this book is published, so the commands and syntax that work today may not work tomorrow. You can find any updates or corrections by visiting www.dummies.com/go/codingwithaifd or https://github.com/chrisminnick/coding-with-ai.

Where to Go from Here


As you embark on your journey of learning to code with AI, keep an open mind but also a large dose of skepticism and patience. In spite of how impressive the current generation of GenAI tools is (and they're surely much better by the...

Erscheint lt. Verlag 23.2.2024
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Theorie / Studium
Schlagworte AI • ai code • AI coding • ai coding book • ai debugging • AI programming • ai programming book • Artificial Intelligence • artificial intelligence coding • Coding • coding assistant • coding assistant platforms • coding automation • Computer Science • Informatik • KI • Künstliche Intelligenz • machine learning coding • Programmierung • write code with ai
ISBN-10 1-394-24914-4 / 1394249144
ISBN-13 978-1-394-24914-5 / 9781394249145
Haben Sie eine Frage zum Produkt?
EPUBEPUB (Adobe DRM)
Größe: 16,0 MB

Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM

Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belle­tristik und Sach­büchern. Der Fließ­text wird dynamisch an die Display- und Schrift­größe ange­passt. Auch für mobile Lese­geräte ist EPUB daher gut geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine Adobe-ID und die Software Adobe Digital Editions (kostenlos). Von der Benutzung der OverDrive Media Console raten wir Ihnen ab. Erfahrungsgemäß treten hier gehäuft Probleme mit dem Adobe DRM auf.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine Adobe-ID sowie eine kostenlose App.
Geräteliste und zusätzliche Hinweise

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Discover tactics to decrease churn and expand revenue

von Jeff Mar; Peter Armaly

eBook Download (2024)
Packt Publishing (Verlag)
25,19