[Phpwm] List Etiquette

Chris Allen pickledegg at hotmail.co.uk
Fri Oct 20 00:19:24 BST 2006


I'm fairly new around here and until now have only posted a couple of 
things, but I think its dissappointing to see Steve quitting the list like 
this.

I don't know the background between Phil & Steve, but surely it could be 
sorted without anyone feeling they have to quit?

My 2 penneth, now I'll mind my own.


>From: phpwm-request at mailman.lug.org.uk
>Reply-To: phpwm at mailman.lug.org.uk
>To: phpwm at mailman.lug.org.uk
>Subject: Phpwm Digest, Vol 39, Issue 8
>Date: Thu, 19 Oct 2006 16:45:29 +0100
>
>Send Phpwm mailing list submissions to
>	phpwm at mailman.lug.org.uk
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	https://mailman.lug.org.uk/mailman/listinfo/phpwm
>or, via email, send a message with subject or body 'help' to
>	phpwm-request at mailman.lug.org.uk
>
>You can reach the person managing the list at
>	phpwm-owner at mailman.lug.org.uk
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Phpwm digest..."
>
>
>Today's Topics:
>
>    1. Re: installing ZIP functions (David Goodwin)
>    2. List Etiquette (Katherine Goodwin)
>    3. Re: updating an array (David Goodwin)
>    4. Re: language on this list (Stephen Parkes)
>    5. Re: List Etiquette (Stephen Parkes)
>    6. RE: List Etiquette (Keith Pope)
>    7. Re: updating an array (alan dunn)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Thu, 19 Oct 2006 14:37:52 +0100
>From: David Goodwin <david at codepoets.co.uk>
>Subject: Re: [Phpwm] installing ZIP functions
>To: West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
>Message-ID: <20061019133752.GA27107 at codepoets.co.uk>
>Content-Type: text/plain; charset=us-ascii
>
> > you  can stick them up your ******* **** you patronising **** I am sure
>
><see Kat's post>
>
> > starts to tell people they should learn to compile the whole world 
>despite
> > the fact there are hundreds of people working for and with SuSe getting 
>paid
> > to do that kind of shit for you.  What is the fucking point of using a
> > distribution only to undo all the good work?
>
>Many people do find the need to use a php.net hand compiled version of PHP.
>I admit it's not ideal, but then nor (sometimes) is having to run e.g.
>PHP v4.1 on Debian Sarge - especially if you wish to try out e.g. PDO 
>(PHP5),
>or you may find you need to use MySQL 5 on a Debian Sarge
>installation....
>
> >From a security perspective, I think I could argue that having multiple
>different compiled versions of PHP makes it harder for a security
>vulnerability to spread - as there is less uniformity. After all, if 9X%
>of the world used Linux, we'd find more viruses/attacks etc on Linux.
>
>In general, I agree - try and keep to using a packaged version of PHP;
>if you don't you'll need to pay attention to a security mailing list (or
>php.net). If you're a sysadmin and know what you're doing, then feel
>free to do as you wish.....
>
>
>David.
>
>--
>David Goodwin
>
>[ david at codepoets dot co dot uk ]
>[ http://www.codepoets.co.uk       ]
>
>
>
>------------------------------
>
>Message: 2
>Date: Thu, 19 Oct 2006 14:53:17 +0100
>From: kat at codepoets.co.uk (Katherine Goodwin)
>Subject: [Phpwm] List Etiquette
>To: West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
>Message-ID: <20061019135317.GC2596 at codepoets.co.uk>
>Content-Type: text/plain; charset=us-ascii
>
>Hi all,
>
>While we like a bit of friendly debate on phpwm, there's no need to
>resort to bad language to insult each other (Lets reserve that for
>complaining about our / other people's code ;-))
>
>As list admins, David and I don't want to have to resort to filtering
>posts or removing people from the list if they're regularly abusive.
>
>Lets keep it friendly please, we've been doing well so far.
>
>thanks
>
>Kat
>
>
>
>------------------------------
>
>Message: 3
>Date: Thu, 19 Oct 2006 15:06:22 +0100
>From: David Goodwin <david at codepoets.co.uk>
>Subject: Re: [Phpwm] updating an array
>To: West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
>Message-ID: <20061019140622.GB27107 at codepoets.co.uk>
>Content-Type: text/plain; charset=us-ascii
>
>alan dunn wrote :
> > I am simply(!) trying to read through an array comparing the key with a
> > string (product code) and where I find a match add the corresponding
> > quantity to the existing quantity.
> >
> > if($match) {$prodarray[$key1] = $prodarray[$key1] + $qty2; }
> >
> > If I echo $prodarray[$key1] immediately after this line I get the
> > increased value. But after continuing to cycle through the array the
> > changed value is lost.
> >
> > I have some recollection of a group discussion about arrays being read
> > into memory, or proxy values or some such? Can anyone shed light on how
> > I get that value into the array?
>
>Right, to elabourate on my previous post; I suspect you're doing your
>matching/searching within a function.
>
>I can do the following :
>
>$list = array(5,4,3,2,1);
>foreach($list as $key => $value) {
>     if($value > 3) {
>         $list[$key] = 9;
>     }
>}
>
>print_r($list);
>
>which will show : 9,9,3,2,1
>
>
>If I change it to :
>
><?php
>$list = array(5,4,3,2,1);
>function whatever($list) {
>     foreach($list as $key => $value) {
>         if($value > 3) {
>             $list[$key] = 9;
>         }
>     }
>}
>whatever($list);
>print_r($list);
>
>I'll get : 5,4,3,2,1
>
>This is because of the fact that PHP4 (and PHP5 when not using objects)
>does Pass by Value, not Pass by Reference.
>(Java always does Pass by Reference).
>
>i.e. When it runs inside the function it is a copy of the original
>variable passed in; so the whatever function's $list is a copy of the
>global $list.
>
>If we want to fix this, we can either :
>
>a) Return $list from the function and assign it to $list globally
>(globally = outside a function scope)
>or
>b) Pass by reference
>
>
>To pass by reference you should put an '&' sign infront of variables in
>the function declaration i.e.
>$list = array(5,4,3,2,1);
>function whatever(&$list) {
>     foreach($list as $key => $value) {
>         if($value > 3) {
>             $list[$key] = 9;
>         }
>     }
>}
>whatever($list);
>print_r($list);
>
>will give 9,9,3,2,1
>
>Or
>
>$list = array(5,4,3,2,1);
>function whatever(&$list) {
>     foreach($list as $key => $value) {
>         if($value > 3) {
>             $list[$key] = 9;
>         }
>     }
>     return $list;
>}
>$list = whatever($list);
>print_r($list);
>
>which will also give 9,9,3,2,1
>
>
> >From a maintenance point of view, if you're going to use pass by
>reference, make sure you use the '&' signs in the function signature,
>and not at runtime when callign the function
>
>i.e.
>Good: function whatever(&$list) { ...... }
>Bad : $list = whatever(&$list);
>
>The reasoning being that you (the programmer) have to remember to put
>the '&' in in the latter case, but not in the former, which could lead
>to hard to track down bugs.
>
>
>I'll assume that helps, and answers your question/problem, even if the
>context isn't quite right.
>
>David
></good-deed-of-the-day :-) >
>--
>David Goodwin
>
>[ david at codepoets dot co dot uk ]
>[ http://www.codepoets.co.uk       ]
>
>
>
>------------------------------
>
>Message: 4
>Date: Thu, 19 Oct 2006 15:56:27 +0100
>From: "Stephen Parkes" <sparkes at westmids.biz>
>Subject: Re: [Phpwm] language on this list
>To: "West Midlands PHP User Group" <phpwm at mailman.lug.org.uk>
>Message-ID:
>	<428c6c120610190756m6297d559iea2240a3edb2f52f at mail.gmail.com>
>Content-Type: text/plain; charset="utf-8"
>
>fuck off phil.  I've already had enough of your whining
>
>On 10/19/06, Phil Beynon <phil at infolinkelectronics.co.uk> wrote:
> >
> > David,
> > Do we actually have to have this person on the list?
> >
> > Just about every post he makes is just a stream of personal abuse if he
> > has any slight disagreement with anything said.
> > It certainly wouldn't be tolerated on any of the other lists I 
>participate
> > in, yet on here it seems to be repeatedly ignored.
> >
> > Anyone reading the archives or considering joining the list isn't 
>exactly
> > going to be attracted to join the community with this going on.
> >
> > Phil
> >
> >
> > _______________________________________________
> > Phpwm mailing list
> > Phpwm at mailman.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/phpwm
> >
>
>
>
>--
>Steve 'sparkes' Parkes - tshirts http://nerd.ws - code http://zx-81.com
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: 
>http://mailman.lug.org.uk/pipermail/phpwm/attachments/20061019/65059cbb/attachment-0001.html
>
>------------------------------
>
>Message: 5
>Date: Thu, 19 Oct 2006 16:01:03 +0100
>From: "Stephen Parkes" <sparkes at westmids.biz>
>Subject: Re: [Phpwm] List Etiquette
>To: "West Midlands PHP User Group" <phpwm at mailman.lug.org.uk>
>Message-ID:
>	<428c6c120610190801v4e93c32dt347f26da15c8ab62 at mail.gmail.com>
>Content-Type: text/plain; charset="utf-8"
>
>On 10/19/06, Katherine Goodwin <kat at codepoets.co.uk> wrote:
> >
> > Hi all,
> >
> > While we like a bit of friendly debate on phpwm, there's no need to
> > resort to bad language to insult each other (Lets reserve that for
> > complaining about our / other people's code ;-))
>
>
>
>Kat.  I've had enough so I'm quitting the list anyway which as I am sure
>people who know the tinyest bit about php development will understand it's 
>a
>loss to the list to lose someone with 8 years of php dev and who actully
>answers the question asked not the one they want to answer.
>
>Personally I have had enough of Phil and his cronys attacking me at every
>opportunity.  I wanted to come to the first meeting to sort it out with him
>but a family problem meant I couldn't come and since then any slight 
>problem
>either cuntface or one of his buddies has had a pop at me everytime I post.
>
>I'm sure I'll you yourself and David around somewhere and catch up on old
>times but it's not going to be on this list.
>
>
>
>--
>Steve 'sparkes' Parkes - tshirts http://nerd.ws - code http://zx-81.com
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: 
>http://mailman.lug.org.uk/pipermail/phpwm/attachments/20061019/55f098eb/attachment-0001.html
>
>------------------------------
>
>Message: 6
>Date: Thu, 19 Oct 2006 16:12:44 +0100
>From: "Keith Pope" <keith at clevercherry.com>
>Subject: RE: [Phpwm] List Etiquette
>To: "West Midlands PHP User Group" <phpwm at mailman.lug.org.uk>
>Message-ID:
>	<34A02AE8FAD7274D9ADE53B12923511D070B26 at sbs2003r2.clevercherry.local>
>Content-Type: text/plain;	charset="us-ascii"
>
>
>Agreed, looks like some people need to calm down.
>
>
>-----Original Message-----
>From: phpwm-bounces at mailman.lug.org.uk
>[mailto:phpwm-bounces at mailman.lug.org.uk] On Behalf Of Katherine Goodwin
>Sent: 19 October 2006 15:01
>To: West Midlands PHP User Group
>Subject: [Phpwm] List Etiquette
>
>Hi all,
>
>While we like a bit of friendly debate on phpwm, there's no need to
>resort to bad language to insult each other (Lets reserve that for
>complaining about our / other people's code ;-))
>
>As list admins, David and I don't want to have to resort to filtering
>posts or removing people from the list if they're regularly abusive.
>
>Lets keep it friendly please, we've been doing well so far.
>
>thanks
>
>Kat
>
>_______________________________________________
>Phpwm mailing list
>Phpwm at mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
>
>
>
>
>------------------------------
>
>Message: 7
>Date: Thu, 19 Oct 2006 17:06:23 +0100
>From: alan dunn <alan at dunns.co.uk>
>Subject: Re: [Phpwm] updating an array
>To: West Midlands PHP User Group <phpwm at mailman.lug.org.uk>
>Message-ID: <4537A27F.6050308 at dunns.co.uk>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Thank you all for your replies - I haven't got the fix to work yet, but
>at least I know where to start looking.
>alan dunn
>
>David Goodwin wrote:
> > alan dunn wrote :
> >
> >> I am simply(!) trying to read through an array comparing the key with a
> >> string (product code) and where I find a match add the corresponding
> >> quantity to the existing quantity.
> >>
> >> if($match) {$prodarray[$key1] = $prodarray[$key1] + $qty2; }
> >>
> >> If I echo $prodarray[$key1] immediately after this line I get the
> >> increased value. But after continuing to cycle through the array the
> >> changed value is lost.
> >>
> >> I have some recollection of a group discussion about arrays being read
> >> into memory, or proxy values or some such? Can anyone shed light on how
> >> I get that value into the array?
> >>
> >
> > Right, to elabourate on my previous post; I suspect you're doing your
> > matching/searching within a function.
> >
> > I can do the following :
> >
> > $list = array(5,4,3,2,1);
> > foreach($list as $key => $value) {
> >     if($value > 3) {
> >         $list[$key] = 9;
> >     }
> > }
> >
> > print_r($list);
> >
> > which will show : 9,9,3,2,1
> >
> >
> > If I change it to :
> >
> > <?php
> > $list = array(5,4,3,2,1);
> > function whatever($list) {
> >     foreach($list as $key => $value) {
> >         if($value > 3) {
> >             $list[$key] = 9;
> >         }
> >     }
> > }
> > whatever($list);
> > print_r($list);
> >
> > I'll get : 5,4,3,2,1
> >
> > This is because of the fact that PHP4 (and PHP5 when not using objects)
> > does Pass by Value, not Pass by Reference.
> > (Java always does Pass by Reference).
> >
> > i.e. When it runs inside the function it is a copy of the original
> > variable passed in; so the whatever function's $list is a copy of the
> > global $list.
> >
> > If we want to fix this, we can either :
> >
> > a) Return $list from the function and assign it to $list globally
> > (globally = outside a function scope)
> > or
> > b) Pass by reference
> >
> >
> > To pass by reference you should put an '&' sign infront of variables in
> > the function declaration i.e.
> > $list = array(5,4,3,2,1);
> > function whatever(&$list) {
> >     foreach($list as $key => $value) {
> >         if($value > 3) {
> >             $list[$key] = 9;
> >         }
> >     }
> > }
> > whatever($list);
> > print_r($list);
> >
> > will give 9,9,3,2,1
> >
> > Or
> >
> > $list = array(5,4,3,2,1);
> > function whatever(&$list) {
> >     foreach($list as $key => $value) {
> >         if($value > 3) {
> >             $list[$key] = 9;
> >         }
> >     }
> >     return $list;
> > }
> > $list = whatever($list);
> > print_r($list);
> >
> > which will also give 9,9,3,2,1
> >
> >
> > >From a maintenance point of view, if you're going to use pass by
> > reference, make sure you use the '&' signs in the function signature,
> > and not at runtime when callign the function
> >
> > i.e.
> > Good: function whatever(&$list) { ...... }
> > Bad : $list = whatever(&$list);
> >
> > The reasoning being that you (the programmer) have to remember to put
> > the '&' in in the latter case, but not in the former, which could lead
> > to hard to track down bugs.
> >
> >
> > I'll assume that helps, and answers your question/problem, even if the
> > context isn't quite right.
> >
> > David
> > </good-deed-of-the-day :-) >
> >
>
>
>
>------------------------------
>
>_______________________________________________
>Phpwm mailing list
>Phpwm at mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
>
>End of Phpwm Digest, Vol 39, Issue 8
>************************************

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb




More information about the Phpwm mailing list