DEV Community


Posted on

Naming things...

There are only two hard things in Computer Science: cache invalidation and naming things.
-- Phil Karlton


What's the best or worst naming you've seen in code or as a project name?

Top comments (3)

derek profile image

πŸ˜†β˜ That's a good one!

I don't understand why the security world have great names for all the things... ie: vulnerabilities, ransomware, malware, tools etc.

mrwesdunn profile image
Wes Dunn

Best: Python auth method named - can_haz_access

Worst: C# local array variable name, used for holding split string parts - partsIsParts. I can only assume this is in reference to an 80s Wendy’s commercial... but still...

NOTE: these replies are thoroughly tongue-in-cheek

xanderyzwich profile image
Corey McCarty

The biggest problem names that I've come across aren't the obscure names it's the ones that cause overlapping concepts with common words. Index is a terrible word. I work with data in oracle. Indexing can refer to the oracle indexes or tables that we call index tables (with very similar usage) and then id's get referred to as indexes. It gets really confusing really fast when you get into detailed conversations.