![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
which pattern is better and why?
[HTML]
Pattern A: ---------- funciton bob() { if(penis=>999) { block } else { block } } Pattern B: ---------- funciton bob(){ if(penis=>999){ block } else { block } } [/HTML] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Nov 2002
Location: Virgin Mary's womb
Posts: 16,826
|
B
its more compact...
__________________
Often times I wonder why There's love and hate, theres live or die. When sickness comes I must decide: When feelings go, theres suicide. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
|
A is probably easier for a third party to read and understand but B is how I format my own code.
SpaceAce |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
DINO CORTEZ™
Industry Role:
Join Date: Jun 2003
Location: Vancouver Island
Posts: 2,145
|
I usually go for A - somehow with B, the starting brace is often missed.
A also lends itself to cutting and pasting blocks (omitting the conditional logic). ![]() -Dino |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2003
Location: Los Angeles
Posts: 2,680
|
I'm used to B.
A is easier to line up braces for someone else reading it.
__________________
icq: 237055440 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
Quote:
why? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
i just don't understand why all the programers I asked say they use B and at the same time say A is better in most of the ways
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
|
Quote:
A = I know a guy. He has a penis > 999. I think I will cock block him. He has it coming. B = I know a guy with a penis that's at least 999. I'm going to cock block him. SpaceAce |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Oct 2004
Location: Sin City Baby...
Posts: 1,725
|
I vote for C
![]()
__________________
Shoes and Boot |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
stc is the greatest
Join Date: Dec 2002
Location: rip sean murray
Posts: 12,403
|
neither
its function not funciton you dyslexic slob |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
I prefer A
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Nov 2004
Posts: 541
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
stc is the greatest
Join Date: Dec 2002
Location: rip sean murray
Posts: 12,403
|
Quote:
i was kidding anyway |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
wtf ?
Join Date: Dec 2003
Location: GFY
Posts: 11,895
|
A is more professional. Code needs to be easily readable.
__________________
Insert Sig Here |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Oct 2004
Posts: 2,577
|
Penis malfunction debugging error....wtf !!!
__________________
webmaster @ adultlist. com AdultList.com - Directory Listings, Advertisements, Hardlinks Loasex.com - Directory and old school TGP - taking submits A few sales/opportunities: High Quality Guest Posts For Sale Network of Aged sites for sales. Get in touch on the email above for info. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
Quote:
code needs to be readable and editable, yet short |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
The one and only!
Industry Role:
Join Date: Nov 2002
Location: Atlanta, GA
Posts: 17,761
|
A is much easier to go into and read but i prefer B
__________________
Mandy's Playhouse Her First Fat Girl If you're interested in promoting my sites, ICQ me! 178411921 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
bumpppppp
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
I use B, but you can't really say which one is the best. It is down to personal preference. Each programmer has their own unique coding style, like designers has their ways..
|
![]() |
![]() ![]() ![]() ![]() ![]() |