Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16608 > unrolled thread
| Started by | apoorv.kanungo@gmail.com |
|---|---|
| First post | 2016-03-03 22:08 -0800 |
| Last post | 2016-03-04 09:34 +0100 |
| Articles | 20 on this page of 23 — 7 participants |
Back to article view | Back to comp.lang.php
break foreach loop after certain iteration and then start it apoorv.kanungo@gmail.com - 2016-03-03 22:08 -0800
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-04 09:27 +0100
Re: break foreach loop after certain iteration and then start it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-05 02:28 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-04 21:32 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-05 10:52 +0100
Re: break foreach loop after certain iteration and then start it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-05 11:46 +0100
Re: break foreach loop after certain iteration and then start it Tim Streater <timstreater@greenbee.net> - 2016-03-05 12:08 +0000
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-05 14:10 +0100
Re: break foreach loop after certain iteration and then start it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-05 17:55 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-05 08:50 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-06 10:57 +0100
Re: break foreach loop after certain iteration and then start it Tim Streater <timstreater@greenbee.net> - 2016-03-06 11:26 +0000
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-06 10:12 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-06 22:48 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-06 20:49 -0500
Re: break foreach loop after certain iteration and then start it "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-07 16:28 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-07 12:38 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-07 17:42 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-07 12:39 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-09 08:18 +0100
Re: break foreach loop after certain iteration and then start it "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-09 10:05 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-09 08:56 -0500
Re: break foreach loop after certain iteration and then start it "R.Wieser" <address@not.available> - 2016-03-04 09:34 +0100
Page 1 of 2 [1] 2 Next page →
| From | apoorv.kanungo@gmail.com |
|---|---|
| Date | 2016-03-03 22:08 -0800 |
| Subject | break foreach loop after certain iteration and then start it |
| Message-ID | <6586983f-c3bc-4eb7-92a3-6035952e8cbb@googlegroups.com> |
Hello I have a foreach loop foreach($product as $products) and I want to stop that after three iteration and output some html like <div id="logo"></div>and after that div I want to continue the loop after three iteration. I know we can break foreach loop after certain iteration with if condition and break it but how would you continue the loop after break.
[toc] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-04 09:27 +0100 |
| Message-ID | <56D946D4.9030504@arnowelzel.de> |
| In reply to | #16608 |
apoorv.kanungo@gmail.com schrieb am 2016-03-04 um 07:08:
> Hello I have a foreach loop foreach($product as $products) and I want
> to stop that after three iteration and output some html like <div
> id="logo"></div>and after that div I want to continue the loop after
> three iteration.
>
> I know we can break foreach loop after certain iteration with if
> condition and break it but how would you continue the loop after
> break.
<?php
$counter = 0;
foreach($mylist as $element)
{
// Do something with $element
// Add something every three elements
$counter++;
if($counter==3)
{
echo '<div id="logo"></div>';
$counter = 0;
}
}
?>
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2016-03-05 02:28 +0100 |
| Message-ID | <2056947.pXOX0CipXs@PointedEars.de> |
| In reply to | #16609 |
Arno Welzel wrote:
> <?php
> $counter = 0;
>
> foreach($mylist as $element)
^^
> {
> // Do something with $element
>
> // Add something every three elements
> $counter++;
> if($counter==3)
^^
Flow control statements should not be written like function calls.
> {
> echo '<div id="logo"></div>';
> $counter = 0;
> }
> }
One does not have to reset the counter if one uses the modulo operator, %,
to determine the indexes that are divisible by 3 without remainder.
++$counter;
if ($counter % 3 === 0)
{
…
}
or
if (++$counter % 3 === 0)
{
…
}
If the array is not associative and not sparse, the index is implicit and
starting from 0, so no counter is needed. 0 is divisible by 3 without
remainder, so one has to look for the remainder 2 for the third, sixth etc.
element [2 ≡ 1 (mod 3)]:
foreach ($mylist as $index => $element)
{
if ($index % 3 === 2)
{
…
}
}
Or, if this is too confusing,
if (($index + 1) % 3 === 0)
{
…
}
> ?>
Don’t.
--
PointedEars
Zend Certified PHP Engineer
<http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-04 21:32 -0500 |
| Message-ID | <nbdg9k$vjl$1@jstuckle.eternal-september.org> |
| In reply to | #16611 |
On 3/4/2016 8:28 PM, The troll Thomas 'Pointed Head' Lahn wrote:
> Arno Welzel wrote:
>
>> <?php
>> $counter = 0;
>>
>> foreach($mylist as $element)
> ^^
>> {
>> // Do something with $element
>>
>> // Add something every three elements
>> $counter++;
>> if($counter==3)
> ^^
> Flow control statements should not be written like function calls.
>
That is required PHP syntax - not that you would know.
>> {
>> echo '<div id="logo"></div>';
>> $counter = 0;
>> }
>> }
>
> One does not have to reset the counter if one uses the modulo operator, %,
> to determine the indexes that are divisible by 3 without remainder.
>
> ++$counter;
> if ($counter % 3 === 0)
> {
> …
> }
>
> or
>
> if (++$counter % 3 === 0)
> {
> …
> }
>
There is absolutely nothing wrong with Arno's code - and it is much
clearer than your crap.
> If the array is not associative and not sparse, the index is implicit and
> starting from 0, so no counter is needed. 0 is divisible by 3 without
> remainder, so one has to look for the remainder 2 for the third, sixth etc.
> element [2 ≡ 1 (mod 3)]:
>
> foreach ($mylist as $index => $element)
> {
> if ($index % 3 === 2)
> {
> …
> }
> }
>
Even worse.
> Or, if this is too confusing,
>
> if (($index + 1) % 3 === 0)
> {
> …
> }
>
Still not as clear.
>> ?>
>
> Don’t.
>
Your code is crap (as usual). I don't often agree with Arno, but in
this case his code is much better than yours.
But then we all know you aren't a programmer...
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-05 10:52 +0100 |
| Message-ID | <56DAAC64.6010102@arnowelzel.de> |
| In reply to | #16611 |
Thomas 'PointedEars' Lahn schrieb am 2016-03-05 um 02:28:
> Arno Welzel wrote:
>
>> <?php
>> $counter = 0;
>>
>> foreach($mylist as $element)
> ^^
>> {
>> // Do something with $element
>>
>> // Add something every three elements
>> $counter++;
>> if($counter==3)
> ^^
> Flow control statements should not be written like function calls.
Which is a matter of style. I recognize flow control statements also
when they are not formatted with a space preceding the first bracket ;-).
But for beginners it may be helpful to distinguish between function
calls and flow control.
>> {
>> echo '<div id="logo"></div>';
>> $counter = 0;
>> }
>> }
>
> One does not have to reset the counter if one uses the modulo operator, %,
> to determine the indexes that are divisible by 3 without remainder.
>
> ++$counter;
> if ($counter % 3 === 0)
> {
> …
> }
>
> or
>
> if (++$counter % 3 === 0)
> {
> …
> }
Of course one can use modulo as well and use the index of the array in
combination with modulo as well. And yes - I know modulo and many other
things ;-)
But I doubt the OP understands "modulo". I just want to show the basic
idea behind it. Finding out what a modulo operator is and that this can
make things easier is something the OP should find out on his own -
because then it doesn't just copy & paste code he doesn't understand but
came to the knowledge by his own experience.
[...]
> Or, if this is too confusing,
>
> if (($index + 1) % 3 === 0)
You believe this is not confusing for beginners who ask how to achieve
the goal to do something every third step of an iteration?
This means:
1. You have to understand the syntax of foreach() in this example
2. You have to understand the modulo operator
3. You have to understand why (x+1) % 3 is zero for 0, 2, 5 etc.
When someone had enough knowledge to understand all this he would not
ask here how to do something every third iteration within a foreach() loop.
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2016-03-05 11:46 +0100 |
| Message-ID | <1522528.enTpbkXFfR@PointedEars.de> |
| In reply to | #16613 |
Arno Welzel wrote:
> Thomas 'PointedEars' Lahn schrieb am 2016-03-05 um 02:28:
>> Arno Welzel wrote:
>>> <?php
>>> $counter = 0;
>>>
>>> foreach($mylist as $element)
>> ^^
>>> {
>>> […]
>>> if($counter==3)
>> ^^
>> Flow control statements should not be written like function calls.
>
> Which is a matter of style.
Yes, therefore *I* said “should”.
> I recognize flow control statements also when they are not formatted with
> a space preceding the first bracket ;-).
>
> But for beginners it may be helpful to distinguish between function
> calls and flow control.
*PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT”
respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview>
> [...]
>> Or, if this is too confusing,
>>
>> if (($index + 1) % 3 === 0)
>
> […]
> When someone had enough knowledge to understand all this he would not
> ask here how to do something every third iteration within a foreach()
> loop.
This is still not a PHP support forum, but a newsgroup for discussion about
PHP.
--
PointedEars
Zend Certified PHP Engineer
<http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2016-03-05 12:08 +0000 |
| Message-ID | <050320161208308636%timstreater@greenbee.net> |
| In reply to | #16614 |
In article <1522528.enTpbkXFfR@PointedEars.de>, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote: >Arno Welzel wrote: > >> Thomas 'PointedEars' Lahn schrieb am 2016-03-05 um 02:28: >>> Arno Welzel wrote: >>> Flow control statements should not be written like function calls. >> >> Which is a matter of style. > >Yes, therefore *I* said “should”. You can say what you like; you will simply be ignored, as this is a matter of *personal* style. >*PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT” >respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> And the title of this includes the word "Recommendations". Personally I use five spaces, not four, as then things line up a lot better. >This is still not a PHP support forum, but a newsgroup for discussion about >PHP. But you never do discuss. You merely make assertions as if from God. -- "Once you adopt the unix paradigm, the variants cease to be a problem - you bitch, of course, but that's because bitching is fun, unlike M$ OS's, where bitching is required to keep your head from exploding." - S Stremler in afc
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-05 14:10 +0100 |
| Message-ID | <56DADAAB.2030504@arnowelzel.de> |
| In reply to | #16614 |
Thomas 'PointedEars' Lahn schrieb am 2016-03-05 um 11:46:
> Arno Welzel wrote:
>
>> Thomas 'PointedEars' Lahn schrieb am 2016-03-05 um 02:28:
>>> Arno Welzel wrote:
>>>> <?php
>>>> $counter = 0;
>>>>
>>>> foreach($mylist as $element)
>>> ^^
>>>> {
>>>> […]
>>>> if($counter==3)
>>> ^^
>>> Flow control statements should not be written like function calls.
>>
>> Which is a matter of style.
>
> Yes, therefore *I* said “should”.
>
>> I recognize flow control statements also when they are not formatted with
>> a space preceding the first bracket ;-).
>>
>> But for beginners it may be helpful to distinguish between function
>> calls and flow control.
>
> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT”
> respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview>
When you want to follow those recommendations - yes. Nevertheless it is
still valid code even when not following PSR.
>> [...]
>>> Or, if this is too confusing,
>>>
>>> if (($index + 1) % 3 === 0)
>>
>> […]
>> When someone had enough knowledge to understand all this he would not
>> ask here how to do something every third iteration within a foreach()
>> loop.
>
> This is still not a PHP support forum, but a newsgroup for discussion about
> PHP.
Feel free not to answer or comment such questions at all.
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2016-03-05 17:55 +0100 |
| Message-ID | <1725059.PNrtyl5ynt@PointedEars.de> |
| In reply to | #16616 |
Arno Welzel wrote: > Thomas 'PointedEars' Lahn schrieb am 2016-03-05 um 11:46: >> Arno Welzel wrote: >>>> Flow control statements should not be written like function calls. >>> Which is a matter of style. >> Yes, therefore *I* said “should”. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> I recognize flow control statements also when they are not formatted >>> with a space preceding the first bracket ;-). >>> >>> But for beginners it may be helpful to distinguish between function >>> calls and flow control. >> >> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST >> NOT” respectively, instead: >> <http://www.php-fig.org/psr/psr-2/#1-overview> > > When you want to follow those recommendations - yes. Nevertheless it is > still valid code even when not following PSR. Straw man. >>> [...] >>>> Or, if this is too confusing, >>>> >>>> if (($index + 1) % 3 === 0) >>> […] >>> When someone had enough knowledge to understand all this he would not >>> ask here how to do something every third iteration within a foreach() >>> loop. >> This is still not a PHP support forum, but a newsgroup for discussion >> about PHP. > > Feel free not to answer or comment such questions at all. It is you who is making the mistake of considering comments in a newsgroup directed at or intended for only either the OP, or yourself, or both. . . . . . . . -- PointedEars Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-05 08:50 -0500 |
| Message-ID | <nbeo12$69v$1@jstuckle.eternal-september.org> |
| In reply to | #16614 |
On 3/5/2016 5:46 AM, The well-known troll Thomas 'Pointed Head' Lahn wrote: > > *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT” > respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> > Which, in the grand scheme of things, means absolutely nothing. In reality, it is the opinion of one person. And considering the lack of "design" of the language and it's history, I place about as much credibility on those recommendations as I do yours - IOW, none. > > This is still not a PHP support forum, but a newsgroup for discussion about > PHP. > Sez who? You? ROFLMAO! This is a forum for EVERYTHING about PHP - including helping new programmers. And he was not asking for PHP support. But you don't know the difference there, either. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-06 10:57 +0100 |
| Message-ID | <56DBFEF0.7030807@arnowelzel.de> |
| In reply to | #16617 |
Jerry Stuckle schrieb am 2016-03-05 um 14:50: > On 3/5/2016 5:46 AM, The well-known troll Thomas 'Pointed Head' Lahn wrote: >> >> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT” >> respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> >> > > Which, in the grand scheme of things, means absolutely nothing. In > reality, it is the opinion of one person. I don't see only "one person" contributing to the PSR: <http://www.php-fig.org/members/> > And he was not asking for PHP support. But you don't know the > difference there, either. Well - the OP *did* ask for PHP support. He asked how to solve a quite simple problem. Maybe was my fault to answer this question with a code example and not telling the OP to continue learning so he will find out the solution on his own. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2016-03-06 11:26 +0000 |
| Message-ID | <060320161126049060%timstreater@greenbee.net> |
| In reply to | #16619 |
In article <56DBFEF0.7030807@arnowelzel.de>, Arno Welzel <usenet@arnowelzel.de> wrote: >Jerry Stuckle schrieb am 2016-03-05 um 14:50: > >> On 3/5/2016 5:46 AM, The well-known troll Thomas 'Pointed Head' Lahn wrote: >>> >>> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST >>> NOT” >>> respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> >>> >> >> Which, in the grand scheme of things, means absolutely nothing. In >> reality, it is the opinion of one person. > >I don't see only "one person" contributing to the PSR: > ><http://www.php-fig.org/members/> > >> And he was not asking for PHP support. But you don't know the >> difference there, either. > >Well - the OP *did* ask for PHP support. He asked how to solve a quite >simple problem. Maybe was my fault to answer this question with a code >example and not telling the OP to continue learning so he will find out >the solution on his own. PointyHead appears to be one who believes that, given the definition of a point, we should all be able to deduce the properties of the universe. Perhaps some can. But it's a foolish attitude. Remember what Isaac Newton said. -- "Once you adopt the unix paradigm, the variants cease to be a problem - you bitch, of course, but that's because bitching is fun, unlike M$ OS's, where bitching is required to keep your head from exploding." - S Stremler in afc
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-06 10:12 -0500 |
| Message-ID | <nbhh6l$rgk$1@jstuckle.eternal-september.org> |
| In reply to | #16619 |
On 3/6/2016 4:57 AM, Arno Welzel wrote: > Jerry Stuckle schrieb am 2016-03-05 um 14:50: > >> On 3/5/2016 5:46 AM, The well-known troll Thomas 'Pointed Head' Lahn wrote: >>> >>> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT” >>> respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> >>> >> >> Which, in the grand scheme of things, means absolutely nothing. In >> reality, it is the opinion of one person. > > I don't see only "one person" contributing to the PSR: > > <http://www.php-fig.org/members/> > Which means nothing. It doesn't say that all members are contributing to the PSR. And as I said before (which you snipped): given PHP's history, I place zero credibility in the people who write the PSR. >> And he was not asking for PHP support. But you don't know the >> difference there, either. > > Well - the OP *did* ask for PHP support. He asked how to solve a quite > simple problem. Maybe was my fault to answer this question with a code > example and not telling the OP to continue learning so he will find out > the solution on his own. > > The OP asked how to do something in PHP (break a foreach() loop then restart it at the break point). That is asking how to do something in PHP, not PHP support. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-06 22:48 +0100 |
| Message-ID | <56DCA5A7.8030203@arnowelzel.de> |
| In reply to | #16621 |
Jerry Stuckle schrieb am 2016-03-06 um 16:12: > On 3/6/2016 4:57 AM, Arno Welzel wrote: >> Jerry Stuckle schrieb am 2016-03-05 um 14:50: >> >>> On 3/5/2016 5:46 AM, The well-known troll Thomas 'Pointed Head' Lahn wrote: >>>> >>>> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT” >>>> respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> >>>> >>> >>> Which, in the grand scheme of things, means absolutely nothing. In >>> reality, it is the opinion of one person. >> >> I don't see only "one person" contributing to the PSR: >> >> <http://www.php-fig.org/members/> >> > > Which means nothing. It doesn't say that all members are contributing > to the PSR. I assume they do. See: <http://www.php-fig.org/bylaws/membership/> "Member Project Any PHP project with voting rights admitted to PHP-FIG after submitting an application to the PHP-FIG mailing list under the Member Application procedure described in this bylaw." Also see: <https://github.com/php-fig/fig-standards/graphs/contributors> <https://groups.google.com/forum/#!forum/php-fig> > And as I said before (which you snipped): given PHP's history, I place > zero credibility in the people who write the PSR. What has PHP as programming language to do with people forming a group to define coding standards? -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-06 20:49 -0500 |
| Message-ID | <nbimhb$8m6$1@jstuckle.eternal-september.org> |
| In reply to | #16622 |
On 3/6/2016 4:48 PM, Arno Welzel wrote: > Jerry Stuckle schrieb am 2016-03-06 um 16:12: > >> On 3/6/2016 4:57 AM, Arno Welzel wrote: >>> Jerry Stuckle schrieb am 2016-03-05 um 14:50: >>> >>>> On 3/5/2016 5:46 AM, The well-known troll Thomas 'Pointed Head' Lahn wrote: >>>>> >>>>> *PHP Standards Recommendations (PSR)-2* says it is a “MUST” and a “MUST NOT” >>>>> respectively, instead: <http://www.php-fig.org/psr/psr-2/#1-overview> >>>>> >>>> >>>> Which, in the grand scheme of things, means absolutely nothing. In >>>> reality, it is the opinion of one person. >>> >>> I don't see only "one person" contributing to the PSR: >>> >>> <http://www.php-fig.org/members/> >>> >> >> Which means nothing. It doesn't say that all members are contributing >> to the PSR. > > I assume they do. See: > You can ASS-U-ME all you want. Until you have proof, it is immaterial. > <http://www.php-fig.org/bylaws/membership/> > > "Member Project > > Any PHP project with voting rights admitted to PHP-FIG after submitting > an application to the PHP-FIG mailing list under the Member Application > procedure described in this bylaw." > > Also see: > > <https://github.com/php-fig/fig-standards/graphs/contributors> > <https://groups.google.com/forum/#!forum/php-fig> > >> And as I said before (which you snipped): given PHP's history, I place >> zero credibility in the people who write the PSR. > > What has PHP as programming language to do with people forming a group > to define coding standards? > > The same people in the group are the ones who "designed" the PHP language. Or lack of "design" being more accurate. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2016-03-07 16:28 +0100 |
| Message-ID | <nbk6m8$8gb$1@solani.org> |
| In reply to | #16623 |
Jerry Stuckle wrote: > On 3/6/2016 4:48 PM, Arno Welzel wrote: > >> Jerry Stuckle schrieb am 2016-03-06 um 16:12: >> >>> And as I said before (which you snipped): given PHP's history, I place >>> zero credibility in the people who write the PSR. >> >> What has PHP as programming language to do with people forming a group >> to define coding standards? > > The same people in the group are the ones who "designed" the PHP > language. No. > Or lack of "design" being more accurate. If you feel that PHP is badly designed and you want to improve the language, consider to get involved: <http://php.net/get-involved.php>. -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-07 12:38 -0500 |
| Message-ID | <nbke42$ro9$1@jstuckle.eternal-september.org> |
| In reply to | #16624 |
On 3/7/2016 10:28 AM, Christoph M. Becker wrote: > Jerry Stuckle wrote: > >> On 3/6/2016 4:48 PM, Arno Welzel wrote: >> >>> Jerry Stuckle schrieb am 2016-03-06 um 16:12: >>> >>>> And as I said before (which you snipped): given PHP's history, I place >>>> zero credibility in the people who write the PSR. >>> >>> What has PHP as programming language to do with people forming a group >>> to define coding standards? >> >> The same people in the group are the ones who "designed" the PHP >> language. > > No. > Of course, you're right because PHP was never designed in the first place. >> Or lack of "design" being more accurate. > > If you feel that PHP is badly designed and you want to improve the > language, consider to get involved: <http://php.net/get-involved.php>. > Christopher, I know better. I don't get involved with lost causes. It's too late to fix all of the problems in PHP. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-07 17:42 +0100 |
| Message-ID | <56DDAF5A.3040506@arnowelzel.de> |
| In reply to | #16623 |
Jerry Stuckle schrieb am 2016-03-07 um 02:49: > On 3/6/2016 4:48 PM, Arno Welzel wrote: [...] >> What has PHP as programming language to do with people forming a group >> to define coding standards? >> >> > > The same people in the group are the ones who "designed" the PHP > language. Or lack of "design" being more accurate. Who of the members created PHP itself? Can you name at least one? And if you are so unsatisfied with PHP - why do you even use it and partiticipate in this newsgroup? -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-07 12:39 -0500 |
| Message-ID | <nbke70$ro9$2@jstuckle.eternal-september.org> |
| In reply to | #16625 |
On 3/7/2016 11:42 AM, Arno Welzel wrote: > Jerry Stuckle schrieb am 2016-03-07 um 02:49: > >> On 3/6/2016 4:48 PM, Arno Welzel wrote: > [...] >>> What has PHP as programming language to do with people forming a group >>> to define coding standards? >>> >>> >> >> The same people in the group are the ones who "designed" the PHP >> language. Or lack of "design" being more accurate. > > Who of the members created PHP itself? Can you name at least one? > Can you? Can you name the people who make those "recommendations"? Obviously not someone who understands programming. > And if you are so unsatisfied with PHP - why do you even use it and > partiticipate in this newsgroup? > > Because it's still a language I have to use for many of my clients. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2016-03-09 08:18 +0100 |
| Message-ID | <56DFCE63.1050400@arnowelzel.de> |
| In reply to | #16627 |
Jerry Stuckle schrieb am 2016-03-07 um 18:39: > On 3/7/2016 11:42 AM, Arno Welzel wrote: >> Jerry Stuckle schrieb am 2016-03-07 um 02:49: >> >>> On 3/6/2016 4:48 PM, Arno Welzel wrote: >> [...] >>>> What has PHP as programming language to do with people forming a group >>>> to define coding standards? >>>> >>>> >>> >>> The same people in the group are the ones who "designed" the PHP >>> language. Or lack of "design" being more accurate. >> >> Who of the members created PHP itself? Can you name at least one? >> > > Can you? Can you name the people who make those "recommendations"? Ahem - YOU claimed that there are people in the group who are involved in the development of PHP itself. So it's YOUR turn to name at least one if you are so sure about this. I only know the list at <http://www.php-fig.org/members/>. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.php
csiph-web