107

What is the meaning of the entire site collectively has at least 20 distinct hats in the below line?

Own any hat while the entire site collectively has at least 20 distinct hats

Does that mean that only 20 hats have been awarded till now or .... Idk?

I like how it looks though... The trophy makes me feel like I was rewarded something very rare :P

6
  • 4
    I wish there was a dunce-hat, because I still don't understand this hat... And yes, I read the two answers... I mean why would I need to wait until 20 hat types were handed out and I have at least one hat to get this hat?
    – sjngm
    Commented Dec 20, 2016 at 20:30
  • I understand how/when you get the hat but the reason/purpose/meaning of this hat is a mystery. But perhaps there no reason to expect a reason/purpose/meaning - hats are just for fun. Or?
    – 4386427
    Commented Dec 21, 2016 at 5:49
  • @sjngm I think the reason it's only to make fun (and to make the users think about it and generate meta discussion ;) ). That the community earns collectively 20 hats it's practically negligible, so when you win your first hat you've this as an extra WTH prize.
    – albciff
    Commented Dec 21, 2016 at 6:16
  • I don't even know what a hat is, but I guess I have one. Commented Dec 22, 2016 at 2:26
  • My "hat" is actually a face mask. I guess badges and points are getting boring?
    – EdwardM
    Commented Dec 22, 2016 at 19:43
  • @albciff Negligible for SO, but not for some of the smaller communities.
    – Brian
    Commented Dec 22, 2016 at 20:37

2 Answers 2

75

It means exactly what it says. If you have a hat, while the other members of the same community have at least 20 (different types of) hats, you'll get this hat.

Or, if you understand SQL:

USE <the database corresponding to your SE community>;

(SELECT COUNT(DISTINCT hatname) FROM awardedhats) >= 20 AND
(SELECT COUNT(*) FROM awardedhats WHERE userid = <your user ID>) >= 1

Here, awardedhats is a table with two columns; the user ID and the name of the hat.

6
  • Oh, So when I said that only 20 hats have been awarded till now I was correct? Commented Dec 19, 2016 at 8:16
  • 4
    No, at least 20 (types of) hats.
    – Glorfindel
    Commented Dec 19, 2016 at 8:17
  • Yeah, 20 different types of hats I meant... Sry... Commented Dec 19, 2016 at 8:18
  • 53
    "It means exactly what it says" - IMO it's extremely unclear
    – j08691
    Commented Dec 19, 2016 at 15:05
  • 3
    I understood it, though I don't understand the why of it. But I guess hats are just for fun anyway, so you have have silly reasons to be awarded a hat.
    – Hack-R
    Commented Dec 19, 2016 at 21:20
  • 2
    So the only case where you wouldn't get this hat is if there's only been < 20 distinct hats awarded by the time you own your first...probably a duration of 0.00005 seconds until at least 20 are discovered... At which point you get this hat anyways. "Free Hat" probably would have caused less confusion. Commented Dec 21, 2016 at 17:08
29

Added this answer because the accepted one basically said "It means exactly what it says." when I wrote it.

Own any hat while the entire site collectively has at least 20 distinct hats

Take all the hats everyone has gotten on the site, and count the number of different hats. If there is 20 or more different hats awarded and you have a hat, the condition is true.

1
  • 11
    Looks like an infinite loop to me. Maybe they meant to use if ;) Commented Dec 19, 2016 at 21:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .