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

推荐订阅源

The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
WordPress大学
WordPress大学
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
P
Proofpoint News Feed
D
DataBreaches.Net

Home on Alex Plescan

bigdraw: I made a collaborative drawing site Just for fun: animating a mosaic of 90s GIFs Two computers, one monitor, zero fiddling Rebuilding this site Okay, I really like WezTerm GNU Parallel, where have you been all my life? Timeseries with PostgreSQL Easy SVG sparklines Using Declarative Shadow DOM to embed HTML emails on a web page Selling SaaS on Gumroad PDF: The Conjoined Triangles of Success Deploying Metabase to Fly.io The ".x" Files Xcode 8 managed signing: adding new device UUIDs to a provisioning profile Emojify your Wi-Fi (Netgear R6300 edition) How to use the San Francisco Mono typeface before macOS Sierra is released Disabling App Transport Security in your development environment Swift: A nicer way to tell if your app is running in Debug mode Development environment config overrides in Jekyll Setting up SwiftLint on Travis CI
Placeholder names should be bad and unique
2025-04-21 · via Home on Alex Plescan

I use placeholder names often in my projects. They let me make fast upfront progress without needing to stop and think of the perfect name for something.

And since most of the things I experiment with end up getting abandoned after a few hours’ work has revealed they’re not worth pursuing, I’m often glad that I didn’t spend too much time dwelling on their names.

So when it comes to assigning a placeholder name to something, can you just use whatever you want? Well, yeah - but I’d like to suggest a couple of tips:

Use an awful name

This one helps to avoid “Temp Love”, a term from the film industry where temporary soundtracks get used in the final cut because everyone’s grown attached. The same thing can happen in code: give something a decent enough name and it might just sneak into production before you rethink it.

If you want to force yourself to revisit the name later, pick something so awful that you’re guaranteed to reconsider it.

I was working on an exception aggregator recently, unsure of what to call it I went with the placeholder name “vomitbag”. Perfect. Definitely changing that before shipping it to production.

Use a name that’s unique across your project

Eventually you’ll need to do a sweeping find and replace to change out the temp name for the final one. That’s much easier when the placeholder name only returns exact matches. If you use something too generic it turn up more hits in your project, which’ll make what should be an easy bit of renaming much harder.

For example, if I’d called the exception aggregator “exceptions”, a find and replace could’ve hit matches wherever I’d used the term “exception”, and I would’ve needed to manually check each one.

So yeah… name it “vomitbag”. Name it “trashcastle”, or “goblinhole” if you have to. Just don’t let a placeholder name make you fall in love with it!