Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread Joshua Stoutenburg
On Fri, Sep 16, 2011 at 12:35 AM, tamouse mailing lists

 My baboon is offended.


class baboon extends human
{
   $ammo = '';

   public __construct($ammo)
   {
   $this-ammo = $ammo;
   }

   public function flingAt($target)
   {
   $target-flingAlert($this, $this-ammo);
   }

   public function flingAlert($source, $missile)
   {
   $hit = rand(0,1);
   if ($hit == 1)
   {
$this-screech();
   }
   else {
$this-howl();
   }

   // regardless, return the favor
   $this-flingAt($souce);
   }

   private function howl()
   {
echo Oooaa-oooaa;
   }

   private function screech()
   {
echo E;
   }
}

$ammo = stuff;
$me = new baboon($ammo);
$you = new baboon($ammo);
$me-flingAt($you);

// :) This is pretty fun :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread tamouse mailing lists
On Thu, Sep 15, 2011 at 8:31 PM, Joshua Stoutenburg
jehoshu...@gmail.com wrote:
 // I hope everyone finds this more humorous than offensive.

My baboon is offended.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread Robert Cummings

On 11-09-15 09:31 PM, Joshua Stoutenburg wrote:

class baboon
{
 $ammo = '';

 public __construct($ammo)
 {
 $this-ammo = $ammo;
 }

 public function flingAt($target)
 {
 $target-flingAlert($this-ammo);
 }
}


$me = new baboon($information);
$you = new baboon();
$me-flingAt($you);


I'm sorry, but this is unnacceptably ambiguous. Due to the poor design I 
don't know whether to duck or open my mouth for a treat. Let's make the 
program a bit more flexible and useful...


?php

class baboon extends mammal
{
public function fling( $something, $target )
{
$target-flingAlert( $something, $target );
}

public function openMouth()
{
echo Aaah\n;
}

public function evade()
{
if( rand( 1, 100 ) = 70 )
{
echo Pheeew! That was close.\n;
}
else
{
echo SPLAT!\n;
}
}

public function flingAlert( $something, $target )
{
switch( $something )
{
case 'treat':
{
$this-openMouth();
break;
}

default:
{
$this-evade();
break;
}
}
}
}

$me = new baboon();
$you = new baboon();

$me-fling( 'scooby snack', $you );
$me-fling( 'poo', $you );

?

I love Friday :)

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread Daniel Brown
On Thu, Sep 15, 2011 at 21:31, Joshua Stoutenburg jehoshu...@gmail.com wrote:

 But let me put a spin on it:

 ?php

 $information = EOF

 I got a great idea, why don't we write hundreds of books and websites
 with all of our repetitive answers and call it the information age.
 Who cares if all the priceless pearls of rare knowledge are buried,
 lost, and irretrievable.  We'll have the information age!

 Then, after we've ushered in the information age, we'll invent a
 search bot to crawl all over the heap of information and fling it
 around whenever somebody asks for it!

 Then, we'll all sit around on a mailing list, and when somebody comes
 in seeking refuge from the flinging search bot, looking for some rare
 piece of information, we'll fling all the common stuff at him instead!
  It will be hilarious!

 EOF;


 class baboon
 {
    $ammo = '';

Parse error.  You probably mean: var $ammo;

    public __construct($ammo)

Parse error.  You probably mean: public function __construct($ammo)

    {
        $this-ammo = $ammo;
    }

    public function flingAt($target)
    {
        $target-flingAlert($this-ammo);

Fatal error.  Unless you meant to create infinite recursion with
baboon::flingAt().

    }
 }


 $me = new baboon($information);
 $you = new baboon();

Since you didn't have a fallback definition in your __construct(),
this will throw a missing argument warning.  It will also then give an
undefined variable warning when it tries to define baboon::$ammo.

 $me-flingAt($you);

Trying to work with an object here?  Since we're missing the
baboon::flingAlert() definition, I'm curious to see how the object is
handled.


