[{"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304569409.243443, "message": "*might want to work there", "group_id": 292, "id": 924331}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304569370.3579149, "message": "@justinlilly no kidding. It's miserably ugly and I would never merge that code were it given to me.", "group_id": 292, "id": 924321}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304568601.3478341, "message": "As a result of my intern search, for one reason or another, a FizzBuzz one-liner just came to me, are there more clever solutions? http://dpaste.de/xyA8/", "group_id": 292, "id": 924138}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304569281.9801209, "message": "@issackelly you're fired.", "group_id": 292, "id": 924306}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304568643.3595979, "message": "relevant: http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html", "group_id": 292, "id": 924146}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304569412.6026931, "message": ";)", "group_id": 292, "id": 924333}, {"user_id": 209, "stars": [{"date_created": 1304569668.1287489, "user_id": 1}], "topic_id": 33774, "date_created": 1304569399.13362, "message": "don't show google, I might work there some day", "group_id": 292, "id": 924328}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304571567.2259519, "message": "@issackelly why do you want a clever solution?", "group_id": 292, "id": 924508}, {"user_id": 31883, "stars": [{"date_created": 1304600399.458137, "user_id": 209}, {"date_created": 1304656675.813854, "user_id": 2376}], "topic_id": 33774, "date_created": 1304571593.0274861, "message": "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan", "group_id": 292, "id": 924510}, {"user_id": 3997, "stars": [], "topic_id": 33774, "date_created": 1304574017.4205999, "message": "[(i%3==0 and 1 or 0)*\"Fizz\"+(i%5==0 and 1 or 0)*\"Buzz\" or i for i in range(1, 100)]", "group_id": 292, "id": 924816}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304574120.7629271, "message": "@Surgo \"and 1 or 0\" is superfluous there", "group_id": 292, "id": 924835}, {"user_id": 3997, "stars": [], "topic_id": 33774, "date_created": 1304574608.147342, "message": "@rdpate wow! thanks a lot!", "group_id": 292, "id": 924873}, {"user_id": 3997, "stars": [{"date_created": 1304581771.5000091, "user_id": 21923}], "topic_id": 33774, "date_created": 1304574620.4006259, "message": "Is this shortest ? [(i%3==0)*\"Fizz\"+(i%5==0)*\"Buzz\" or i for i in range(1, 100)]", "group_id": 292, "id": 924875}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304574658.2578349, "message": "e.g. does it need to actually print, or just be an expression returning a list?", "group_id": 292, "id": 924880}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304574644.2951541, "message": "why is \"shortest\" important? what are the set of requirements?", "group_id": 292, "id": 924878}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304574664.69561, "message": "can the list mix string objects with ints?", "group_id": 292, "id": 924882}, {"user_id": 141, "stars": [{"date_created": 1304656722.2233751, "user_id": 2376}, {"date_created": 1304659468.4324141, "user_id": 3997}], "topic_id": 33774, "date_created": 1304582695.463963, "message": "in code golf, the requirements are: shortest valid solution wins. that is all.", "group_id": 292, "id": 926220}, {"user_id": 141, "stars": [], "topic_id": 33774, "date_created": 1304583227.2335141, "message": "for instance, this saves one character (and also actually includes the 100th item): [(i%3==2)*\"Fizz\"+(i%5==4)*\"Buzz\" or i+1 for i in range(100)]", "group_id": 292, "id": 926311}, {"user_id": 141, "stars": [], "topic_id": 33774, "date_created": 1304583309.1205151, "message": "i can't believe you got me to play code golf :|", "group_id": 292, "id": 926315}, {"user_id": 29990, "stars": [], "topic_id": 33774, "date_created": 1304597548.353987, "message": "Is there a significant performance enhancement in Python to writing this as a one-line piece of code versus writing it out in more lines? Is it always 'better' to write the shortest valid solution or are there cases where it either doesn't matter or a longer solution is better? I guess I'm wondering if this submission could be seen as being incorrect and actually hurt someone's chances of being hired.", "group_id": 292, "id": 927913}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304600526.210223, "message": "*@jden", "group_id": 292, "id": 928473}, {"user_id": 209, "stars": [{"date_created": 1304616047.9900961, "user_id": 141}, {"date_created": 1304617439.5340891, "user_id": 8391}, {"date_created": 1304700098.029484, "user_id": 927}], "topic_id": 33774, "date_created": 1304600513.4220979, "message": "@iden NO! It's almost never better to write a solution just because it's shorter. I'm very sorry if that's where we led your thought patterns. @rdpate was right to call me out, when developing, the most simple solution to understand is _almost always_ the right one to commit to the code base. I was looking for shorter, or more clever solutions, because it was late at night, and I was slightly bored, and one solution that was short popped in my head.", "group_id": 292, "id": 928469}, {"user_id": 8391, "stars": [{"date_created": 1304624262.8249791, "user_id": 21695}, {"date_created": 1304664149.5637879, "user_id": 11592}], "topic_id": 33774, "date_created": 1304617482.820384, "message": "for i in range(1,101):\n if not i % 15:\n print \"FizzBuzz\"\n elif not i % 3:\n print \"Fizz\"\n elif not i % 5:\n print \"Buzz\"\n else:\n print i", "group_id": 292, "id": 932170}, {"user_id": 8391, "stars": [{"date_created": 1304624165.358397, "user_id": 209}, {"date_created": 1304640972.603879, "user_id": 141}, {"date_created": 1304641435.4699271, "user_id": 31883}, {"date_created": 1304659476.1232569, "user_id": 3997}], "topic_id": 33774, "date_created": 1304617512.5948901, "message": "Simple, explicit, easy to read and understand. One liners are fun to write, but usless in actual practice", "group_id": 292, "id": 932178}, {"user_id": 24018, "stars": [{"date_created": 1304636054.447603, "user_id": 8391}], "topic_id": 33774, "date_created": 1304620938.859781, "message": "I prefer i % 15 == 0 over not i % 15, it seems clearer and more explicit", "group_id": 292, "id": 932821}, {"user_id": 7, "stars": [{"date_created": 1304630744.7598791, "user_id": 1}, {"date_created": 1304657295.3427911, "user_id": 209}, {"date_created": 1304658463.434479, "user_id": 22109}, {"date_created": 1304659486.2301011, "user_id": 3997}, {"date_created": 1304661731.8970749, "user_id": 218}], "topic_id": 33774, "date_created": 1304626921.0966749, "message": "if you can't solve fizzbuzz you are an incompotent programmer, full stop", "group_id": 292, "id": 933993}, {"user_id": 22109, "stars": [{"date_created": 1304640978.29093, "user_id": 141}], "topic_id": 33774, "date_created": 1304630298.3371451, "message": "my favorite solution is printing the decoded version of the correct fizzbuzz text encoded in base64", "group_id": 292, "id": 934705}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304657393.408675, "message": "@Alex yeah, that's the point. Codinghorror says 199 in 200 applicants can't do it. I think he's a liar, or looking In the right pool.", "group_id": 292, "id": 938364}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304657411.003464, "message": "*or not looking", "group_id": 292, "id": 938366}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304661169.9018531, "message": "@issackelly depends how silly you want to make it too; can a developer run the code and modify based on that? use a tool that checks for syntax errors? the way atwood words it, it's ambiguous whether the endpoint 100 is inclusive or exclusive; does misinterpreting that count as failing?", "group_id": 292, "id": 938762}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304661222.196306, "message": "the \"write this code perfectly the first time without a compiler\"-type challenges seemed interesting, but they don't represent the real world and aren't useful to measure any sort of real-world knowledge or productivity", "group_id": 292, "id": 938769}, {"user_id": 11972, "stars": [], "topic_id": 33774, "date_created": 1304664580.7674561, "message": "[if x `mod` 3 == 0 && x `mod` 5 == 0 then \"FizzBuzz\" else if x `mod` 5 == 0 then \"Buzz\" else if x `mod` 3 == 0 then \"Fizz\" else (show x) | x <- [1..100]]", "group_id": 292, "id": 939134}, {"user_id": 20326, "stars": [], "topic_id": 33774, "date_created": 1304683961.4256301, "message": "@rdpate Getting an accurate idea of real performance is difficult to say the least, even though it's what you want to know. To pare things down to only great candidates, plenty of awful indicators are used: if you don't believe me, just think about the entire concept of filtering resumes for a moment. ", "group_id": 292, "id": 941175}, {"user_id": 20326, "stars": [{"date_created": 1304692424.9077661, "user_id": 8391}], "topic_id": 33774, "date_created": 1304683974.950994, "message": "Do you interview people for software developer positions? If not, I wonder if you know how dire the situation is and how full the market is of people with good resumes and nice experience who don't seem ever to have written a computer program ever. Fizzbuzz-style problems are used (by me and I believe most people who use them) not as a place to nitpick the use of print-with-trailing-comma or the high memory use of str.join, but just to check that the person is not completely braindead.", "group_id": 292, "id": 941177}, {"user_id": 20326, "stars": [], "topic_id": 33774, "date_created": 1304684084.1852131, "message": "(Ugh, I posted this all as one message and tried to correct a spelling mistake and of course there's no edit button, so I deleted it and copied and pasted my response. Of course, multi-line copied and pasted posts appear formatted completely different. This is one of the most annoying things about convore for me.)", "group_id": 292, "id": 941196}, {"user_id": 20326, "stars": [], "topic_id": 33774, "date_created": 1304683971.289746, "message": "Used right, these little snippets are very valuable. If you ask someone to write a silly piece of code and they're completely flustered and don't know how to get started, you know something's wrong. The point isn't about remembering all the colons or spelling some import right; it's just to see a bare minimum. If someone can't write out a fizzbuzz problem on the whiteboard or on a computer in a language they say they're proficient using, I don't for a second think they're going to have good performance in a software development job. It's a necessary but not sufficient condition.", "group_id": 292, "id": 941176}, {"user_id": 7, "stars": [{"date_created": 1304711074.4317279, "user_id": 8}, {"date_created": 1304714386.046845, "user_id": 1}, {"date_created": 1304741981.894603, "user_id": 3617}], "topic_id": 33774, "date_created": 1304699467.9329259, "message": "If fizzbuzz is useful to you you need a better screening procedure, if you asked me one in an interview I'd walk out, you're wasting me time", "group_id": 292, "id": 943854}, {"user_id": 927, "stars": [{"date_created": 1304702825.999722, "user_id": 141}, {"date_created": 1304708143.222162, "user_id": 275}, {"date_created": 1304727001.1023469, "user_id": 31883}, {"date_created": 1304741217.7632411, "user_id": 8391}, {"date_created": 1304839521.1794341, "user_id": 915}], "topic_id": 33774, "date_created": 1304700190.4214931, "message": "One reason why hiring open-source people is so nice: if they have an active github account, you can bypass all of these questions and go straight to \"Would we like to have this person on the team?\"", "group_id": 292, "id": 943929}, {"user_id": 209, "stars": [], "topic_id": 33774, "date_created": 1304708165.646524, "message": "@alex If I were interviewing you, I wouldn't waste your time with FizzBuzz, I think you're absolutely right that it would be insulting to you, and show complete incompetence on my part.", "group_id": 292, "id": 944879}, {"user_id": 8, "stars": [{"date_created": 1304712041.838964, "user_id": 719}, {"date_created": 1304714389.943608, "user_id": 1}, {"date_created": 1304714742.844667, "user_id": 7}, {"date_created": 1304716954.3050649, "user_id": 22109}, {"date_created": 1304741991.28615, "user_id": 3617}], "topic_id": 33774, "date_created": 1304711163.486743, "message": "needing to use fizzbuzz in an interview is a sign that your screening procedures are terrible.", "group_id": 292, "id": 945475}, {"user_id": 31883, "stars": [], "topic_id": 33774, "date_created": 1304726976.7208271, "message": "@mikegraham That's exactly what I'm saying. If someone writes an awesome fizzbuzz solution in very terse, yet readable code, but forgets a semi-colon and the solution \"doesn't work\", is that person counted as one of the 199 out of 200 that \"failed\"?", "group_id": 292, "id": 947856}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304739476.981889, "message": "If you can't write a 3 level if statement and 3 prints without a typo.. you really need to go back to basics and take a typing course ;)", "group_id": 292, "id": 948608}, {"user_id": 8391, "stars": [{"date_created": 1304822277.8457241, "user_id": 1243}], "topic_id": 33774, "date_created": 1304741382.762023, "message": "I think the point is that no matter what your screening procedure, liars or incompetent \"programmers\" will still slip through the crack. Seeing their code before hiring (whether it be from GitHub or from some stupid test) is essential.", "group_id": 292, "id": 948722}, {"user_id": 11971, "stars": [], "topic_id": 33774, "date_created": 1304744478.5010259, "message": "More importantly, it is far more difficult to screen for complete asswads and lazy people than it is to screen for incompetent programmers. A key to competency, in my book, is that you are passionate about coding and are always learn. Very hard to screen that.", "group_id": 292, "id": 948932}, {"user_id": 11971, "stars": [], "topic_id": 33774, "date_created": 1304744494.8818431, "message": "*always learning", "group_id": 292, "id": 948933}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304748090.389812, "message": "@mikegraham Assuming that fizzbuzz was the only solution, losing an alex gaynor at the expense of 100 crap people is an acceptable trade-off. Its not the only solution though.", "group_id": 292, "id": 949081}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304748119.453064, "message": "there exist questions in which non-programmers will fail but people like alex will succeed.", "group_id": 292, "id": 949083}, {"user_id": 20326, "stars": [], "topic_id": 33774, "date_created": 1304747242.4641149, "message": "@alex If you'd walk out of an interview because of one insulting technical question, it sounds like we're lucky not to have you. I imagine we'd only lose one Alex Gaynor for ever 100 stuck-up primadonas we don't want to deal with.", "group_id": 292, "id": 949064}, {"user_id": 20326, "stars": [], "topic_id": 33774, "date_created": 1304747290.3594511, "message": "@rdpate Of course that's not how it works.", "group_id": 292, "id": 949066}, {"user_id": 11592, "stars": [], "topic_id": 33774, "date_created": 1304762875.3146009, "message": "@justinlilly please tell us", "group_id": 292, "id": 949947}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304783255.6039031, "message": "Iirc, it was something about multiplying matrices or similar.", "group_id": 292, "id": 951314}, {"user_id": 218, "stars": [], "topic_id": 33774, "date_created": 1304783183.253871, "message": "Coding challenges come to mind. I was given a coding \"assignment\" to be hired at my last job.", "group_id": 292, "id": 951307}, {"user_id": 3617, "stars": [], "topic_id": 33774, "date_created": 1304793073.085366, "message": "@mikegraham And I'm glad I wouldn't work with stuck-up primadonas like yourself. :) So it works out in the end.", "group_id": 292, "id": 952116}, {"user_id": 4383, "stars": [{"date_created": 1304920747.289897, "user_id": 3997}], "topic_id": 33774, "date_created": 1304821045.2288721, "message": "I thought FizzBuzz was a good question to weed out \"non-programmers\" if that's really what you are trying to do.", "group_id": 292, "id": 955714}, {"user_id": 4383, "stars": [], "topic_id": 33774, "date_created": 1304820960.888962, "message": "@justinlilly maybe Alex would succeed but other good perfecly programmers might fail. There isn't a perfect solution.", "group_id": 292, "id": 955692}, {"user_id": 1284, "stars": [], "topic_id": 33774, "date_created": 1305056129.2890029, "message": "had* (ugh)", "group_id": 292, "id": 994957}, {"user_id": 16069, "stars": [], "topic_id": 33774, "date_created": 1305055604.3362811, "message": "@ianmlewis I believe that is EXACTLY what FizzBuzz is good for. A competent programmer (not to mention one that you'd like to have around personality-wise) should recognize why they're asking the FizzBuzz question, comply, and move onto the more interesting parts of the interview. If a programmer wants to get up and walk out because of it, fine. A good programmer should recognize the shibboleth (maybe even appreciated it) and get down to business.", "group_id": 292, "id": 994845}, {"user_id": 1284, "stars": [], "topic_id": 33774, "date_created": 1305056036.3174231, "message": "I wonder if an open-source app for \"non-programmer screening\" would be useful?", "group_id": 292, "id": 994934}, {"user_id": 1284, "stars": [], "topic_id": 33774, "date_created": 1305056058.433543, "message": "it could just use basic javascript, and have a few questions with parameters that are randomly selected", "group_id": 292, "id": 994940}, {"user_id": 1284, "stars": [], "topic_id": 33774, "date_created": 1305056116.652005, "message": "being smart enough to read the source or cheat effectively would be fine as evidence that you has some iota of an idea what you were doing", "group_id": 292, "id": 994952}, {"user_id": 32484, "stars": [{"date_created": 1305494200.934233, "user_id": 32484}], "topic_id": 33774, "date_created": 1305193053.18331, "message": "Hey people!", "group_id": 292, "id": 1022843}, {"user_id": 2376, "stars": [{"date_created": 1305698165.2216749, "user_id": 32484}], "topic_id": 33774, "date_created": 1305222833.858566, "message": "Hey Hay Hay Sevenay!", "group_id": 292, "id": 1026895}, {"user_id": 31713, "stars": [{"date_created": 1305351316.3316841, "user_id": 3997}], "topic_id": 33774, "date_created": 1305270504.2230721, "message": "its time to include 'import fizzbuzz' as built in", "group_id": 292, "id": 1037187}, {"user_id": 32484, "stars": [], "topic_id": 33774, "date_created": 1305494185.009661, "message": "Lol whats up??", "group_id": 292, "id": 1063527}, {"user_id": 22943, "stars": [], "topic_id": 33774, "date_created": 1305530950.5761189, "message": "can t believe that some people would fail this...", "group_id": 292, "id": 1068358}, {"user_id": 17897, "stars": [], "topic_id": 33774, "date_created": 1305532228.363857, "message": "@fyelles oh, I can. I've known at least one certified SAP developer who has failed at this kind of FizzBuzz. The problem being he was already employed at the company we were contracting for. Since we had to work with him the FizzBuzz came from us. :(", "group_id": 292, "id": 1068453}]