Re: [PHP] Howdy (new in here)

2011-02-18 Thread D. Dante Lorenso
On 2/18/11 8:39 AM, Kirk Bailey wrote: Oh hey, that's a good point. All the stuff i saw so far indented 2 spaces. WHY? Can I just indent a TAB if my editor permits this? indenting 4 spaces (2 nests) is easy, but suppose I hit one extra space- not enough difference to be really noticeable. Let's t

Re: [PHP] Howdy (new in here)

2011-02-18 Thread Robert Cummings
On 11-02-16 06:36 PM, Tamara Temple wrote: On Feb 15, 2011, at 11:23 PM, Brian Waters wrote: On Tue, Feb 15, 2011 at 11:46 PM, Tamara Temple wrote: I was unlucky enough to find someone who coded a function that went on for 30 pages one (this was in C, not PHP) and *that* was hard to untangl

Re: [PHP] Howdy (new in here)

2011-02-18 Thread Kirk Bailey
Oh hey, that's a good point. All the stuff i saw so far indented 2 spaces. WHY? Can I just indent a TAB if my editor permits this? indenting 4 spaces (2 nests) is easy, but suppose I hit one extra space- not enough difference to be really noticeable. Let's talk about indentation in php for a mo

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Tamara Temple
On Feb 15, 2011, at 11:23 PM, Brian Waters wrote: On Tue, Feb 15, 2011 at 11:46 PM, Tamara Temple > wrote: I was unlucky enough to find someone who coded a function that went on for 30 pages one (this was in C, not PHP) and *that* was hard to untangle. Why!?!?!?!?!?!?! - BW (un?)fortu

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Donovan Brooke
Tamara Temple wrote: On Feb 15, 2011, at 4:17 PM, Donovan Brooke wrote: [snip] This is what I show my students: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php Cheers, tedd I didn't know there were names for bracing styles... but Neither did I -- just the K&R style was the only n

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Andre Polykanine
book: http://facebook.com/menelion Original message From: Micky Hulse To: php-general@lists.php.net Date created: , 3:43:57 AM Subject: [PHP] Howdy (new in here) On Tue, Feb 15, 2011 at 2:00 PM, David Harkness wrote: > I use K&R. I started with it jus

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Tamara Temple
On Feb 15, 2011, at 4:17 PM, Donovan Brooke wrote: [snip] This is what I show my students: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php Cheers, tedd I didn't know there were names for bracing styles... but Neither did I -- just the K&R style was the only name I recognized. (I

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Micky Hulse
On Tue, Feb 15, 2011 at 2:00 PM, David Harkness wrote: > I use K&R. I started with it just as shown but as monitors increased in size > I stopped cuddling the else so it's now on its own line, aligning the if, > elseif, and else nicely. One of the developers at my company uses the > truly abominab

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Richard Quadling
On 15 February 2011 21:08, Steve Staples wrote: > Your bracing style is WRONG.  Whitesmiths Style sucks... and Allman > Style is the best way to do it. It's not Friday. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (htt

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Richard Quadling
On 15 February 2011 20:42, tedd wrote: > At 12:52 PM -0600 2/15/11, Nicholas Kell wrote: >> >> On Feb 15, 2011, at 11:52 AM, tedd wrote: >> >>  > I guess that we run in different worlds. Most of the PHP programmers I >> know are very good. >>> >> >> I have to agree with you, tedd. Most of the PHP

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Andre Polykanine
.com/menelion Original message From: David Harkness To: sstap...@mnsi.net Date created: , 12:00:52 AM Subject: [PHP] Howdy (new in here) On Tue, Feb 15, 2011 at 1:08 PM, Steve Staples wrote: > My personal bracing style is the Allman Style. > I use K&am

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Donovan Brooke
[snip] This is what I show my students: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php Cheers, tedd I didn't know there were names for bracing styles... but I used the K&R Style on my last project, which I would call the Larry Ullman style since that is where I took it from. Howev

RE: [PHP] Howdy (new in here)

2011-02-15 Thread Jay Blanchard
[snip] Allman Style is the best way to do it. [/snip] Only if you're playing guitar Junior. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Robert Cummings
On 11-02-15 04:59 PM, Brian Waters wrote: On Tue, Feb 15, 2011 at 4:50 PM, Robert Cummings wrote: I started with K&R and quickly migrated to Allman style. The advantage I see with Allman is that the braces form a visual pocket into which the associated code gets placed :) What about K&R for

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Mujtaba Arshad
@tedd I was interested about the reasons why people perceive php as a poor language. I came across the following stackoverflow thread: http://stackoverflow.com/questions/309300/defend-php-convince-me-it-isnt-horrible The guy answering him immediately after brought up some very good rebuttals, how

Re: [PHP] Howdy (new in here)

2011-02-15 Thread David Harkness
On Tue, Feb 15, 2011 at 1:08 PM, Steve Staples wrote: > My personal bracing style is the Allman Style. > I use K&R. I started with it just as shown but as monitors increased in size I stopped cuddling the else so it's now on its own line, aligning the if, elseif, and else nicely. One of the deve

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Robert Cummings
On 11-02-15 04:08 PM, Steve Staples wrote: Tedd: Your bracing style is WRONG. Whitesmiths Style sucks... and Allman Style is the best way to do it. :) My personal bracing style is the Allman Style... I've been doing it that way forever, it just made sense to me (even before I knew there was

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Steve Staples
On Tue, 2011-02-15 at 15:54 -0500, tedd wrote: > At 2:20 PM -0500 2/15/11, Mujtaba Arshad wrote: > >I would say all languages have their 'lousy developers', however, since very > >few schools focus on teaching the 'proper coding style' for PHP it leads to > >people learning from a variety of resour

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Brian Waters
On Tue, Feb 15, 2011 at 3:37 PM, tedd wrote: > So, I took a *weekend* and programmed about 90 percent of application in > FutureBasic. I then created a shell application and forwarded it to the > client. > > After receiving the application, the client said "Yes, this is exactly what > I want -- ex

Re: [PHP] Howdy (new in here)

2011-02-15 Thread tedd
At 2:20 PM -0500 2/15/11, Mujtaba Arshad wrote: I would say all languages have their 'lousy developers', however, since very few schools focus on teaching the 'proper coding style' for PHP it leads to people learning from a variety of resources available online, and this leads to them receiving m

Re: [PHP] Howdy (new in here)

2011-02-15 Thread tedd
At 12:52 PM -0600 2/15/11, Nicholas Kell wrote: On Feb 15, 2011, at 11:52 AM, tedd wrote: > I guess that we run in different worlds. Most of the PHP programmers I know are very good. I have to agree with you, tedd. Most of the PHP devs that I know are also quite good. But, the fact that b

Re: [PHP] Howdy (new in here)

2011-02-15 Thread tedd
At 2:03 PM -0500 2/15/11, Brian Waters wrote: On Tue, Feb 15, 2011 at 12:52 PM, tedd wrote: > I guess that we run in different worlds. Most of the PHP programmers I know are very good. I didn't mean to suggest anything. Nor do I necessarily subscribe to the idea (that PHP has some lousy de

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Nicholas Kell
On Feb 15, 2011, at 1:20 PM, Mujtaba Arshad wrote: > I would say all languages have their 'lousy developers', however, since very > few schools focus on teaching the 'proper coding style' for PHP it leads to > people learning from a variety of resources available online, and this leads > to them

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Mujtaba Arshad
I would say all languages have their 'lousy developers', however, since very few schools focus on teaching the 'proper coding style' for PHP it leads to people learning from a variety of resources available online, and this leads to them receiving mixed messages from the tutorials and allowing peop

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Brian Waters
On Tue, Feb 15, 2011 at 12:52 PM, tedd wrote: > At 11:37 AM -0600 2/15/11, Nicholas Kell wrote: >> >> On Feb 15, 2011, at 10:51 AM, tedd wrote: >> > At 8:26 PM -0500 2/14/11, Brian Waters wrote: >> >> (if that's OK). I know that PHP sometimes has a reputation for having >> >> (some) lousy devel

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Nicholas Kell
On Feb 15, 2011, at 11:52 AM, tedd wrote: > At 11:37 AM -0600 2/15/11, Nicholas Kell wrote: >> On Feb 15, 2011, at 10:51 AM, tedd wrote: >> > At 8:26 PM -0500 2/14/11, Brian Waters wrote: >> >> (if that's OK). I know that PHP sometimes has a reputation for having >> >> (some) lousy developers, an

Re: [PHP] Howdy (new in here)

2011-02-15 Thread tedd
At 11:37 AM -0600 2/15/11, Nicholas Kell wrote: On Feb 15, 2011, at 10:51 AM, tedd wrote: > At 8:26 PM -0500 2/14/11, Brian Waters wrote: >> (if that's OK). I know that PHP sometimes has a reputation for having >> (some) lousy developers, and I'd like to avoid becoming one of those > > We do

Re: [PHP] Howdy (new in here)

2011-02-15 Thread tedd
Welcome to the list, Brian. I'm fairly new to PHP and the list myself, and I've found it to be a great resource. Another is stackoverflow.com, especially for "How do I do X?" type questions. I often find someone else has already provided an answer. On Tue, Feb 15, 20

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Nicholas Kell
On Feb 15, 2011, at 10:51 AM, tedd wrote: > At 8:26 PM -0500 2/14/11, Brian Waters wrote: >> Hi everyone! I'm just starting out with PHP so I'm looking for a good >> place to ask some questions, have my code critiqued (read: visciously >> ripped apart), and generally BS about PHP and programming

[PHP] Howdy (new in here)

2011-02-15 Thread Daniel Brown
Back to the list for Kirk ;-P -- Forwarded message -- From: Kirk Bailey Date: Tue, Feb 15, 2011 at 12:09 Subject: Re: [PHP] Howdy (new in here) To: Daniel Brown On 2/15/2011 10:03 AM, Daniel Brown wrote: > > On Mon, Feb 14, 2011 at 20:26, Brian Waters

Re: [PHP] Howdy (new in here)

2011-02-15 Thread David Harkness
Welcome to the list, Brian. I'm fairly new to PHP and the list myself, and I've found it to be a great resource. Another is stackoverflow.com, especially for "How do I do X?" type questions. I often find someone else has already provided an answer. On Tue, Feb 15, 2011 at 8:51 AM, tedd wrote: >

Re: [PHP] Howdy (new in here)

2011-02-15 Thread tedd
At 8:26 PM -0500 2/14/11, Brian Waters wrote: Hi everyone! I'm just starting out with PHP so I'm looking for a good place to ask some questions, have my code critiqued (read: visciously ripped apart), and generally BS about PHP and programming in general (if that's OK). I know that PHP sometimes

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Daniel Brown
On Mon, Feb 14, 2011 at 20:26, Brian Waters wrote: > Hi everyone! I'm just starting out with PHP so I'm looking for a good > place to ask some questions, have my code critiqued (read: visciously > ripped apart), and generally BS about PHP and programming in general > (if that's OK). I know that PH

[PHP] Howdy (new in here)

2011-02-14 Thread Brian Waters
Hi everyone! I'm just starting out with PHP so I'm looking for a good place to ask some questions, have my code critiqued (read: visciously ripped apart), and generally BS about PHP and programming in general (if that's OK). I know that PHP sometimes has a reputation for having (some) lousy develop