DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
derek
derek

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 (4)

Collapse
 
derek profile image
derek Author

πŸ˜†β˜ 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.

Collapse
 
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

Collapse
 
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.

πŸ‘‹ Have You Posted on DEV Yet?

Head over to our Welcome Thread and tell us a bit about yourself!