Aug 1, 2024

How We Use AI to Become Better Software and App Developers

Easy steps to create a color palette

Lorem ipsum dolor sit amet, consectetur adipiscing elit lobortis arcu enim urna adipiscing praesent velit viverra sit semper lorem eu cursus vel hendrerit elementum morbi curabitur etiam nibh justo, lorem aliquet donec sed sit mi dignissim at ante-

  1. Neque sodales ut etiam sit amet nisl purus non tellus orci ac auctor
  2. Adipiscing elit ut aliquam purus sit amet viverra suspendisse potent
  3. Mauris commodo quis imperdiet massa tincidunt nunc pulvinar
  4. Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia

What is a color palette?

Vitae congue eu consequat ac felis placerat vestibulum lectus mauris ultrices cursus sit amet dictum sit amet justo donec enim diam porttitor lacus luctus accumsan tortor posuere praesent tristique magna sit amet purus gravida quis blandit turpis.

Odio facilisis mauris sit amet massa vitae tortor.

Don’t overspend on growth marketing without good retention rates

At risus viverra adipiscing at in tellus integer feugiat nisl pretium fusce id velit ut tortor sagittis orci a scelerisque purus semper eget at lectus urna duis convallis porta nibh venenatis cras sed felis eget neque laoreet suspendisse interdum consectetur libero id faucibus nisl donec pretium vulputate sapien nec sagittis aliquam nunc lobortis .

  • Neque sodales ut etiam sit amet nisl purus non tellus orci ac auctor
  • Adipiscing elit ut aliquam purus sit amet viverra suspendisse potenti
  • Mauris commodo quis imperdiet massa tincidunt nunc pulvinar
  • Adipiscing elit ut aliquam purus sit amet viverra suspendisse potenti
What’s the ideal customer retention rate?

Nisi quis eleifend quam adipiscing vitae aliquet bibendum enim facilisis gravida neque euismod in pellentesque massa placerat volutpat lacus laoreet non curabitur gravida odio aenean sed adipiscing diam donec adipiscing tristique risus amet est placerat in.

“Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua enim ad minim veniam.”
Next steps to increase your customer retention

Eget lorem dolor sed viverra ipsum nunc aliquet bibendum felis done odio pellentesque diam volutpat commodo sed egestas aliquam sem fringilla ut morbi tincidunt augue interdum velit euismod eu tincidunt tortor aliquam nulla facilisi aenean sed adipiscing diam donec adipiscing ut lectus arcu bibendum at varius vel pharetra nibh venenatis.

At MetaCTO, we use AI for writing software code every single day. That's why we have a whole team of 10x developers ;)

However, generative AI won’t write a whole app for us, and most out-of-the-box autocompletes in IDEs get it wrong more often than they get it right.

The key is picking the right tools and asking the right questions.

Picking the Right AI Tools for Writing Code

The easiest place to start is with ChatGPT on OpenAI. As simple as it is, this remains one of the best tools we have. It’s great at answering questions about code and generating code from short prompts like “write me a function in Python that takes 2 arrays and returns the intersection.”

Next is your IDE. This is an obvious place because it’s where we’re writing code.

Microsoft’s GitHub Copilot and Amazon Q Developer both have plugins for the most common IDEs like JetBrains, VisualStudio, and Xcode. They’re a great start, but we find the UX still a little cumbersome and the autocomplete recommendations are wrong just as often as they’re helpful.

Then there are more purpose-specific software.

We use the Cursor AI code editor. It’s a fork of Visual Studio IDE with direct integration to OpenAI ChatGPT-4. The tightly coupled UX, OpenAI’s latest model, and the IDE project context make it the most effective AI coding tool we’ve found to date.

We’d also give an honorable mention to Codium AI, which is doing really cool things with local model tuning and query context based on recent and local files to generate better and quicker code responses. But the UX of their plugins could still use some work.

Asking the Right Questions

As we mentioned before, AI won’t write your whole application. But if we know the right questions to ask, it will cut out hours of research and development time.

Here are our favorite ways to use AI and GPT to generate code and work faster.

Refactoring

AI can rewrite code when we have a new use case or need it in a different format.

Examples:

  • Turn this class into functional code.
  • Rewrite this method to take an array of objects with name properties, in addition to plain strings.
  • Abstract this CSV reader into a reusable data processing class.

Writing Documentation

We’ll do this for code we’re writing or as the first step when taking over an old file that someone else wrote.

Examples:

  • Write KDoc/MD description and arguments for this function/class.
  • Write a markdown file explaining how to run this app locally.

Library Documentation and Best Practices

We love this feature in the Cursor IDE. When generating code or using the AI chat, we can add documentation for new libraries by importing the docs URL, then ask and learn the “correct” way to implement those framework patterns.

Examples:

  • Can I implement infinite scrolling with a Kotlin RecyclerView?
  • How can I implement Google Maps in an iOS view with Swift?
  • Add a Stripe payment form to this iPhone app donation view.

More Efficient Code

GPT coding is the death of leetcode. There’s virtually no code we can write that AI can’t write more efficiently. Anytime we’re looking at space-time complexity in our code, we give it a once-over with AI.

Examples:

  • Help us batch and debounce calls to our server API on frequent UI input.
  • Can we write this SQL subquery more efficiently?
  • Replace this nested loop with a hashmap lookup to eliminate O(n^2) complexity.

Stubbing Out New Files

Using AI to stub out new files can save a lot of time and keep file structures more consistent across a project.

Examples:

  • Write an ETL class in Python.
  • Create a new ViewController class with UIKit.

Searching Your Own Codebase

One of the coolest parts of IDE integration is being able to search with the context of our whole codebase and ask questions. This is especially useful when jumping into a large project for the first time.

Examples:

  • Where are the routes configured for this app?
  • Where should we add a new component file for a custom form?
  • Is there already a standard Button component defined in this codebase that we should use?

In Summary

While AI can’t write a whole app or project for us, it can definitely make us better developers today.

AI in software development is moving at a lightning pace. If we want to be among the developers who grow with AI, we must keep trying new things. Try new IDEs and plugins. Ask new questions. Ask the same questions we asked last month to see how the models are changing.

In the future, AI might be writing whole applications for us. But today, knowing the right tools and the right questions will make us better developers and truly transform the way we work.

Subscribe

Subscribe to our Newsletter

Thanks for joining our newsletter.
Oops! Something went wrong while submitting the form.