DEV Community

Cover image for I Made a Program Using A.I
Nibodh Daware
Nibodh Daware

Posted on • Originally published at nibodhdaware.hashnode.dev

I Made a Program Using A.I

Introduction:

I recently discovered ChatGPT, an AI-powered chatbot developed by the ingenious team at OpenAI. As someone who enjoys writing blog posts, I was curious to see how ChatGPT could assist me in creating content. I was blown away by how simple and sweet it was to use. With an interface similar to a chat app, all I had to do was copy and paste my query, and within seconds, ChatGPT generated the answer. In this blog post, I'll share my experience using ChatGPT to build a Lookaway App.

The Challenge:

The rules for the challenge were simple: no use of Google or any other search engine besides ChatGPT. I had a few project ideas in mind, but I wanted to keep things simple. I settled on the idea of building a Lookaway App that would remind me to take breaks from my computer screen. However, since I am a Mac user, the app would only be compatible with Macs.

Breaking Down the Problem:

I first tried asking ChatGPT to directly make the app, but that didn't work out. So, I came up with a genius strategy: break down the problem, feed it into ChatGPT, and attach the parts myself to make the whole app. I discovered how to run system commands using C and get a popup window using AppleScript.

Tackling the Technical Issues:

I encountered some technical issues along the way. For instance, I tried to do a slider, but AppleScript was giving me some errors, so I gave up on that idea. Instead, I focused on getting what button was pressed by asking ChatGPT. I also experimented with using command line arguments to allow users to set the time they want to be reminded to take a break, but I ultimately changed it back to being reminded every hour.

The Final Product:

After multiple iterations of the code and making changes with my own hands, I finally completed the Lookaway App. The app is simple yet effective. It pops up on the screen after an hour of computer use to remind you to take a break. The default setting is one hour. I have shared the code on GitHub, which you can find here.

Conclusion:

In conclusion, ChatGPT is a powerful tool that can assist in creating content and solving technical problems. However, AI is not yet advanced enough to handle everything. I had to take multiple iterations of the code and make changes with my own knowledge to complete the Lookaway App. Nonetheless, I am excited to explore more projects and content using ChatGPT. If you're interested in following my progress, please subscribe to my channel and follow me on Twitter also follow me on this Blog. Thanks for reading, and see you in the next one!

Believe it or not, the entire blog post is summarised from the video transcript by ChatGPT, Of course not perfect so edited by me (But mostly the exact ctrl-c ctrl-v that ChatGPT spit out).

Top comments (0)