惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Help Net Security
Help Net Security
T
Tenable Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
A
Arctic Wolf
T
Threatpost
Simon Willison's Weblog
Simon Willison's Weblog
Spread Privacy
Spread Privacy
D
Darknet – Hacking Tools, Hacker News & Cyber Security
N
News and Events Feed by Topic
SecWiki News
SecWiki News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Scott Helme
Scott Helme
S
Securelist
AWS News Blog
AWS News Blog
Hacker News: Ask HN
Hacker News: Ask HN
美团技术团队
博客园 - 叶小钗
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
博客园_首页
H
Hacker News: Front Page
博客园 - 【当耐特】
J
Java Code Geeks
宝玉的分享
宝玉的分享
Jina AI
Jina AI
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cloudbric
Cloudbric
N
News and Events Feed by Topic
爱范儿
爱范儿
月光博客
月光博客
TaoSecurity Blog
TaoSecurity Blog
V
Visual Studio Blog
T
Troy Hunt's Blog
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
S
Secure Thoughts
L
LINUX DO - 热门话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - Franky
G
Google Developers Blog
Schneier on Security
Schneier on Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How to use LLMs effectively in your daily work — a practical tutorial
Rizwan Saleem · 2026-05-30 · via DEV Community

Rizwan Saleem

How to use LLMs effectively in your daily work — a practical tutorial

1. Core principles for dev work

  • LLMs are best at transforming and iterating on artifacts (requirements → design, design → code, code → tests, code → docs).
  • You get better results from small, focused prompts than from “build my whole system” requests.
  • Always run outputs through a structured review (alignment, accuracy, completeness, risk) rather than trusting “smart‑sounding” text.

Exercise:

Next time you’re stuck, instead of “write this whole feature,” ask: “Which artifact is missing here (requirements/design/code/tests/docs)?” Then ask the model for that artifact only.

2. Prompt patterns that actually help

Several prompt patterns are particularly useful for software engineering.

a) “You are X” role prompts

Give the model a role, constraints, and an output format.

Pattern

You are a senior {language/framework} engineer in a {domain} team.

Goal: {one clear goal}.

Constraints: {standards, stack, limits}.

Output: {bullet list, code block, checklist, etc.}.

Example (backend)

You are a senior TypeScript engineer on a fintech backend.

Goal: suggest a safe design for retrying failed payments.

Constraints: Node 20, PostgreSQL, no external queues.

Output: brief architecture description, then pseudocode for the retry logic.

Exercise:

Take a current task and rewrite your next AI question into this pattern. Compare output quality with your usual “casual” prompt.

b) Atomized (single‑purpose) prompts

Break work into tiny steps: one prompt per sub‑task.

Instead of:

Build a full auth system with JWTs in NestJS and write tests.

Use a chain like:

  1. “Given this app description, list the auth concerns I must solve.”
  2. “Design the data model and endpoints for auth.”
  3. “Generate NestJS code just for the login endpoint using my style guide: …”
  4. “Generate unit tests for this login endpoint using Jest.”

This is “task decomposition” or “decomposed prompting.”

Exercise:

Pick one real task you have this week. Write a list of 5-8 prompts that would get you from problem → working, tested code. Use them sequentially instead of one mega‑prompt.

c) “Critic” and “referee” prompts

Ask the model to attack or review something, not to create from scratch.

Patterns

  • Code review:

    Act as a strict code reviewer. Given this code and these standards, list specific issues and suggested changes.

  • Design critique:

    Act as a system architect. Here is my design. Identify scaling risks, failure scenarios, and unclear responsibilities.

GitHub’s Copilot guidance is essentially this: have AI review snippets and propose improvements; you still decide what to accept.

Exercise:

Paste one of your recent PRs (or a simplified version) and ask:

“Act as a strict reviewer. What are the top 5 issues (correctness, readability, performance, security)?”

Then decide which comments you’d actually address.

d) Self‑check / reflection prompts

Use the model on its own output:

Re‑read your last answer. Identify at least 3 potential errors, missing edge cases, or unsafe assumptions. Propose concrete fixes.

This leverages “introspective” prompt patterns shown to improve quality.

Exercise:

After a long answer you like, always follow with a self‑check prompt like above and compare.

3. Task decomposition: when and how

Trying to have an LLM build a whole feature usually produces fragile, untestable code. Instead, decompose tasks along artifacts and complexity.

Good decomposition axes

  • By artifact: requirements → API spec → data model → endpoint stubs → implementation → tests → docs.
  • By complexity: pure functions first, then integration, then UX / wiring.
  • By risk: ask the model to explore risky areas (concurrency, auth, failure modes) separately before coding.

A blog on task decomposition shows exactly this: instead of “fix this whole feature,” it breaks debugging into focused questions like “What causes this error message?” and “What needs to change in auth.js?”

Example sequence (bugfix)

  1. “Here is the failing test and error message. Summarize what’s going wrong.”
  2. “Here is auth.js. Point out lines likely related to this failure.”
  3. “Propose a minimal fix that passes the test without changing behavior elsewhere.”
  4. “Generate a new test that would catch regressions for this bug.”

