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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-30-2020, 01:12 PM   #1
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Tip for coders

When running a split test on some coding changes you've made, remember to also take out the if/else block for the last code change you tested. Otherwise you end up throwing away a week's worth of data because you've been testing the WRONG FUCKING THING!!!!
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2020, 01:30 PM   #2
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,078
Quote:
Originally Posted by redwhiteandblue View Post
When running a split test on some coding changes you've made, remember to also take out the if/else block for the last code change you tested. Otherwise you end up throwing away a week's worth of data because you've been testing the WRONG FUCKING THING!!!!
Yeah, I hate when I do that

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2020, 01:41 PM   #3
pornguy
Too lazy to set a custom title
 
pornguy's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,911
I left an if/else in one time.

Bitch took my house.
__________________
PornGuy skype me pornguy_epic

AmateurDough The Hottes Shemales online!
TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!
pornguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2020, 01:44 PM   #4
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Dont think i ever use if else for testing purposes.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2020, 02:39 PM   #5
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Quote:
Originally Posted by Klen View Post
Dont think i ever use if else for testing purposes.
This advice won't be of any use to you then.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2020, 02:45 PM   #6
CaptainHowdy
Too lazy to set a custom title
 
CaptainHowdy's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,275
Another tip for coders: get some sun.
__________________
FLASH SALE INSANITY! deal with a 100% Trusted Seller
Buy Traffic Spots on a High-Quality Network

1 Year or Lifetime — That’s Right, Until the Internet Explodes!
CaptainHowdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-30-2020, 04:53 PM   #7
8pt-buck
So Fucking Banned
 
Industry Role:
Join Date: Aug 2013
Location: Princeton, New Jersey
Posts: 4,011
"else" really isn't needed after every "if" ..
I can give you a bunch of examples ...

Personally.. it would make a mess of the code to write to write a empty else after every if.
You don't always need a final else ...
8pt-buck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-31-2020, 08:55 AM   #8
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,078
Quote:
Originally Posted by 8pt-buck View Post
"else" really isn't needed after every "if" ..
I can give you a bunch of examples ...

Personally.. it would make a mess of the code to write to write a empty else after every if.
You don't always need a final else ...

I think most programmers are well aware of that but it is worth repeating for any newbs out there.

With that said, many of us refer to the conditional structure as "if then else" whether there is a literal else indicated or not. Not putting an else says to do nothing:

if this condition then do this else do nothing

is the same as

if this condition then do this

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2021, 01:19 PM   #9
k33n
Confirmed User
 
Join Date: Feb 2009
Posts: 201
Also don't change permalinks when G indexed 30k pages
k33n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2021, 01:35 PM   #10
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by 8pt-buck View Post
"else" really isn't needed after every "if" ..
I can give you a bunch of examples ...

Personally.. it would make a mess of the code to write to write a empty else after every if.
You don't always need a final else ...
Old habits die hard.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2021, 02:29 PM   #11
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,383
Don't understand what you all are talking about, but ok...
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-01-2021, 02:54 PM   #12
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,685


#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
weeks, throwing, worth, tested, fucking, madmadmad, wrong, testing, data, change, block, coding, test, split, coders, running, if/else, tip, remember, code



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.