this post was submitted on 20 Dec 2023
662 points (96.4% liked)

Programmer Humor

32472 readers
564 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 11 months ago (6 children)

But is naught/nice a binary value?

[–] [email protected] 9 points 11 months ago (5 children)

I think you would have a table of "activities" with a value of how good/bad each is. So like cleaning your room would be +5 but crying in a store because mommy wouldn't buy you a toy would be - 15. Then you have a table for children and each child starts with 0 in January and then for each activity the child does there naughty/nice value gers adjusted. December 24 Santa runs a query on the dB and gets a list of every child with a positive value.

Keep in mind I currently feel sick and put about 5 minutes of thought into thus.

[–] [email protected] 10 points 11 months ago (4 children)

Actually I think there should be a intermediary table as a history of activities of each child. Like child table is I'd, name, age, address, and naughty/nice value, activities would be Id, description, and good/bad value. Then a history table of ID, child_id, activity_id. So santa can recalculate a child's naughty/nice value to "check it twice"

[–] [email protected] 7 points 11 months ago (1 children)

This is starting to sound like The Good Place with extra steps...

[–] [email protected] 9 points 11 months ago (1 children)

North Pole Incorporated

bringing all the fun of HR and spreadsheet drudgery to the little boys and girls of the world

[–] [email protected] 2 points 11 months ago

I mean in a certain light, christmas presents are a yearly bonus for children and Santa checking his list is a management review of the child's performance...

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)