Re: Justification for murder

2015-04-20 Thread Cameron Childress

On Mon, Apr 20, 2015 at 9:45 AM, Jerry Milo Johnson jmi...@gmail.com
wrote:

 I also prefer the } else { notation.


Me too, and I never leave off the curly brackets, even when it's optional.
More explicit for the next confused person reading the code (probably me in
a few months/years).

-Cameron

...


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373356
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm


Re: Justification for murder

2015-04-20 Thread Cameron Childress

For some reason I find myself switching at time between both styles. I am
not really sure why. One just feels better sometimes and the other feels
better other times.

I think that if the file's short I prefer version #2 since it helps
everything look compact. If the code's gonna be longer than one visible
page I prefer #1 since it's gonna go over a page anyway and compactness
doesn't matter.

Or maybe it's just which shoe I put on first in the morning. Not sure.

If we ever work on a project together, please try not to murder me. :)

-Cameron

On Mon, Apr 20, 2015 at 9:00 AM, Eric Roberts wrote:


 Heheh...yeah...I never understood that indentation style.  The first one
 makes more sense to me.  It's much more readable.  I definitely sympathize
 with the characters LOL.

 Eric


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373354
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm


RE: Justification for murder

2015-04-20 Thread Eric Roberts

Heheh...yeah...I never understood that indentation style.  The first one
makes more sense to me.  It's much more readable.  I definitely sympathize
with the characters LOL.

Eric

-Original Message-
From: Michael Dinowitz [mailto:mdino...@houseoffusion.com] 
Sent: Sunday, April 19, 2015 12:41 PM
To: cf-community
Subject: Justification for murder


I read a number of great web comics and once in a while something stands out
to be shared. This recent page from Sandra and Woo is one of them. I might
even be so bold as to say that anyone who does not 'get it' is not a real
programmer. Of course, others would disagree and a fight would ensue, which
fits the context perfectly. :)

Sandra and Woo  [0674] There Are 10 Types Of Programmers | The comedy
webcomic

http://www.sandraandwoo.com/2015/04/13/0674-there-are-10-types-of-programmer
s/




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373353
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm


Re: Justification for murder

2015-04-20 Thread Jerry Milo Johnson

I am definitely a brace on the end of the top line kind of guy.

I also prefer the } else { notation.

Fortunately, the WordPress coding standards agree with me.
https://make.wordpress.org/core/handbook/coding-standards/php/#brace-style

My pet peeve, though, is var2 = #var# in cf code.

And unequal tab spacing inside a single file. You don't have to pick mine,
but stick with one style, please.




On Mon, Apr 20, 2015 at 9:16 AM, Cameron Childress camer...@gmail.com
wrote:


 For some reason I find myself switching at time between both styles. I am
 not really sure why. One just feels better sometimes and the other feels
 better other times.

 I think that if the file's short I prefer version #2 since it helps
 everything look compact. If the code's gonna be longer than one visible
 page I prefer #1 since it's gonna go over a page anyway and compactness
 doesn't matter.

 Or maybe it's just which shoe I put on first in the morning. Not sure.

 If we ever work on a project together, please try not to murder me. :)

 -Cameron

 On Mon, Apr 20, 2015 at 9:00 AM, Eric Roberts wrote:

 
  Heheh...yeah...I never understood that indentation style.  The first
 one
  makes more sense to me.  It's much more readable.  I definitely
 sympathize
  with the characters LOL.
 
  Eric


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373355
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm


Re: Justification for murder

2015-04-20 Thread Jerry Milo Johnson

Sadly, unconciously I think I do it to appease the compiler/interpreter
gods. Don't make them struggle on easy stuff, so they aren't mad at me when
they get to the complex stuff I have in there.

On Mon, Apr 20, 2015 at 9:48 AM, Cameron Childress camer...@gmail.com
wrote:


 On Mon, Apr 20, 2015 at 9:45 AM, Jerry Milo Johnson jmi...@gmail.com
 wrote:

  I also prefer the } else { notation.


 Me too, and I never leave off the curly brackets, even when it's optional.
 More explicit for the next confused person reading the code (probably me in
 a few months/years).

 -Cameron

 ...


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373357
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm


Re: Justification for murder

2015-04-20 Thread Scott Stewart

I'm in line with Jerry, I don't care how you format your code as long as it
is formatted in a readable manner, you do it the same way throughout and I
can reverse engineer it quickly if I have to make changes.

oh yeah and scope the damn variables so I don't have to hunt around for
them.

On Mon, Apr 20, 2015 at 9:59 AM, Jerry Milo Johnson jmi...@gmail.com
wrote:


 Sadly, unconciously I think I do it to appease the compiler/interpreter
 gods. Don't make them struggle on easy stuff, so they aren't mad at me when
 they get to the complex stuff I have in there.

 On Mon, Apr 20, 2015 at 9:48 AM, Cameron Childress camer...@gmail.com
 wrote:

 
  On Mon, Apr 20, 2015 at 9:45 AM, Jerry Milo Johnson jmi...@gmail.com
  wrote:
 
   I also prefer the } else { notation.
 
 
  Me too, and I never leave off the curly brackets, even when it's
 optional.
  More explicit for the next confused person reading the code (probably me
 in
  a few months/years).
 
  -Cameron
 
  ...
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373358
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm