News for hackers. Stuff that matters.
Re:GitLab Database Incident – Live Report by wtbob on Tuesday January 31, 2017 @10:30PM (#13537971)
'db1' vs. 'db2' is still insufficiently clear, though. Even better would be e.g. to name development systems after planets and production systems after superheroes. Very few people would mistake 'superman' for either 'green-lantern' or 'pluto,' but it's really easy to mistake 'sfnypudb13' for 'sfnydudb13.'
Re:GitLab Database Incident – Live Report by grzm on Tuesday January 31, 2017 @10:53PM (#13538079)
Or skip the middleman: prod-db1, prod-db2, dev-db1, dev-db2.
Re:GitLab Database Incident – Live Report by wtbob on Tuesday January 31, 2017 @11:04PM (#13538139)
Visually there's not a whole lot of difference. Ideally, you want something where the shape of each name is reasonably distinct from all the rest — otherwise folks will just ignore that odd blot before the prompt.

And then, once you've started naming things as $ENV-$TYPE, someone will want to cram in the location, and the OS, and the team which maintains it, and the customer, and and and. Then someone will reduce all of those identifiers into single characters … and you'll be in the situation I mentioned. Clearly clpudb1 is CharlesCorp's first London production database system!

Re:GitLab Database Incident – Live Report by grzm on Tuesday January 31, 2017 @11:26PM (#13538227)
I strongly argue against those types of abbreviations in naming, for exactly the points you make.

Here's how I view it:

The distinction between prod and dev is pretty clear cut. The words "dev" and "prod" have significantly different shapes and are immediately unambiguous. There's no need to remember a superhero vs astronomical object distinction.

As the number of database server instances grows, you've got another level of naming issues that arises when needing to distinguish between hosts and db server instances—and perhaps even database/schema independence if necessary. Staying consistent and easy-to-use with an arbitrary naming scheme becomes increasingly unwieldy, in my opinion.

Re:GitLab Database Incident – Live Report by sratner on Wednesday February 01, 2017 @06:48AM (#13539946)
Additionally, I have taken up a habit of not abbreviating "production" and "staging", whenever possible. The fact that len("production") > len("staging") > len("dev") is a feature when you find yourself typing it into a terminal or db shell.
Re:GitLab Database Incident – Live Report by traviscj on Wednesday February 01, 2017 @09:17AM (#13540839)
At work we have an ascii-art, most-of-80x40-filling version of our logo rendered in an environment-associated color on login + matching prompt. The ascii-art logo might not have helped in this case (if it was a long sequence of console interactions), but It does catch "db1" vs "db2" typos, for instance, and also elicits a certain reverence upon connection.