11.4 Using Aider
After this introduction to the basic functions, we took a look at how Aider performs in real-life work. Our conclusion is a little like the basic tenor of this book: it depends on the complexity of the project, the task, the programming languages and libraries used, and so on.
11.4.1 Example 1: Sorting Photos
The following example shows you what using Aider can look like for a new project. You want to develop a Python script that moves photos to directories of type 2024/09 based on the date they were taken.
Prompt: I have a directory with photos (JPEGs with EXIF). I need a Python script to move the files to a new location according to their creation date, with year and month as subdirectories, for example, destination-directory/2024/08/myphoto.jpg ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access