GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Tip for coders (https://gfy.com/showthread.php?t=1339805)

redwhiteandblue 12-30-2020 01:12 PM

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!!!! :mad::mad::mad:

sarettah 12-30-2020 01:30 PM

Quote:

Originally Posted by redwhiteandblue (Post 22797032)
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!!!! :mad::mad::mad:

Yeah, I hate when I do that :(

.

pornguy 12-30-2020 01:41 PM

I left an if/else in one time.

Bitch took my house.

Klen 12-30-2020 01:44 PM

Dont think i ever use if else for testing purposes.

redwhiteandblue 12-30-2020 02:39 PM

Quote:

Originally Posted by Klen (Post 22797060)
Dont think i ever use if else for testing purposes.

This advice won't be of any use to you then.

CaptainHowdy 12-30-2020 02:45 PM

Another tip for coders: get some sun.

8pt-buck 12-30-2020 04:53 PM

"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 ...

sarettah 12-31-2020 08:55 AM

Quote:

Originally Posted by 8pt-buck (Post 22797170)
"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

.

k33n 01-01-2021 01:19 PM

Also don't change permalinks when G indexed 30k pages :Oh crap

Klen 01-01-2021 01:35 PM

Quote:

Originally Posted by 8pt-buck (Post 22797170)
"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.

just a punk 01-01-2021 02:29 PM

Don't understand what you all are talking about, but ok...

plsureking 01-01-2021 02:54 PM



#


All times are GMT -7. The time now is 03:24 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123