Pair Programming with Chat GPT (P-AI-R Programming, #2) by Michael D Callaghan
Author:Michael D Callaghan
Language: eng
Format: mobi, azw3, epub
Tags: Software Development, ChatGOT, AI, Machine Learning, Pair Programming, ChatGPT
Publisher: Michael Callaghan
Published: 2023-11-25T23:00:00+00:00
DATA GENERATION
Image by Thorsten Frenzel from Pixabay
Never Lack Sample Data for Your Apps
Generating sample data is a crucial aspect of application development, as it allows developers to test and refine their software in a controlled environment. In this chapter, we will explore the effectiveness of ChatGPT in generating sample data for applications. We will start with simple examples and gradually move towards more complex ideas, sharing both the successes and failures along the way. By the end of this chapter, you will have a better understanding of the capabilities and limitations of these tools and how they can be leveraged to improve your application development process.
As before I will show my simple comment, followed by what the AIs suggested, with commentary where appropriate.
Lorem Ipsum Text
I do a lot of UI development. Early in the app creation process, I like it when my pages appear to have content. I often turn to âlorem ipsumâ text, which is nonsense text that has the same general âlook and feelâ of English when rendered on the page. There are dedicated websites that will generate it, but I thought it might be nice to have ChatGPT do it instead.
Generate a paragraph of lorem ipsum text
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum dignissim sagittis sapien, sed cursus erat condimentum nec. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ultrices augue ac metus fermentum, ac efficitur mauris pharetra. Vivamus egestas arcu lacus, in vulputate augue fringilla a. Donec rutrum, felis eu facilisis mollis, justo risus pulvinar mi, at aliquam ante sem in nunc. Integer ornare, est et lacinia tincidunt, arcu nulla ultrices ligula, in pharetra diam tellus et nisl.
It did exactly what I expected without any additional explanation. It just worked.
List of schools in the USA
For the next experiment, I wanted a list of schools that can be found in the United States. ChatGPT again came through.
Give me a list of schools in the USA as a JavaScript array
Sure, here's an example of how you might create a JavaScript array of schools in the USA. Please note that this is just a very small selection of schools for illustrative purposes:
var schoolsInUSA = [
{name: "Harvard University", city: "Cambridge", state: "Massachusetts"},
{name: "Stanford University", city: "Stanford", state: "California"},
{name: "Yale University", city: "New Haven", state: "Connecticut"},
{name: "Massachusetts Institute of Technology", city: "Cambridge", state: "Massachusetts"},
{name: "California Institute of Technology", city: "Pasadena", state: "California"},
{name: "University of Chicago", city: "Chicago", state: "Illinois"},
{name: "Princeton University", city: "Princeton", state: "New Jersey"},
{name: "Columbia University", city: "New York", state: "New York"},
{name: "University of Pennsylvania", city: "Philadelphia", state: "Pennsylvania"},
{name: "Duke University", city: "Durham", state: "North Carolina"}
];
This array contains objects, each representing a different school. Each object has `name`, `city`, and `state` properties. This is a common format for organizing data in JavaScript.
Fake Customers with Addresses
Next, could it generate some fake customers for me? Given what youâve already seen, you probably have reasonable faith in ChatGPT getting this right.
Generate a list of random customer names and addresses
For the purpose of privacy and data protection, it's not appropriate to provide real customer names and addresses.
Download
Pair Programming with Chat GPT (P-AI-R Programming, #2) by Michael D Callaghan.azw3
Pair Programming with Chat GPT (P-AI-R Programming, #2) by Michael D Callaghan.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8292)
Test-Driven Development with Java by Alan Mellor(6655)
Data Augmentation with Python by Duc Haba(6561)
Principles of Data Fabric by Sonia Mezzetta(6321)
Learn Blender Simulations the Right Way by Stephen Pearson(6209)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6083)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5474)
Big Data Analysis with Python by Ivan Marin(5327)
The Infinite Retina by Robert Scoble Irena Cronin(5174)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5139)
Pretrain Vision and Large Language Models in Python by Emily Webber(4289)
Infrastructure as Code for Beginners by Russ McKendrick(4049)
Functional Programming in JavaScript by Mantyla Dan(4037)
The Age of Surveillance Capitalism by Shoshana Zuboff(3943)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3761)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3565)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3540)
