best-practices

Tag

Cards List
#best-practices

Exception Best Practices

Lobsters Hottest ↗ · 14h ago Cached

Well-Typed 的博客文章讨论 Haskell 中异常处理的最佳实践,聚焦三个目标:避免资源泄漏、保证代码可推进、让失败到达能处理它的代码,并介绍同步与异步异常等基础概念,作为系列文章的第一部分。

0 favorites 0 likes
#best-practices

Try shuffling your agent's tool results before calling your evals a success

Reddit r/AI_Agents ↗ · 2d ago

A practitioner reveals that shuffling the order of database records returned by an agent's tool exposed hidden evaluation weaknesses, showing that test data ordering had been making the task far easier than intended. Randomizing record order and adding plausible distractors surfaced failures that model swaps and temperature tuning never caught.

0 favorites 0 likes
#best-practices

@kewangx: A 9,300-word deep dive into Potato Sis's engineering philosophy for merging 2,000 PRs a month — from indirect prompting and layered memory to architecture discipline, and turning every correction into an ironclad Lint rule. It thoroughly explains "how to keep an AI smarter than you under control." Hardcore long-form pieces like this that can directly guide production-grade AI programming are extremely rare online; programmers can bookmark it blindly.

X AI KOLs Timeline ↗ · 2d ago Cached

A recommendation-style post introducing a 9,300-word long-form article that deeply breaks down an engineer's AI programming engineering philosophy for merging 2,000 PRs a month, covering indirect prompting, layered memory, architecture discipline, and turning corrections into Lint rules — production-grade practices.

0 favorites 0 likes
#best-practices

MCP tool gateways should fail loudly: a missing dependency returning a plausible answer is the real bug

Reddit r/ArtificialInteligence ↗ · 5d ago

An opinion piece arguing that MCP tool gateways must fail loudly on missing dependencies instead of returning plausible-but-fabricated answers, detailing a probe-at-call-time pattern with a reference implementation (scientific-toolkit-mcp, 0.4.1 on PyPI).

0 favorites 0 likes
#best-practices

@mattpocockuk: Thinking about creating a /the-perfect-typescript-codebase skill I.e. a platonic ideal for what a great codebase looks …

X AI KOLs Following ↗ · 5d ago Cached

Matt Pocock is considering creating a '/the-perfect-typescript-codebase' skill that defines a platonic ideal for a great TypeScript codebase, and asks the community what should be included in it.

0 favorites 0 likes
#best-practices

@akshay_pachaar: how to write Agent SKILLS that actually work: 1. watch the agent fail before you write anything (run it on 3 real tasks…

X AI KOLs Timeline ↗ · 6d ago

A 15-point practical guide on writing effective Agent Skills, covering description-triggered loading, gotchas sections, baseline testing, transcript analysis, and iterating skills across model updates.

0 favorites 0 likes
#best-practices

@FinanceYF5: Poor AI-written code may not be because the models aren't smart enough — it's that we give them too much room to improvise. TypeScript expert Matt Pocock recommended Lauren Tan (poteto)'s talk at AIE Code, which included a rather interesting line: "The more places that require trade-offs and...

X AI KOLs Following ↗ · 2026-11-19 Cached

In her talk at AIE Code, Lauren Tan pointed out that AI tends to write garbage code because of a fuzzy decision space, and suggested constraining agent freedom by encapsulating APIs, banning useEffect, and limiting explanatory comments.

0 favorites 0 likes
#best-practices

@Manorgw: Claude Code is really nice for small projects, but once you move on to complex ones, context, task breakdown, and debugging can easily turn into a complete mess. Recently, I came across a pretty well-organized open-source resource: claude-code-best-practice. Common Claude Code…

X AI KOLs Timeline ↗ · 2026-11-01 Cached

A post recommending the open-source resource repository claude-code-best-practice, which compiles Claude Code’s core concepts, advanced features, 10 workflows, cross-model collaboration approaches, and 83 practical tips—a useful guide to avoiding pitfalls when developing complex projects.

0 favorites 0 likes
#best-practices

Agentic AI Engineer’s Portfolio

Reddit r/AI_Agents ↗ · 2026-11-01

A practitioner's listicle outlining 15+ essential portfolio projects for aspiring Agentic AI Engineers, covering async orchestration, strict tool routing, memory eviction, self-healing ReAct loops, human-in-the-loop gates, trajectory evaluation CI, agent observability, prompt-injection defenses, sandboxed execution, and cost kill-switches.

0 favorites 0 likes
#best-practices

The Kluever Maneuver

Lobsters Hottest ↗ · 2026-10-31 Cached

介绍了「Kluever Maneuver」这一 bug 修复实践:先提交一个能通过的失败行为测试来复现 bug,再在第二个提交中修复代码并同时修正该测试,从而证明修复真正有效且每个提交都能通过 CI。

0 favorites 0 likes
#best-practices

@svpino: Deterministic tests > Written instructions Anything that should be checked automatically should have a test case: • Che…

X AI KOLs Following ↗ · 2026-10-31 Cached

SVPino argues that deterministic tests should replace written instructions when working with AI agents: anything checkable automatically—formatting, types, API contracts, security—should be enforced by tests, linters, and static analysis rather than by prompting the agent with rules.

0 favorites 0 likes
#best-practices

The Secret of Fast Programming: Stop Thinking »

Lobsters Hottest ↗ · 2026-10-31 Cached

A Code Simplicity blog post arguing that any time a developer stops to think while coding, it signals an underlying problem—usually incomplete understanding—and explains how deeper comprehension of tools, symbols, and the problem itself is the real secret to fast, simple programming.

0 favorites 0 likes
#best-practices

How to stop a Strands agent calling tools in the wrong order

Reddit r/AI_Agents ↗ · 2026-10-30

A practitioner shares lessons from a keynote Q&A on why Strands agents pick the wrong tools or call them in the wrong order, and writes up a practical guide with links and code snippets on how to fix tool selection and ordering issues.

0 favorites 0 likes
#best-practices

Anthropic's own Applied AI team says too many enterprise agent designs just copy the org chart. Their fix is an eval first, then folding subagents in one at a time. What made you keep yours?

Reddit r/AI_Agents ↗ · 2026-10-29

Anthropic's Applied AI team发布指南,指出许多企业多智能体设计只是照搬组织架构图(康威定律),并建议先建立端到端评测、再逐个折叠子智能体,仅在折叠后性能下降时才保留子智能体。

0 favorites 0 likes
#best-practices

@addyosmani: https://x.com/addyosmani/status/2115688494865465370

X AI KOLs Following ↗ · 2026-10-29 Cached

Addy Osmani shares prompting and workflow tips for Claude Opus 5.5, arguing users are overprompting newer models and outlining how to leverage autonomous verification, subagents, cloud sessions, and Projects in Claude Code.

0 favorites 0 likes
#best-practices

@FinanceYF5: Anthropic has released a Claude Opus 5.5 prompting guide, showing you how to get the most out of the model. 11 best practices you should know. Worth bookmarking.

X AI KOLs Timeline ↗ · 2026-10-29 Cached

Anthropic has released a prompting guide for Claude Opus 5.5, featuring 11 best practices to help users get the most out of the model.

0 favorites 0 likes
#best-practices

Avoid Public Functions Calling Other Public Functions

matklad ↗ · 2026-10-29 Cached

A blog post by matklad arguing that public functions should not call other public functions; instead, shared logic should be extracted into private helper functions to avoid interface degradation over time, with a noted exception for shortcut APIs.

0 favorites 0 likes
#best-practices

@dotey: The best strategy for avoiding leftover worktrees is to add a rule in AGENTS.md requiring that no worktrees be left behind, so the Agent cleans them up itself. https://github.com/JimLiu/baocut/blob/main/AGENTS…

X AI KOLs Following ↗ · 2026-10-28 Cached

Baoyu (@dotey) shares best practices for avoiding leftover git worktrees: add rules to AGENTS.md so that the AI Agent automatically cleans up its worktree and branch after completing a task (merge, create an archival tag, then delete), along with an example configuration from the BaoCut project. BaoCut is an AI video agent application built around an editable timeline.

0 favorites 0 likes
#best-practices

@PrajwalTomar_: MUST read if you build anything with claude code. like actually sit down and read this one claude writes about 90% of t…

X AI KOLs Timeline ↗ · 2026-10-27 Cached

Practitioner shares key lessons from Anthropic's Claude Code team on shipping with AI, emphasizing verifiable outputs, turning every mistake into a CLAUDE.md rule or check, and stepping back to rethink the approach after repeated fix failures.

0 favorites 0 likes
#best-practices

Iterating Backwards in C

Hacker News Top ↗ · 2026-10-26 Cached

The author explains the common mistakes when iterating backwards in C and presents the clean idiom `for(size_t i = count; i--; )`, which avoids signed-index and wrap-around pitfalls, especially as LLM-generated code repeats the buggy versions.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback