User talk:OMPIRE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Fizz buzz[edit]

Let me draw your attention to the following excerpt from the Fizz buzz article (my emphasis):

Directly below the paragraph containing these words, you have repeatedly inserted your own "exemplary" PHP code, which I'll reproduce here for posterity:

$map = array(3=>"Fizz",5=>"Buzz");
$i=0;
while ($i<100) {
	++$i;
	$res = $i;
	foreach ($map as $k=>$v) {
		if ($i%$k == 0) $res .= $v;
	}
	echo " $res, ";
}

If I was screening candidates for a programming position and one of them produced this code, I'd show them the door straight away. Here is the output it produces (you can check for yourself at http://ideone.com/Hn8Sh4):

 1,  2,  3Fizz,  4,  5Buzz,  6Fizz,  7,  8,  9Fizz,  10Buzz,  11,  12Fizz,  13,  14,  15FizzBuzz,  
16,  17,  18Fizz,  19,  20Buzz,  21Fizz,  22,  23,  24Fizz,  25Buzz,  26,  27Fizz,  28,  29,  
30FizzBuzz,  31,  32,  33Fizz,  34,  35Buzz,  36Fizz,  37,  38,  39Fizz,  40Buzz,  41,  42Fizz,  
43,  44,  45FizzBuzz,  46,  47,  48Fizz,  49,  50Buzz,  51Fizz,  52,  53,  54Fizz,  55Buzz,  56,  
57Fizz,  58,  59,  60FizzBuzz,  61,  62,  63Fizz,  64,  65Buzz,  66Fizz,  67,  68,  69Fizz,  
70Buzz,  71,  72Fizz,  73,  74,  75FizzBuzz,  76,  77,  78Fizz,  79,  80Buzz,  81Fizz,  82,  83,  
84Fizz,  85Buzz,  86,  87Fizz,  88,  89,  90FizzBuzz,  91,  92,  93Fizz,  94,  95Buzz,  96Fizz,  
97,  98,  99Fizz,  100Buzz, 

There are three things that are clearly wrong with this solution:

  1. The words Fizz, Buzz and FizzBuzz are supposed to replace the numbers that are multiples of 3 and 5. Your code fails in this respect.
  2. Your output is also padded with unnecessary spaces.
  3. When outputting a list of comma separated values, it is a mistake to add a comma at the end of the list, because it isn't separating anything.

Even if you fixed these glaring errors, your code would still be far from exemplary, given that

  1. You are using an associative array for no good reason, and
  2. You're using a while() loop where a for() loop would have been more appropriate.

Now you could, I suppose, fix all of these problems in your code, and that would be fine. But what would be the point of that? The Javascript code that LWChris provided before you came along was already perfectly adequate.

You're obviously not a competent programmer, so why not just leave this page alone? -- 82.43.248.83 (talk) 20:00, 30 May 2014 (UTC)

If/Then/Else[edit]

As you see, I had moved the claim to the Talk Page before you made some edits. Please address the point here. -- Zz (talk) 19:20, 4 June 2014 (UTC)

Disambiguation link notification for June 5[edit]

Hi. Thank you for your recent edits. Wikipedia appreciates your help. We noticed though that when you edited Swift (programming language), you added a link pointing to the disambiguation page Proprietary (check to confirm | fix with Dab solver). Such links are almost always unintended, since a disambiguation page is merely a list of "Did you mean..." article titles. Read the FAQ • Join us at the DPL WikiProject.

It's OK to remove this message. Also, to stop receiving these messages, follow these opt-out instructions. Thanks, DPL bot (talk) 08:54, 5 June 2014 (UTC)

Disambiguation link notification for June 12[edit]

Hi. Thank you for your recent edits. Wikipedia appreciates your help. We noticed though that when you edited Homebuilt computer, you added links pointing to the disambiguation pages Westinghouse and Real time (check to confirm | fix with Dab solver). Such links are almost always unintended, since a disambiguation page is merely a list of "Did you mean..." article titles. Read the FAQ • Join us at the DPL WikiProject.

It's OK to remove this message. Also, to stop receiving these messages, follow these opt-out instructions. Thanks, DPL bot (talk) 08:53, 12 June 2014 (UTC)

Disambiguation link notification for September 10[edit]

Hi. Thank you for your recent edits. Wikipedia appreciates your help. We noticed though that when you edited BASIC loader, you added a link pointing to the disambiguation page SYS. Such links are almost always unintended, since a disambiguation page is merely a list of "Did you mean..." article titles. Read the FAQ • Join us at the DPL WikiProject.

It's OK to remove this message. Also, to stop receiving these messages, follow these opt-out instructions. Thanks, DPL bot (talk) 09:11, 10 September 2014 (UTC)

Image without license[edit]

Unspecified source/license for File:MT-NewsWatcher.png[edit]

Copyright-excl.svg

Thanks for uploading File:MT-NewsWatcher.png. The image has been identified as not specifying the copyright status of the image, which is required by Wikipedia's policy on images. Even if you created the image yourself, you still need to release it so Wikipedia can use it. If you don't indicate the copyright status of the image on the image's description page, using an appropriate copyright tag, it may be deleted some time in the next seven days. If you made this image yourself, you can use copyright tags like {{PD-self}} (to release all rights), {{self|CC-by-sa-3.0|GFDL}} (to require that you be credited), or any tag here - just go to the image, click edit, and add one of those. If you have uploaded other images, please verify that you have provided copyright information for them as well.

For more information on using images, see the following pages:

This is an automated notice by MifterBot. For assistance on the image use policy, see Wikipedia:Media copyright questions. NOTE: once you correct this, please remove the tag from the image's page. --MifterBot (TalkContribsOwner) 20:01, 12 September 2014 (UTC)

Disambiguation link notification for September 17[edit]

Hi. Thank you for your recent edits. Wikipedia appreciates your help. We noticed though that you've added some links pointing to disambiguation pages. Such links are almost always unintended, since a disambiguation page is merely a list of "Did you mean..." article titles. Read the FAQ • Join us at the DPL WikiProject.

DWIM
added a link pointing to Deduce
Rosetta Code
added a link pointing to Random numbers
Usenet
added a link pointing to Mark Horton
Web 2.0
added a link pointing to Machine readable

It's OK to remove this message. Also, to stop receiving these messages, follow these opt-out instructions. Thanks, DPL bot (talk) 09:08, 17 September 2014 (UTC)