Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit 112f9bd · 19 days ago

Neural networks at work, part 1: prompts for developers, admins, analysts, and managers

🌐 Machine-translated from Russian. Show original

In this part:

The formula for a good query#

  1. Role and context: who are you, what kind of system is this, what are the limitations.
  2. Task: what exactly needs to be obtained.
  3. Input data: code, log, table, requirements.
  4. Response format: list, table, code, half-page letter.
  5. Criteria: what is considered a good answer, what to avoid.

Bad: "Write a function for the report." Good: "Service on Node.js 22 and PostgreSQL. Write a function that returns monthly revenue for the year for the orders(amount, status, created_at) table, considering only status='paid'. Need SQL and TypeScript, without ORM, with empty result processing."

For developers#

  • "Explain this code and find possible errors: ..." — a quick glance from the side.
  • "Write tests for the function, including boundary cases: ..."
  • "Here is the error and the stacktrace, here is the code. Suggest 3 hypotheses of the cause and how to verify each."
  • Review: "Check this diff for vulnerabilities: access to someone else's data, injections, secret leak."

For administrators#

  • "Analyze this log and find what started before the service crashed: ..."
  • "Write a PowerShell script that finds AD accounts without logging in for more than 90 days, without deletion — just a report."
  • "Explain what this command does before I execute it: ..." — especially for something found on the internet.

Analysts#

  • "Here's a table diagram. Write SQL for cohort retention analysis by month" (see SQL for Business).
  • "Here is the unloading (anonymized). What hypotheses explain the decline in conversions? How to check each one?"

For managers and HR#

  • "Create a TS structure for this task description, mark the questions that need to be clarified with the customer" (see TS template).
  • "Shorten this letter by 3 times, keep the facts and deadlines, tone — businesslike and friendly."
  • "Write interview questions for the middle QA position with criteria for evaluating answers."

Verification rule#

The neural network confidently makes mistakes: it invents library functions, command parameters, law articles, and numbers. Therefore:

  • code — run and test;
  • commands — read and check documentation before execution;
  • facts, figures, norms — check with the original source.

What should not be sent to public services — in part 3.

Comments 01 участник · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.