Exercise:

Take a real bug. Before you touch it, use those four prompts. Compare your own diagnosis to the model’s; note where it helped or confused things.

4. Choosing between ChatGPT, Claude, and Gemini

You can treat different models as tools in a belt, picking per task.

Common usage patterns reported by practitioners:

  • One model for heavy coding and refactoring (often Claude or a code‑tuned ChatGPT).
  • One model for deep research and reasoning (often ChatGPT’s higher “thinking” modes).
  • One model for multi‑modal or tooling‑heavy tasks like using APIs, browsing, or working with code in context (often Gemini or ChatGPT with plugins).

A typical “toolbelt” approach is to start with the fastest model to brainstorm or generate ideas, then move to a slower, more deliberate one to structure and refine.

Practitioner example:

One architect uses Gemini wired into Claude so Claude can work over a large codebase, then uses Claude itself for heavier coding tasks and iterative refinement-but still doesn’t ask it to “design the complete product.”

Exercise:

Write a small “LLM playbook” for yourself like:

  • “Use ChatGPT for: …”
  • “Use Claude for: …”
  • “Use Gemini for: …”

Then force yourself to follow it for a week and adjust based on what actually worked.

5. Reviewing AI‑generated code like a professional

Think of AI as a junior dev who can type very fast but is overconfident. Your job is to review.

Review checklist (adapted from real guidance)

GitHub suggests validating that AI code compiles, runs tests, and matches your requirements and patterns. A broader “reviewer‑mode” checklist adds alignment, accuracy, completeness, and risk.

Ask yourself:

  1. Alignment - Does this solve the problem I actually asked? Or just something nearby?
  2. Accuracy - Are library calls, types, and APIs real and correctly used? (Check docs as needed.)
  3. Completeness - Are important edge cases, errors, and validations covered?
  4. Risk - Could this introduce security holes, data loss, race conditions, or performance issues?

Exercise:

Take one AI‑generated file. For each of the four dimensions above, write 1-2 concrete comments (like you would in a PR). Only then decide what to keep.

6. Keeping your judgment sharp

The risk with heavy AI use is “outsourcing thinking.” You can avoid that by explicitly practising evaluation.

A 2026 article on “reviewer‑mode” suggests: strip away tone and just inspect the logic and assumptions. Ask:

  • What assumptions is this making? Are they stated or hidden?
  • If the same structure were used with different facts, could it still look convincing but be wrong?
  • Would I accept this from a junior colleague without edits? If not, what would I ask them to change?

Concrete habits

  • Always do one alignment check, one accuracy check, and one risk check on any non‑trivial AI suggestion.
  • Periodically solve a problem without AI first, then compare with AI’s approach to calibrate your own skills.
  • Use AI to explain concepts in your own code: “Explain this function line by line and how I might break it.” This can surface gaps in your understanding without surrendering agency.

Exercise:

Pick one AI answer this week and spend 10 minutes writing a short “review” of it in a markdown file: what’s good, what’s wrong, what you’d change, what you learned. That’s how you turn AI usage into deliberate practice.

7. Concrete usage examples in real projects

Real‑world reports show successful patterns like:

  • Drafting code and then iterating with reviews: using LLMs to suggest code snippets, debug small issues, and refactor, while the human controls architecture and final decisions.
  • Using AI to write tests and docs: generating unit tests for new code and creating API docs from comments, so humans can focus on tricky logic and design.
  • Architecture feedback: presenting a solution to ChatGPT or Claude and asking for an architect‑style critique before implementation.

Mini‑project exercise:

Take a small feature (e.g., “add rate limiting to this API”) and intentionally use AI in each phase:

  1. Requirements clarification (LLM helps list user and system constraints).
  2. Design critique (LLM attacks your design).
  3. Skeleton code generation.
  4. Test generation.
  5. Documentation draft.

At each step, you review and edit as if a junior wrote it.

8. Practice exercises you can repeat

Here’s a compact set you can cycle through:

  1. Decomposition drill:

    • Pick any ticket. Write a 5-10 step LLM interaction plan (what you’ll ask and in what order).
    • Run it; after, write 3 notes: what helped, what wasted time, what you’d change.
  2. Prompt‑pattern drill:

    • For one task, try: role prompt → atomized prompts → critic prompt → self‑check prompt.
    • Compare the effect of adding each layer.
  3. Model‑choice drill:

    • Solve the same problem with ChatGPT, Claude, and Gemini, using identical initial prompts.
    • Evaluate each output with the review checklist; decide which model you prefer for that category of task.
  4. Red‑team drill:

    • Ask an LLM for a solution you know is tricky.
    • Then explicitly ask it to find flaws in its own solution.
    • See which issues you can spot that it missed.

If you tell me your main stack (e.g., “TypeScript/React”, “Java/Spring”, “Python/data”), I can turn this into a short, concrete “training plan” with stack‑specific example prompts and exercises.

What tech stack and kind of work (feature dev, backend APIs, data, DevOps, etc.) are you mostly using LLMs for right now?


Rizwan Saleem — https://rizwansaleem.co