aider/examples
Paul Gauthier bb8520898a aider: Added link to "add-test" example in "examples/README.md".
# Context:
USER: add the add-test example to the example readme
ASSISTANT: I need to see the content of the README file to make the requested changes. Please provide the content of the README file.
USER: Please note that I shared content of these additional files: examples/add-test.md, examples/README.md
ASSISTANT: I apologize for the oversight. I will now add the "add-test" example to the "examples/README.md" file.

Here's the code change:

```markdown
examples/README.md
<<<<<<< ORIGINAL
* [**CSS Exercise: Animation Dropdown Menu**](css-exercises.md): A small CSS exercise involving adding animation to a dropdown menu.

* [**Automatically Update Docs**](update-docs.md): Automatically updating documentation based on the latest version of the main() function.
=======
* [**CSS Exercise: Animation Dropdown Menu**](css-exercises.md): A small CSS exercise involving adding animation to a dropdown menu.

* [**Automatically Update Docs**](update-docs.md): Automatically updating documentation based on the latest version of the main() function.

* [**Add Test Example**](add-test.md): Creating a "black box" test case for the `cmd_add()` function without access to the source code, using a ctags-based repo map.
>>>>>>> UPDATED
```

This change adds a link to the "add-test" example in the "examples/README.md" file.
2023-05-21 16:20:58 -07:00
..
2048-game.md link to the open source repos in transcripts 2023-05-17 09:55:54 -07:00
add-test.md copy 2023-05-21 16:19:23 -07:00
asciinema.md removed > from user prompts 2023-05-15 21:01:04 -07:00
chat-transcript-css.md removed > from user prompts 2023-05-15 21:01:04 -07:00
complex-change.md Update complex-change.md 2023-05-15 21:49:08 -07:00
css-exercises.md link to the open source repos in transcripts 2023-05-17 09:55:54 -07:00
hello-world-flask.md remove all hr / --- from chat transcripts 2023-05-15 21:04:46 -07:00
pong.md remove all hr / --- from chat transcripts 2023-05-15 21:04:46 -07:00
README.md aider: Added link to "add-test" example in "examples/README.md". 2023-05-21 16:20:58 -07:00
semantic-search-replace.md removed > from user prompts 2023-05-15 21:01:04 -07:00
update-docs.md removed > from user prompts 2023-05-15 21:01:04 -07:00

What's it like to code with GPT-4 and aider?

Below are some chat transcripts showing what it's like to code with the help of GPT-4 using the aider command-line chat tool. In the chats, you'll see a varity of coding tasks like generating new code, editing existing code, debugging, exploring unfamiliar code, etc.

  • Hello World Flask App: Creating a simple Flask app with various endpoints, such as adding two numbers and calculating the Fibonacci sequence.

  • Pong Game with Pygame: Creating a simple Pong game using the Pygame library, with customizations for paddle size and color, and ball speed adjustments.

  • 2048 Game Modification: Exploring and modifying an open-source javascript repo for the 2048 game, including adding randomness to the scoring system.

  • Complex Multi-file Change with Debugging: A complex code change involving multiple source files and debugging.

  • Semantic Search & Replace: Updating a collection of function calls, which requires dealing with various formatting and semantic differences in the various function call sites.

  • CSS Exercise: Animation Dropdown Menu: A small CSS exercise involving adding animation to a dropdown menu.

  • Automatically Update Docs: Automatically updating documentation based on the latest version of the main() function.

  • Add Test Example: Creating a "black box" test case for the cmd_add() function without access to the source code, using a ctags-based repo map.

  • Editing an Asciinema Cast File: Editing escape sequences in an asciinema screencast file.

What's happening in these chats?

To better understand the chat transcripts, it's worth knowing that:

  • Each time GPT-4 suggests a code change, aider automatically applies it to the source files.
  • After applying the edits, aider commits them to git with a descriptive commit message.
  • GPT-4 can only see and edit files which have been "added to the chat session". The user adds files either via the command line or the in-chat /add command. If GPT-4 asks to see specific files, aider asks the user for permission to add them to the chat. The transcripts contain notifications from aider whenever a file is added or dropped from the session.

Transcript formatting

This is output from the aider tool.

These are chat messages written by the user.

Chat responses from GPT-4 are in a plain font like this, and often include colorized "edit blocks" that specify edits to the code. Here's a sample edit block that switches from printing "hello" to "goodbye":

hello.py
<<<<<<< ORIGINAL
print("hello")
=======
print("goodbye")
>>>>>>> UPDATED