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 Coding with ChatGPT and Other LLMs
  • Table Of Contents Toc
  • Feedback & Rating feedback
Coding with ChatGPT and Other LLMs

Coding with ChatGPT and Other LLMs

By : Dr. Vincent Austin Hall, Dr. Vincent Austin Hall, Chigbo Uzokwelu
4 (4)
close
close
Coding with ChatGPT and Other LLMs

Coding with ChatGPT and Other LLMs

4 (4)
By: Dr. Vincent Austin Hall, Dr. Vincent Austin Hall, Chigbo Uzokwelu

Overview of this book

Keeping up with the AI revolution and its application in coding can be challenging, but with guidance from AI and ML expert Dr. Vincent Hall—who holds a PhD in machine learning and has extensive experience in licensed software development—this book helps both new and experienced coders to quickly adopt best practices and stay relevant in the field. You’ll learn how to use LLMs such as ChatGPT and Bard to produce efficient, explainable, and shareable code and discover techniques to maximize the potential of LLMs. The book focuses on integrated development environments (IDEs) and provides tips to avoid pitfalls, such as bias and unexplainable code, to accelerate your coding speed. You’ll master advanced coding applications with LLMs, including refactoring, debugging, and optimization, while examining ethical considerations, biases, and legal implications. You’ll also use cutting-edge tools for code generation, architecting, description, and testing to avoid legal hassles while advancing your career. By the end of this book, you’ll be well-prepared for future innovations in AI-driven software development, with the ability to anticipate emerging LLM technologies and generate ideas that shape the future of development.
Table of Contents (19 chapters)
close
close
Free Chapter
1
Part 1: Introduction to LLMs and Their Applications
5
Part 2: Be Wary of the Dark Side of LLM-Powered Coding
10
Part 3: Explainability, Shareability, and the Future of LLM-Powered Coding
14
Part 4: Maximizing Your Potential with LLMs: Beyond the Basics

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and X handles. Here is an example: “Next, we have Prompt 5 as a Flask app (app.py) with Python code.”

A block of code is set as follows:

<!DOCTYPE html> 
<html> 
<head> 
<title>Button Click</title> 
<script> 
function sayHello() { 
  alert("Hello!"); 
}
</script> 
</head> 
<body> 
<button onclick="sayHello()">Click me</button> 
</body> 
</html> 

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

import pandas as pd 
import matplotlib.pyplot as plt 
# Sample data (replace with your data) 
data = pd.Series([1, 2, 3, 4, 5]) 
# Assuming the data is in a column named "values" 
fig, ax = plt.subplots() 
ax.plot(data) 
ax.set_xlabel("Index") 
ax.set_ylabel("Value") 
ax.set_title("Line Plot of Data") 
plt.show()

Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “You'd have to click the first button, Click me, to get the pop-up window again.”

Tips or important notes

Appear like this.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

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