Jun 5, 2023

Leveraging AI To Increase Dev Productivity

Dewansh Rawat, Software Engineer at Udaan, recently gave a talk at the GeekyAnts headquarters on leveraging AI to increase developer productivity. This blog is a compilation of the key takeaways from his address.
ChayanTechnical Content Writer

AI Tools to the Rescue

In today's fast-paced world of software development, the demand for efficient and reliable code generation tools has never been greater. Enter GitHub Copilot, an extraordinary tool that harnesses the power of artificial intelligence to generate code in real-time.

With a simple input of function parameters or a description of desired function behavior, Copilot effortlessly generates the necessary code, revolutionizing the way developers write programs.

In addition to Copilot, other cutting-edge tools like ChatGPT and OpenAI Codex are also making waves in the industry. As these AI-powered tools continue to advance, it's natural to question whether they will replace developer jobs altogether.

In this blog, we will explore the exciting capabilities of these code generation tools and delve into the potential impact they may have on the role of developers.

My personal experience using these tools has been that they help in designing and developing things quickly.”

However, it's important to note that these tools are not always 100% accurate, so developers should review the generated code for potential flaws. So, let's embark on this journey to uncover the true power of AI in code generation.

Using Chatbots to Develop Apps

Let's explore a few examples of how to use chatbots to develop apps.

For instance, we can prompt a chatbot to create a calculator app using React Native. In this instance, we will be using ChatGPT to generate the application.

1. Command: Create a react native calculator application for me


Using chatbot to create a calculator app using React Native

It also comes up with the actual code! 

2. Analyzing the Result

The chatbot has created a calculator app that works well! The code can be easily integrated into a React Native application, making the process simple. It only takes a few minutes to ask the chatbot the appropriate questions.

To inject the code into your application, type npx create-react-native-app calculator to begin building the app. It may take some time, but eventually, the app will launch. It takes a few seconds to open the calculator once it has been exported and run.

Key Takeaways

Performing basic calculations with it works perfectly fine. The idea here is that as a developer, one should spend only a little bit of time thinking about what to code. While coding is essential to the job, standardized or easily developed tasks should be done quickly to allow for more time spent on innovative and robust solutions.

Recently, I came across a prompt that can help generate a Flask API with all the codebase. This means I don't have to spend much time thinking about what I want to write in code, but rather focus on what I want to build.”

The idea is to upload an image to React, then use ChatGPT to leverage the Amazon recognition client and come up with all the elements in the image. This data can then be displayed in a React Native application. If successful, this will result in an object recognition app without having to put in too much effort and leveraging ChatGPT.

We can quickly see that an image has been selected over there. Even if I just hold up a dummy bank card and click the "upload image" button, it can hit the API.

Untitled (90).png

The idea here is to use these tools to enable developers to quickly iterate and build products in real time. Using ChatGPT can be very helpful, but it can also lead to build errors and incorrect responses. Therefore, developers may need to test and tweak their responses multiple times for the desired results. Despite this, such tools can be incredibly useful and help developers move forward efficiently.

NOTE: While AI tools can assist developers, they won't replace humans as creative inputs will be needed. Chat GPT can provide a basic structure, but the developer needs to improve the app further from a user-centric perspective.

Find Dewansh on LinkedIn

Watch the entire talk here.

Hire our Development experts.