Software & DevOps

Get a second pair of eyes on tricky code

A developer had Gemini review and debug some .NET code. It found the known issues and some cases they hadn't thought of.

Steps

  1. Paste in the code.
  2. Ask for a review.
  3. Fix it and test again.

Prompt you can copy

Review this code for bugs, edge cases, and security problems. Explain each issue and suggest a fix: [paste]

Tools

  • Gemini

For Developers. Added .

Source

hn ·

Related use cases

Software & DevOps

Build a small desktop app to send files to a CNC machine

A hobbyist asked Gemini Pro for a Python Qt app that sends g-code files to a CNC machine or laser cutter, and it runs on Windows, Mac, and Linux.

Caution. Test machine tools carefully.

Developers, TradesGemini

Software & DevOps

Build your first Android app

With no Kotlin experience, one developer built their first Android app with Gemini.

Developers, IndividualsGemini

Software & DevOps

Get an overview of a large codebase

Using Gemini's large context window, one developer pasted in a whole codebase and asked it to describe the main data structures and how data moves through.

DevelopersGemini