Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Supercharged Coding with GenAI
  • Table Of Contents Toc
Supercharged Coding with GenAI

Supercharged Coding with GenAI

By : Hila Paz Herszfang, Peter V. Henstock
5 (1)
close
close
Supercharged Coding with GenAI

Supercharged Coding with GenAI

5 (1)
By: Hila Paz Herszfang, Peter V. Henstock

Overview of this book

Software development is being transformed by GenAI tools, such as ChatGPT, OpenAI API, and GitHub Copilot, redefining how developers work. This book will help you become a power user of GenAI for Python code generation, enabling you to write better software faster. Written by an ML advisor with a thriving tech social media presence and a top AI leader who brings Harvard-level instruction to the table, this book combines practical industry insights with academic expertise. With this book, you'll gain a deep understanding of large language models (LLMs) and develop a systematic approach to solving complex tasks with AI. Through real-world examples and practical exercises, you’ll master best practices for leveraging GenAI, including prompt engineering techniques like few-shot learning and Chain-of-Thought (CoT). Going beyond simple code generation, this book teaches you how to automate debugging, refactoring, performance optimization, testing, and monitoring. By applying reusable prompt frameworks and AI-driven workflows, you’ll streamline your software development lifecycle (SDLC) and produce high-quality, well-structured code. By the end of this book, you'll know how to select the right AI tool for each task, boost efficiency, and anticipate your next coding moves—helping you stay ahead in the AI-powered development era.
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Foundations for Coding with GenAI
7
Part 2: Basics to Advanced LLM Prompting for GenAI Coding
14
Part 3: From Code to Production with GenAI
21
Index

Using LLMs to explain code

In Chapter 3, we noted that GitHub Copilot does not include the entire code base in the prompt. This is due to context window limitations, potential cost, and the fact that much of the content may not be relevant to the specific task.

However, this does not prevent GenAI from helping us understand the code bases we are working with. Rather than relying blindly on Large Language Models (LLMs) to identify key components, we will explore how to request explanations for both simple elements and more complex scenarios.

Using the /explain command with GitHub Copilot

GitHub Copilot includes several slash commands, among them the /explain command, which is available in both the inline chat and the chat window. Unlike code completion tasks, the output of this prompt is explanatory text covering arguments, data transformations, and return values.

The command can be used alone or with extra instructions. For example, in PyCharm, we can ask Copilot to...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Supercharged Coding with GenAI
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon