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

推荐订阅源

有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
V
V2EX
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
月光博客
月光博客
云风的 BLOG
云风的 BLOG

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
One Simple Naming Trick That Keeps Vibe-Coded Code From R...
Alejandro Navas · 2026-06-18 · via DEV Community

Alejandro Navas

In I Shall Call It… SomethingManager, Jeff Atwood criticized names such as:

SessionManager
ConnectionManager
UrlManager

Manager tells us that a class does something with something.

Useful.

We mostly stopped calling everything Manager. We now call it:

UserService
PaymentHandler
OrderProcessor
AccountHelper

The suffix changed. The ambiguity survived.

Vague names permit vague code

What belongs in UserService?

register()
resetPassword()
mergeAccounts()
assignRole()
calculateDiscount()

All of these involve a user.

That is where their architectural similarity ends.

They have different rules, dependencies, side effects, security concerns, and reasons to change. But the name objects to none of them.

UserService is not a boundary. It is permission.

Now compare:

UserRegistrar
PasswordResetter
AccountMerger
RoleAssigner
DiscountCalculator

These are agentive names. They name the component responsible for a capability.

Their value is not grammatical elegance. Their value is resistance.

If PasswordResetter starts calculating discounts, the mistake is visible before opening the file.

Inside UserService, it looks perfectly employed.

Names shape dependencies

This dependency graph appears plausible:

UserService
├── EmailSender
├── PaymentGateway
├── PermissionRepository
├── AuditLogger
└── DiscountCalculator

Users interact with all of those things.

This one tells a more specific story:

PasswordResetter
├── UserFinder
├── ResetTokenIssuer
└── ResetEmailSender

If PasswordResetter suddenly needs InvoiceGenerator, someone has to explain why.

That friction is useful.

A precise name narrows the responsibilities and dependencies that look natural. It does not prevent bad design, but it removes its camouflage.

Naming exposes decomposition problems

Sometimes a component cannot be given a specific name without lying.

So we call it:

Manager
Service
Handler
Processor

That is usually treated as a naming problem.

It may be a design problem.

If one class registers users, resets passwords, assigns roles, calculates discounts, and merges accounts, there may be no honest short name for it.

That is information.

The difficulty of naming the component is evidence that the component does not represent one coherent responsibility.

Split the responsibilities, and the names tend to appear:

UserRegistrar
PasswordResetter
RoleAssigner
DiscountCalculator
AccountMerger

The names did not create the design.

They made the missing design difficult to ignore.

Names make composition visible

Large capabilities are often built from smaller ones.

OrderPlacer
├── CartValidator
├── PriceCalculator
├── InventoryReserver
├── PaymentCollector
└── ConfirmationSender

The OrderPlacer owns the sequence. The collaborators own their rules.

Without names for those responsibilities, the same design often becomes a long method inside OrderService, separated by comments explaining the components that were never created.

Agentive naming gives responsibilities an address.

That makes them easier to test, replace, reuse, and compose.

It does not mean creating one class for every verb. That would merely replace noun-oriented bureaucracy with verb-oriented bureaucracy.

The rule is simpler:

Give a responsibility a name precise enough that unrelated behaviour looks dishonest.

This is not architecture

Agentive naming is not an architectural pattern.

It is just naming.

But names influence what responsibilities look natural. Responsibilities influence dependencies. Dependencies become architecture.

So “just naming” is doing rather more work than advertised.

Good names do not guarantee good software.

They make bad software harder to disguise.

This matters more with AI

AI coding agents infer structure from the code already present.

Give them:

UserService
PaymentManager
OrderProcessor

and they will confidently place the next responsibility into the nearest vague container.

At considerable speed.

Give them:

PasswordResetter
RefundIssuer
OrderCanceller

and the intended boundaries are easier to infer.

Your codebase is now also a prompt.

Vague names teach vague design. AI merely industrializes the lesson.

Naming is a weak type system for responsibility.

UserService is any.