DEV Community

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

Collapse
 
derek profile image
derek β€’

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

πŸ‘‹ Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay