DEV Community

Alpha, Beta, Gamma naming convention

Silvestar Bistrović on November 07, 2018

This post was originally published on silvestar.codes. A few months ago I started using Alpha, Beta, Gamma naming convention. It began as a temp...
Collapse
 
david_j_eddy profile image
David J Eddy

One more than one occasion I have been called out for being over pedantic concerning naming things. For some reason I bike shed heavily about it. Your naming system, I like it.

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

Collapse
 
gadse profile image
Peter

I don't know who it was, but someone once added off-by-one errors to the list. Of course - without incrementing the cardinality counter. :)

Collapse
 
starbist profile image
Silvestar Bistrović

One of the most famous quotes about programming. 👍

Collapse
 
starbist profile image
Silvestar Bistrović

I too was giving too much attention to naming things. With this approach, I don't bother anymore.

Collapse
 
jeroka profile image
Esteban Rocha

I like it! Nice idea, I'll definitively try this out.

Collapse
 
starbist profile image
Silvestar Bistrović

I hope you will like it once you use it. 👍

Collapse
 
imkremen profile image
Vladimir Grebnev

Why it's better than numbers?

Example:
$color-1: #12e09f;
$color-2: #e01258;
$color-3: #f5f5f5;
$color-4: #1f1f1f;
$color-5: #fff;

Collapse
 
starbist profile image
Silvestar Bistrović

I have tried that I have a couple of problems. First, I couldn't remember which number stands for what. Numbers are not that memorable. Second, when trying to search for '1', I got a billion results.