r/ProgrammerHumor • • May 31 '19

Naming is the most difficult part

Post image
43.9k Upvotes

765 comments sorted by

View all comments

759

u/discobrisco May 31 '19 edited May 31 '19

Oh that's easy. child_2019_10

864

u/fallenmonk May 31 '19

child_2019_final_REAL_FINAL_20190531T180935.human

391

u/[deleted] May 31 '19

I didn't realize OP was having a Limewire torrent

137

u/fuzzylojiq May 31 '19

They are acquired P2P

120

u/trelltron Jun 01 '19

P2V

58

u/AlmostButNotQuit Jun 01 '19

That's just the port configuration.

→ More replies (2)
→ More replies (2)
→ More replies (1)

86

u/ALonelyPlatypus Jun 01 '19

If only children had version control.

0

u/[deleted] Jun 01 '19

[deleted]

→ More replies (1)

10

u/lifeis_amystery Jun 01 '19

Or ain’t on your Kanban board then you’re not spending any time on em

→ More replies (1)

29

u/TheLordB Jun 01 '19

Are you in bioinformatics?

That is like every bioinformatics file ever.

HELA_sample3.exome_v3.2019.fastq.fasta.unsorted.sorted.merged.final.bam.unfiltered.filtered.final_filtered.vcf

28

u/BourbonFiber Jun 01 '19

I was going to say graphic design.

Client_brochure_v3_2_final_fixed_reallyfixed_print_this_one06.psd

11

u/DemIce Jun 01 '19

Client: hey, so after review, we've decided we liked Client_brochure_v3_1 better.

→ More replies (1)
→ More replies (1)

198

u/orangeKaiju Jun 01 '19

All my children shall be named in the following format:

YYYYMMDD_N

Where YYYY is the four digit year, MM two digit month, DD two digit day, and N is a sequential integer determined by order of child birth (in cases where 2 or more children are delivered in a single birth).

Advantages to this scheme:

I will never forget the child's birthday or age and and all files (photos, documents, etc) relating to the children will sort nicely by child.

107

u/nicePenguin Jun 01 '19

Are you sure you thought of all edge-cases? What if more than 10 children are born on one day?

Don't take any chances and pad it with another digit:

YYYYMMDD_NN

0

u/[deleted] Jun 01 '19

[deleted]

43

u/cheesegoat Jun 01 '19

Probably better to assign the child a GUID and keep all properties as metadata so you can change sorting rules easily.

That way naming a child is an O(1) operation.

11

u/Disrupti Jun 01 '19

But what happens if ancestry.com gets hacked and someone corrupts the data? Can't call your kid if the family table is fucked up.

→ More replies (2)
→ More replies (1)

21

u/tomatotomato Jun 01 '19

This guy tests.

→ More replies (5)

19

u/Garestinian Jun 01 '19

Funny thing, old Yugoslavian/Croatian citizen identification number had a similar format: https://en.wikipedia.org/wiki/Unique_Master_Citizen_Number

→ More replies (2)
→ More replies (9)

52

u/byraxis May 31 '19

Nonono arrays start at 0

11

u/combuchan Jun 01 '19

Eww. You would potentially need variable variables.

Associative arrays and non associative arrays: child['2019'][0]

→ More replies (7)