|
Gemini
| #153

Gemini: Your secret weapon to understand code

Although I work at Google I have 0 technical background (i.e. I have literally never written a single line of code in my life).

So whenever my colleagues send me something like this (it happens more often than you might think), it makes me wanna punch the guy:

And the link takes me to code that looks something like this:

“Gemini, wtf is this”

Luckily for us, Google Gemini can easily take any code snippet and explain what the code does and how it works at a high level (you can even ask Gemini to use analogies)!

Here's the full prompt

Your task is to take the code snippet provided and explain it in simple, concise, and easy-to-understand language.

Break down the code's functionality, purpose, and key components. Use analogies, examples, and plain terms to make the explanation accessible to someone with little to no coding knowledge.

Avoid using technical jargon unless absolutely necessary, and provide clear explanations for any technical term used.

The goal is to help the reader understand what the code does and how it works at a high level.

Please explain the code below: [paste the code]

As you can see below, this prompt asks Gemini to:

  1. Explain what the code does at a very high level, and;
  2. Break down key functions within the code so even non-technical professionals can have a basic understanding of what’s actually going on.

Pro tip

Even if you don’t come across random code snippets at work, I’d highly recommend saving this prompt since you can replace [code] with [new or complex topic] to quickly learn any new concept!


Want to see more (or less) of this? Tap the thumbs up or down to let me know ⬇️

Want someone to be more productive? Let them subscribe here 😉

Thanks for being a subscriber, and have a great day!