Skip to main content
23 events
when toggle format what by license comment
Jun 3, 2020 at 13:30 history edited CommunityBot
Commonmark migration
Aug 2, 2013 at 14:04 comment added tom_q @meagar The requirement “Generally speaking, everyone should buy croissants as many times as the others” invalidates your proposal. Your proposal insures (after an unfeasibly immense number of iterations) that employees have an equivalent ratio "times bought divided by times not bought". It does not mean they get the same difference "times bought minus times not bought". On top of its mathematical incorrectness, your answer should be excluded by basic knowledge of psychology and workplace environments. This knowledge should not have to be spelled out - even for our community of programmers.
Jul 26, 2013 at 0:24 comment added Maks I agree with @Gilles, meager you haven't fully addressed the requirements of the OP's question and at worst, there should have been comments to request the OP edit the question to rephrase better not outright closing. The number of useful and relevant questions that I come across daily that had been closed after an answer was provided that saved me hours of needless searching elsewhere shows that the SO community are way too quick on the draw to close questions. The hot debate around this question is yet another example
Jul 25, 2013 at 23:36 comment added user229044 @LanceRobers Do you not understand how utterly stupid that line of logic is? Should we also put pictures of servers in there, because it mentions servers? Should we slap some Harry Potter fan art in here? Guess a pic of marbles would be on-topic over here, right? Please don't mention reductio ad absurdum, as we've already hit it with croissants being "on topic" on a program Q&A site.
Jul 25, 2013 at 23:35 comment added Lance Roberts Read the title. By the way, I thought you were completely right about the stupid scaling paragraph, but since you didn't bother to remove it, I didn't either.
Jul 25, 2013 at 23:33 comment added user229044 @LanceRoberts I don't hate pictures, I hate off-topic irrelevancies in what is supposed to be reference-quality writing. Can you actually defend your position? Why in the world would that image belong in the post? Why do you think Stack Overflow "loses" because users have to go to Google to find a picture of croissants instead of a programming Q&A site?
Jul 25, 2013 at 23:32 comment added Lance Roberts I don't know why you hate pictures, but you're wrong, it absolutely belonged in that post, but looks like the mod is on your side so Stack Overflow loses.
Jul 25, 2013 at 7:47 comment added Sklivvz @Gilles not specifying the distribution does not mean "use a more complicated one than equal distribution". Like any other question, it can be made over-complicated by choosing. Unlike other questions, it has a trivial valid solution which is appropriate.
Jul 24, 2013 at 21:26 comment added Gilles 'SO- stop being evil' @meagar The question states that “the chosen person should be pseudo-random”, but doesn't specify what set of persons should be targets or what distribution should be applied, so it isn't very meaningful. If the question wasn't locked, I'd request some clarification on that point. You'll notice that in my version of the question I've reformulated that part. I've already written a rather long answer on this thread that explains my position. Your reformulation of the question misses a lot of points, which is why I don't get the impression that you've read it.
Jul 24, 2013 at 21:21 comment added Rex Kerr Maybe this question should be closed because it inspires such aggressive ignorance. I'm not inventing mathematical modeling for fun--the point is that you are not solving the problem to specification. "Pseudorandom" doesn't mean "ignores my constraints", or "admits a trivial and wrong solution".
Jul 24, 2013 at 21:20 comment added user200500 @Gilles With "pick random person who is here and didn't buy last time" this is what would happen anyway, given that people skip work at about the same rate.
Jul 24, 2013 at 21:19 comment added user229044 @Gilles "Pseudo-random". Right there, in the question. If you could stop playing the cheap "did you read the question" card for a minute, and accept that I really did, maybe you could say something worth while to defend your case.
Jul 24, 2013 at 21:14 comment added Gilles 'SO- stop being evil' “Generally speaking, everyone should buy croissants as many times as the others”. It's right there in the question. Maybe you should read it? Social fairness is a completely different issue. Now you might choose to propose an algorithm that takes into account that some people should bring croissants more often than others. It's part of the design work that the question is calling for.
Jul 24, 2013 at 21:12 comment added user229044 @RexKerr No, I read the question, repeatedly. Just because you think there's a wonderful universe of mathematical modelling to apply to this staggeringly trivial problem doesn't mean the question has merit. He asked for a pseudo random selection. Full stop.
Jul 24, 2013 at 21:09 comment added Rex Kerr You didn't read the question properly. Maybe the picture of croissants distracted you? The number of croissants bought by people will diffuse away from each other with this algorithm. Also, it is not unreasonable to worry about scaling to 50 when you ask a question for which factorial complexity answers could be proposed.
Jul 24, 2013 at 21:09 comment added user229044 @Gilles You are reading a massive amount into this question that OP never asked. How do we tell the person who might be absent? How is that in any conceivable way related? You must be joking at this point. We should also adjust for salaries, right? Clearly the CEO should buy croissants 5 times more often as every body else. What about people with gluten intolerance? Have to model for them too, right? What about the guy who bikes to the office, I think he deserves 1.5x the croissants that the rest of the people get.
Jul 24, 2013 at 21:09 comment added Gilles 'SO- stop being evil' @OldCheckmark Defining the constraints is part of the modeling work. The question has put forward some of them. Answers should further analyze the scenario and come up with a suitable model.
Jul 24, 2013 at 21:08 comment added Gilles 'SO- stop being evil' That algorithm meets the hard requirements, but has the defect that depending on chance a person may go a long time between bringing croissants, or conversely may have to bring croissants many times in quick succession. Also, there's at least one issue that wasn't mentioned in the question and that a good answer should have pointed out or accommodated: how do you tell someone who's absent one day that they have to bring croissants the next day? If you prepare the roster in advance, how do you accommodate unexpected absences?
Jul 24, 2013 at 21:07 comment added Old Checkmark +1 about it being unspecific. Indeed behind its crispy and tasty exterior, the constraints/conditions are not very well defined.
Jul 24, 2013 at 21:03 comment added user229044 @Gilles Please, enlighten me. The actual choosing of a person could be accomplished in one line of ruby code: (people - people_on_vacation - [last_person_choosen]).sample. How is this "non trivial"? Everything else (actually generating the lists of people and people on vacation and storing them, and storing the person chosen last week) is external to the algorithm, and all impossible to comment on because he hasn't told us anything useful about how that data is made available.
Jul 24, 2013 at 20:58 comment added Gilles 'SO- stop being evil' The lack of understanding of the question from people such as you is a very good proof that the question is not trivial.
Jul 24, 2013 at 20:51 history edited user229044 CC BY-SA 3.0
added 1014 characters in body
Jul 24, 2013 at 20:37 history answered user229044 CC BY-SA 3.0