Oh, Friday

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-15 Thread Nathan Nobbe
On Wed, Sep 14, 2011 at 10:06 PM, Joshua Stoutenburg
jehoshu...@gmail.comwrote:

 On Wed, Sep 14, 2011 at 11:59 AM, Govinda govinda.webdnat...@gmail.com
 wrote:
  As for duplicate answers...,
 
  [snip]
 
 
  Also newbies may tend to like the multiples answers.. for the different
 perspectives, as Dan said, but also when they are exact dupe answers -
 because then the newbie knows the answer is definitive.. and then stops
 asking the list.. and starts doing what work is called for.
 
  -Govinda
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

 That's a good point.  The absence of objection to a provided answer
 doesn't necessarily make it definitive since it could just be the
 masses passed over the conversation.  Therefore, yes, duplicate
 answers are a good thing.

 Thanks everybody for your patience in helping this mailing list
 newcomer understand how things work.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


wait, it sounds like we could use another answer .., yes ppl like to answer
things many times here, often with almost identical suggestions, and many
spins on how to approach the problem, including alternative perspectives on
life..; the ebb--flow of php-general ;)

-nathan


Re: [PHP] Re: Repetitive answers . . .

2011-09-15 Thread Jason Pruim

Jason Pruim
li...@pruimphotography.com



On Sep 15, 2011, at 3:22 AM, Nathan Nobbe wrote:

 On Wed, Sep 14, 2011 at 10:06 PM, Joshua Stoutenburg
 jehoshu...@gmail.comwrote:
 
 On Wed, Sep 14, 2011 at 11:59 AM, Govinda govinda.webdnat...@gmail.com
 wrote:
 As for duplicate answers...,
 
 [snip]
 
 
 Also newbies may tend to like the multiples answers.. for the different
 perspectives, as Dan said, but also when they are exact dupe answers -
 because then the newbie knows the answer is definitive.. and then stops
 asking the list.. and starts doing what work is called for.
 
 -Govinda
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 That's a good point.  The absence of objection to a provided answer
 doesn't necessarily make it definitive since it could just be the
 masses passed over the conversation.  Therefore, yes, duplicate
 answers are a good thing.
 
 Thanks everybody for your patience in helping this mailing list
 newcomer understand how things work.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 wait, it sounds like we could use another answer .., yes ppl like to answer
 things many times here, often with almost identical suggestions, and many
 spins on how to approach the problem, including alternative perspectives on
 life..; the ebb--flow of php-general ;)

I've always thought that getting a couple fairly similar answers to the same 
question helped to validate the answer for someone who is in the early process 
of learning ;)
 
 -nathan


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-15 Thread Joshua Stoutenburg
On Thu, Sep 15, 2011 at 5:46 PM, Jason Pruim

 I've always thought that getting a couple fairly similar answers to the same 
 question helped to validate the answer for someone who is in the early 
 process of learning ;)

 -nathan



Yeah, you know, I think you are right! I'd like to answer this
question the same way, even though half a dozen have already answered
it the same way.

But let me put a spin on it:

?php

$information = EOF

I got a great idea, why don't we write hundreds of books and websites
with all of our repetitive answers and call it the information age.
Who cares if all the priceless pearls of rare knowledge are buried,
lost, and irretrievable.  We'll have the information age!

Then, after we've ushered in the information age, we'll invent a
search bot to crawl all over the heap of information and fling it
around whenever somebody asks for it!

Then, we'll all sit around on a mailing list, and when somebody comes
in seeking refuge from the flinging search bot, looking for some rare
piece of information, we'll fling all the common stuff at him instead!
 It will be hilarious!

EOF;


class baboon
{
$ammo = '';

public __construct($ammo)
{
$this-ammo = $ammo;
}

public function flingAt($target)
{
$target-flingAlert($this-ammo);
}
}


$me = new baboon($information);
$you = new baboon();
$me-flingAt($you);


// I hope everyone finds this more humorous than offensive.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-14 Thread Joshua Stoutenburg
On Wed, Sep 14, 2011 at 11:59 AM, Govinda govinda.webdnat...@gmail.com wrote:
 As for duplicate answers...,

 [snip]


 Also newbies may tend to like the multiples answers.. for the different 
 perspectives, as Dan said, but also when they are exact dupe answers - 
 because then the newbie knows the answer is definitive.. and then stops 
 asking the list.. and starts doing what work is called for.

 -Govinda
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



