You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01-intro.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ This is not a comprehensive list!
96
96
97
97
-[Phind](https://www.phind.com/) is a AI-powered search engine designed specifically for developers asking technical questions. In addition to answering your coding question, it will provide links to the internet sources used to find the answer.
98
98
99
-
-[Poe](https://poe.com/) is Quora's platform that gives you access to multiple AI chatbots, including Sage, based on OpenAI's GPT-3.5 architecture; Claude, an AI natural language bot created by [Anthropic](https://www.anthropic.com); and ChatGPT.
99
+
-[Poe](https://poe.com/) is Quora's platform that gives you access to multiple AI chatbots, including Sage, based on OpenAI's GPT-3.5 architecture; Claude, an AI natural language bot created by [Anthropic](https://www.anthropic.com); Llama 2, created by [Meta](https://ai.meta.com/llama/), and ChatGPT.
100
100
101
101
**IDE-based chatbots**
102
102
@@ -158,4 +158,4 @@ Code in these boxes was written by AI.
158
158
159
159
## About This Book
160
160
161
-
We used AI bots (including ChatGPT, Bard, Sage, and Claude) to develop and write much of this course. We firmly believe this new technology can be used in ethical ways and we put into practice all the rules and suggestions offered over the following modules while we created this book.
161
+
We used AI bots (including ChatGPT, Bard, Sage, and Claude) as part of the process of creating this book. The words are all original content, but we used AI bots to edit for grammar and tone. We firmly believe this new technology can be used in ethical ways and we put into practice all the rules and suggestions offered over the following modules while we created this book.
1. Write a prompt to create a function that replaces all instances of the string "three" with the number 3, then create a prompt that allows you to modify the function so that "three", "Three", and "THREE" are all replaced with the number 3.
537
-
538
-
1. Write a query that helps you debug the code snippet from above.
539
-
540
-
1. Create a query that explains how to retrieve data from an online database. Don't forget to find out what the source of the code is.
541
-
542
-
1. Write a prompt to plan out a program that creates and plays a game of Rock, Paper, Scissors. You should create a multi-step plan as well as figure out what your first coding task should be.
543
-
544
-
1. Create a prompt that identifies the best coding language for the above game.
545
-
546
512
## Summary
547
513
548
514
* Coding has become an essential skill in today's world. AI can increase the efficiency of planning, writing, and debugging code, as well as make coding more accessible for beginners.
1. Write a prompt to create a function that replaces all instances of the string "three" with the number 3, then create a prompt that allows you to modify the function so that "three", "Three", and "THREE" are all replaced with the number 3.
31
+
32
+
1. Write a query that helps you debug the code snippet from above.
33
+
34
+
1. Create a query that explains how to retrieve data from an online database. Don't forget to find out what the source of the code is.
35
+
36
+
1. Write a prompt to plan out a program that creates and plays a game of Rock, Paper, Scissors. You should create a multi-step plan as well as figure out what your first coding task should be.
37
+
38
+
1. Create a prompt that identifies the best coding language for the above game.
Copy file name to clipboardExpand all lines: 04-refactoring.Rmd
-83Lines changed: 0 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -519,89 +519,6 @@ Because AI models are created by humans, they can be biased. This means they may
519
519
520
520
When using AI to refactor code, the code itself is often sent to an external service or platform for analysis and transformation. This can raise concerns about the security of the code, especially if it contains sensitive information such as trade secrets, proprietary algorithms, or personal data. If your code is sensitive, it's important to carefully vet any third-party AI tools or services used in the refactoring process.
521
521
522
-
## Hands-On Exercise
523
-
524
-
Now it's your turn to try.
525
-
526
-
### The Code
527
-
528
-
Let's say you are dusting off some code from your past (no judgment here). You were investigating tweets about [Mr. Trash Wheel](https://www.mrtrashwheel.com/), a beloved Baltimore-based contraption that filters trash out of the waterways.
529
-
530
-
**Note**: This code is just an example and was written strictly for educational purposes.
Let's say you are dusting off some code from your past (no judgment here). You were investigating tweets about [Mr. Trash Wheel](https://www.mrtrashwheel.com/), a beloved Baltimore-based contraption that filters trash out of the waterways.
18
+
19
+
**Note**: This code is just an example and was written strictly for educational purposes.
0 commit comments