Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,486 of 4,675    |
|    Bernhard Schornak to fizz buzz    |
|    Re: Fast Fizz Buzz program    |
|    21 Jul 18 14:34:27    |
      From: schornak@nospicedham.web.de              fizz buzz wrote:                     > On Thursday, July 19, 2018 at 10:56:27 AM UTC-5, Bernhard Schornak wrote:       >> fizz buzz wrote:       >>       >>>> Write a program that prints the numbers from 1 to 100...       >>       >> Sorry, but I prefer practical stuff useful for daily tasks,       >> where the fastest way is the best solution.       >       > What we're doing right now is similar to sport. Everyone knows that       > fastest way to run 100 meters is to use a car, but for some reason       > athletes still trying to beat the record using their legs. :-)                     Yes. To use a car requires to have a car, right? ;)                     >> Actually, there       >> is no rule not to use my method in your exercise, so you're       >> free to choose any way leading to the proper solution. Just       >> not to use the fastest way because no on else had that idea       >> is a little bit stupid, isn't it?       >       > I am sorry, Bernhard, I didn't try to look mean or anything like that.                     I never felt offended, and I hope you got it that my replies       - except my solution, of course - always were written with a       twinkling eye... ;)                     > It all depends on how we define rules and what we consider cheating.                     Agreed.                     > Me and my friend have a collection of FizzBuzz programs, and all those       > programs have same output:                     Oh! Now that you realised there is a much faster way, you're       coming up with hidden rules no one knew before?                     > "1\n2\nFizz\n4Buzz\nFizz\n...999997\n999998\nFizz\nBuzz\n"                     Yes, that's the obvious way to solve a task where 90 percent       of the task's rules are hidden from the testees eyes... ;)                     > File with this output will be 6274073 bytes long. We compare the output       > of our version with this file to ensure our programs giving us the right       results.                     That's the most stupid thing I ever heard. What happens if a       testee uses my libraries and writes properly ordered numbers       to the output file:               1        2       ...       9 999 999 997       9 999 999 998       9 999 999 999                     Does that testee fail the test even if it's solved properly?       Isn't the "optical presentation" part of *any* challenge, as       well?              My conversion functions allow to "format" numbers in several       ways (including pseudo FP), but they always deliver properly       sized numbers like above. It hurts my eyes if numbers aren't       properly padded with spaces to keep powers of ten in one and       the same column, regardless of how many rows there are...                     > If we starting to stretch the rules, then how far can we go?                     As far as you want. But to be fair, you had to tell all your       testees the entire ruleset before the test starts, not after       the test, when your exercise was solved, but you do not like       that some of you students found a better way to solve it.                     > For example, rules technically say nothing about new line characters. I       > can say that I don't really have to divide output with new lines or blanks.       > It will make my life much easier because then I can print "Fizz" (4 bytes)       and       > "FizzBuzz" (8 bytes) while now I'm forced to print "Fizz\n" (5 bytes) and       > "FizzBuzz\n" (9 bytes).                     Which limits the solution to Linux systems - locking out the       vast majority of Windows and MacOS users.              As I told, the entire FIZZely-BUZZely thing is an artificial       contest. To stay with your parable, it is a contest "Who can       walk on the tips of his fingers the fastest?" I'm not really       interested in such contests, but as a human being, I'm still       able to develop strategies how to be faster, even if I never       will partake in such contests... ;)                     Enjoy the weekend!              Bernhard Schornak              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca