naming
-
🏷️ IDs are not about details
With part numbers, serial numbers, and similar identifiers, the natural tendency is to over-specify. Why not encode the color, size, shape, and material in the part number? Why not encode the manufacturing date, the version, and the phase o…
-
📅 Dates in filenames
One of the most common labels we use today is dates. We use them in file names, reports, database fields, etc. There are many ways to enter a date: 2024-12-20 20 Dec 24 12/20/2024 20/12/2024 Dec 20, 2024 etc. RFC 3339 (YYYY-MM-DDTHH:MM:SS…
-
🏷️ How do you consistently name things?
There are only two hard things in Computer Science: cache invalidation and naming things. – Phil Karlton Plenty of opinions abound on style, naming conventions, formatting, etc. But there is one principle I try to follow when naming things…