|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2014-8-26. : 2:52 am] O)FaRTy1billion[MM] -- Before a couple days ago I didn't even know what Perl looked like. A job offer was posted at my work that said Perl knowledge was a 'plus'. [2014-8-26. : 2:51 am] Moose -- Maybe it's perl, but the server is set to process .php files as perl scripts. [2014-8-26. : 2:50 am] O)FaRTy1billion[MM] -- I'm pretty sure it's the same since the way most of these languages work are based on C [2014-8-26. : 2:49 am] O)FaRTy1billion[MM] -- I just noticed the .php extention on that and thought, wouldn't it funny if php.net used .cgi? [2014-8-26. : 2:47 am] O)FaRTy1billion[MM] -- the 1 time out of whatever is if it's 0, NULL, or false (which, in C, all equal 0). [2014-8-26. : 2:44 am] Moose -- http://php.net/manual/en/language.operators.assignment.php says how it works, but from what you say, sounds like it does. [2014-8-26. : 2:44 am] O)FaRTy1billion[MM] -- And if it's anything else like C, 2n-1 times out of 2n, it will return True. [2014-8-26. : 2:37 am] Moose -- It isn't whether or not the assignment succeeds, it is the value assigned. [2014-8-26. : 2:36 am] Moose -- Ah, correction for what I said about PHP: "The value of an assignment expression is the value assigned." [2014-8-26. : 2:19 am] jjf28 -- "I found the most convincing argument for the imperial system over the metric system" [2014-8-26. : 2:17 am] O)FaRTy1billion[MM] -- Which is an awesome typo to make when error-checking code ("WHY IS IT ALWAYS RETURNING FALSE?!" *don't notice = instead of ==*) [2014-8-26. : 2:16 am] O)FaRTy1billion[MM] -- so like if(x = false) would return false, but if(x = true) would return true [2014-8-26. : 2:16 am] O)FaRTy1billion[MM] -- "Mini Moose 2707 -- This seems language dependent, because PHP will return true for assignment statements. That was the exact mistake I made in the noob code I deleted yesterday." In C it returns based on the value of the assignment. [2014-8-26. : 2:14 am] Moose -- Okay, I found the most convincing argument for the imperial system over the metric system: http://i.imgur.com/LZSRaJg.jpg [2014-8-26. : 12:44 am] lil-Inferno -- I had to do that too, and I've neither abused alcohol or sexually assaulted anyone. [2014-8-26. : 12:35 am] Zoan -- Rawrgh, I have to do a bunch of online courses for my college about alcohol and sexual assault so boring [2014-8-25. : 11:05 pm] Fire_Kame -- so I guess it was a wordpress issue because concrete5 worked fine with the one click installer. [2014-8-25. : 10:06 pm] Moose -- If you want a loop, yes. For a conditional, you might as well just write the code without the conditional if you were doing anything else with it. There are some clever manipulations you might want to do with operators and short circuiting, I guess. [2014-8-25. : 10:01 pm] Generalpie -- It seems weird, and can't think of a reason to use that mechanic [2014-8-25. : 9:58 pm] Fire_Kame -- It worked for me before on a different domain - this is a new domain though. I just registered it a couple of hours ago, but I got an email from dreamhost saying I just need to follow a few more steps to finish installation. It just keeps telling me that the webpage isn't available and I'm not sure why...I guess I'll try again in a couple hours. :\ [2014-8-25. : 9:57 pm] Jack -- The context was your noob code that I figured you wrote but I rewrote in C. I didn't realize PHP would let you do that. [2014-8-25. : 9:52 pm] DevliN -- "Fire_Kame -- can anyone tell me why dreamhost's one click installer hates me? It couldn't possibly be my fault." I could never get it to work correctly on pre-existing spaces, so I just always manually installed/updated everything. [2014-8-25. : 9:45 pm] Moose -- This seems language dependent, because PHP will return true for assignment statements. That was the exact mistake I made in the noob code I deleted yesterday. [2014-8-25. : 9:43 pm] Generalpie -- I mean, why have an assignment equal as true, if it will always be true as a confirmation [2014-8-25. : 9:43 pm] Generalpie -- Maybe because it would be harder to debug code if you had to spot out a function that has nothing syntactically wrong with it as opposed to something that does [2014-8-25. : 9:37 pm] Devourer -- I am not sure at all, but isn't it working as X=Y is executed first and when X then is true or whatever would pass the condition, the if turns true? [2014-8-25. : 9:37 pm] Fire_Kame -- can anyone tell me why dreamhost's one click installer hates me? It couldn't possibly be my fault. [2014-8-25. : 9:34 pm] Jack -- I've always wondered why if(X = Y) { blah;} doesn't work, in that it makes sense for X = Y to validate as true, even though it's assignment. E.g. "yes X has been made to equal Y". |
lil-Inferno,
Excalibur