That's a good point.  The absence of objection to a provided answer
doesn't necessarily make it definitive since it could just be the
masses passed over the conversation.  Therefore, yes, duplicate
answers are a good thing.

Thanks everybody for your patience in helping this mailing list
newcomer understand how things work.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Marc Guay
That low-hanging fruit is too hard for some to resist...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Joshua Stoutenburg
I guess so.


On Fri, Sep 9, 2011 at 10:34 AM, Marc Guay marc.g...@gmail.com wrote:

 That low-hanging fruit is too hard for some to resist...

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread HallMarc Websites
PS Top posting is frowned upon on this list for reasons regarding how the
information is parsed to the online archive. Not a reprimand, just a FYI


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Joshua Stoutenburg
Is there a way to reconfigure gmail settings to prevent this?


Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread George Langley
On 2011-09-09, at 11:34 AM, Marc Guay wrote:

 That low-hanging fruit is too hard for some to resist...
---
Phishing is a art.

George


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Robert Cummings

On 11-09-09 02:19 PM, Joshua Stoutenburg wrote:

Is there a way to reconfigure gmail settings to prevent this?


Yes, just filter all PHP mail to junk. But in all reality, I can't 
imagine an email filter, short of genius AI, that could determine that 
one message was the best answer and then automatically remove all others 
that follow.


Cheers,
Rob
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Robert Cummings

On 11-09-09 02:24 PM, George Langley wrote:

On 2011-09-09, at 11:34 AM, Marc Guay wrote:


That low-hanging fruit is too hard for some to resist...

---
Phishing is a art.


Did anyone notice it's Friday?

Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Daniel Brown
On Fri, Sep 9, 2011 at 14:30, Robert Cummings rob...@interjinn.com wrote:

 Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI

I didn't know it was possible to fill almost four minutes with a
single note, outside of a test pattern.  That's got to be the worst
singer I've ever heard in my entire life.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Larry Martell
On Fri, Sep 9, 2011 at 12:36 PM, Daniel Brown danbr...@php.net wrote:
 On Fri, Sep 9, 2011 at 14:30, Robert Cummings rob...@interjinn.com wrote:

 Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI

    I didn't know it was possible to fill almost four minutes with a
 single note, outside of a test pattern.  That's got to be the worst
 singer I've ever heard in my entire life.

I agree, I only lasted 1 minute.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread George Langley

On 2011-09-09, at 12:39 PM, Larry Martell wrote:

 On Fri, Sep 9, 2011 at 12:36 PM, Daniel Brown danbr...@php.net wrote:
 On Fri, Sep 9, 2011 at 14:30, Robert Cummings rob...@interjinn.com wrote:
 
 Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI
 
I didn't know it was possible to fill almost four minutes with a
 single note, outside of a test pattern.  That's got to be the worst
 singer I've ever heard in my entire life.
 
 I agree, I only lasted 1 minute.

Oh, so you didn't see the (as my kids like to say) totally random 
30-something-year-old male rapper suddenly appearing in a 14-year-old girl's 
video about partying like she's an adult? Something very wrong with a who that 
pays to get her daughter into a video like that...
But thanks for reminding me that it is Friday. They all blend together 
when you're between jobs... And now, back to the job search


George Langley
Interactive Developer


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Lester Caine

Joshua Stoutenburg wrote:

Is there a way to reconfigure gmail settings to prevent this?


This is a long standing irritation for many of us ;)
I believe that most clients do have a setting to 'start message after quoting'
One of the other suggestions has been simply to switch off quoting altogether.

The main annoyance is when someone adds a 'me to' to the top of several pages of 
duplicate advertising and sigs - need I say more ;)


As for duplicate answers, another point to make is that often three or four 
people will all answer quite quickly, and so have not seen the others message. 
At times there can be a reasonable delay before messages get delivered and 
returned. My own local email server only pulls down every 10 minutes ...


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php