00:00
00:00
Newgrounds Background Image Theme

apollonx just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,046,731 Views | 60,186 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2010-02-26 19:13:37


At 2/26/10 06:21 PM, meneldil wrote: Forgive me and my lack of sleep. I meant:
logical_expression ? return_this_value_if_true : return_this_value_if_false

it doesn't return any values. also, the latter should be "if not true" aka "else". "not true" is not equivalent to "false". so much for your "logical expressions"


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 19:52:37


At 2/26/10 07:05 PM, zrb wrote:
At 2/26/10 05:18 PM, Archon68 wrote: It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.
Actually that's a very useful thing, I just turned around 10 lines of code into one thanks to that !

I wasn't being sarcastic. It is very useful and I use it all the time.

WINDOWS XP
Windows XP deleted the Administrator account on my computer for some reason. Apparently the user account file is corrupt. WTF.

The worst part? It was the only Administrator account on my computer, and it reset itself to a limited account, so now I have absolutely no (easy) way of accessing Control Panel, my hard drive, or anything else that would possibly help me fix this.

What the fuck, Windows XP? You make me want to upgrade to Windows 7.

Response to The Flash 'Reg' Lounge 2010-02-26 20:37:06


I am seriously considering buying Windows 7.

Response to The Flash 'Reg' Lounge 2010-02-26 20:48:58


At 2/26/10 08:42 PM, HDXmike wrote:
At 2/26/10 08:37 PM, Archon68 wrote: I am seriously considering buying Windows 7.
Hmmm archon wherever would you get that idea from ? you seemed like a solid XP dude to me

That was until Windows XP decided to randomly delete my Administrator Account. It just corrupted itself in the middle of me using it. How the hell does that even happen?

Response to The Flash 'Reg' Lounge 2010-02-26 21:19:24


PHEW
I got everything back, except for my custom theme, which can be easily fixed. That was freakin' scary.

Response to The Flash 'Reg' Lounge 2010-02-26 21:23:35


At 2/26/10 09:19 PM, Archon68 wrote: I got everything back, except for my custom theme, which can be easily fixed. That was freakin' scary.

Good. That was a tense 2 hours for all of us.


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 21:31:59


At 2/26/10 09:23 PM, Coaly wrote:
At 2/26/10 09:19 PM, Archon68 wrote: I got everything back, except for my custom theme, which can be easily fixed. That was freakin' scary.
Good. That was a tense 2 hours for all of us.

I pooped a little.


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 21:34:41


At 2/26/10 09:23 PM, Coaly wrote:
At 2/26/10 09:19 PM, Archon68 wrote: I got everything back, except for my custom theme, which can be easily fixed. That was freakin' scary.
Good. That was a tense 2 hours for all of us.

I'm so glad you care about me, Coaly. Your opinion valuable to me.

...

Response to The Flash 'Reg' Lounge 2010-02-26 21:36:29


At 2/26/10 09:34 PM, Archon68 wrote:
At 2/26/10 09:23 PM, Coaly wrote:
At 2/26/10 09:19 PM, Archon68 wrote: I got everything back, except for my custom theme, which can be easily fixed. That was freakin' scary.
Good. That was a tense 2 hours for all of us.
I'm so glad you care about me, Coaly. Your opinion valuable to me.

...

this is pretty handy to me http://www.newegg.com/Product/Product.as px?Item=N82E16822136469&cm_re=external_h ardrive-_-22-136-469-_-Product


the events are merely fictional, written, directed, and acted out by all who create them

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 21:45:18


At 2/26/10 09:36 PM, Starogre wrote:
this is pretty handy to me http://www.newegg.com/Product/Product.as px?Item=N82E16822136469&cm_re=external_h ardrive-_-22-136-469-_-Product

this is pretty handy to me http://www.linux.org/

oh, what's that? 100 bucks for backup? no thanks. my computer doesn't have diarreah


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 21:53:11


54,999 post. Muahaha.


I am a FAB

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 21:53:17


#55,000!

I WIN AGAIN.

Response to The Flash 'Reg' Lounge 2010-02-26 22:04:08


At 2/26/10 09:53 PM, windowskiller wrote: 54,999 post. Muahaha.

Still doesn't beat my 49,999 post


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-26 23:27:32


At 2/26/10 09:53 PM, Archon68 wrote: #55,000!

I WIN AGAIN.

You need to get out more.

In other news:

I was stepping up there earlier, and I'd go up there now!


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 01:37:52


Someone really needs to explain to me the relevance of the whole post count thing. If I worried about stuff like that, I think it would get in the way of my true focus: being drunk all the time.


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 02:36:24


Someone really needs to explain to me the relevance of the whole being drunk thing. If I worried about stuff like that, I think it would get in the way of my true focus: having a high post count.

I guess that would mean more if I had a high post count.

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 05:13:17


At 2/26/10 07:13 PM, Toast wrote:
At 2/26/10 06:21 PM, meneldil wrote: Forgive me and my lack of sleep. I meant:
logical_expression ? return_this_value_if_true : return_this_value_if_false
it doesn't return any values.

Yes it does.

? : is an operation which returns a value ;)

Just as =, +=, -=, *=, /=, %=, ^= &=, |=, ||, &&, +, -, /, *, ^, &, |, %, >>, <<, >>>, >>=, <<=, >>>=, !, ~, ++, --, all return values too :P

Response to The Flash 'Reg' Lounge 2010-02-27 07:28:25


The ?: operator is useful but it's slower than "if...else". Also it can become hell if you're to lazy to right a lot and you just end up with ???::?::?: kind of set up going on.


"To live is the rarest thing in the world. Most people exist, that is all."

- Oscar Wilde

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 07:34:35


At 2/27/10 07:28 AM, Deadclever23 wrote: The ?: operator is useful but it's slower than "if...else". Also it can become hell if you're to lazy to right a lot and you just end up with ???::?::?: kind of set up going on.

Isn't it faster normally, but slower with nested statements or something?
I haven't checked the bytecode or done any speed tests, but I remember reading that this was the case for AS2.
Please correct me if I'm wrong.

I had meant to check this yesterday.

Doomsday-One, working on stuff better than preloaders. Marginally.

Response to The Flash 'Reg' Lounge 2010-02-27 07:42:01


I just did a speed test and "if/else" is faster than "?:".

In my test, "if/else" took 3 ms and "?:" took 4 ms.

Response to The Flash 'Reg' Lounge 2010-02-27 08:00:36


At 2/27/10 07:42 AM, Archon68 wrote: In my test, "if/else" took 3 ms and "?:" took 4 ms.

Your test is wrong, :) they both translate to the exact same bytecode

Response to The Flash 'Reg' Lounge 2010-02-27 08:24:23


At 2/27/10 08:00 AM, Inglor wrote:
At 2/27/10 07:42 AM, Archon68 wrote: In my test, "if/else" took 3 ms and "?:" took 4 ms.
Your test is wrong, :) they both translate to the exact same bytecode

Meh.

Response to The Flash 'Reg' Lounge 2010-02-27 08:34:41


At 2/26/10 11:27 PM, Kirk-Cocaine wrote:
At 2/26/10 09:53 PM, Archon68 wrote: #55,000!

I WIN AGAIN.
You need to get out more.

Agreed.

The Flash 'Reg' Lounge


I am a FAB

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 08:44:00


You can tell you're no longer a reg when you don't get a birthday thread.


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 09:35:19


At 2/27/10 08:34 AM, windowskiller wrote: Agreed

I waited like an hour for it to get to 54,999. I had that post all typed out and ready to go, and I was refreshing the page every few minutes when it was 54,998 so I wouldn't miss it. :O

I have way too much free time.

Response to The Flash 'Reg' Lounge 2010-02-27 09:58:11


At 2/27/10 05:13 AM, dELtaluca wrote:
At 2/26/10 07:13 PM, Toast wrote:
At 2/26/10 06:21 PM, meneldil wrote: Forgive me and my lack of sleep. I meant:
logical_expression ? return_this_value_if_true : return_this_value_if_false
it doesn't return any values.
Yes it does.

? : is an operation which returns a value ;)

Just as =, +=, -=, *=, /=, %=, ^= &=, |=, ||, &&, +, -, /, *, ^, &, |, %, >>, <<, >>>, >>=, <<=, >>>=, !, ~, ++, --, all return values too :P

Eh, then it's just an argument about semantics, and I'm wrong about it. I had a different definition of "returning" in mind, which would only include &&, ||, <. >, etc (and "return" itself obviously.. lol), but not stuff like ++, --, and ? :. But I see why you say that. I don't see the point in it, but whatever. Disregard what I said


BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 10:43:20


At 2/27/10 08:44 AM, Depredation wrote: You can tell you're no longer a reg when you don't get a birthday thread.

D'awwwww.

You're not on the NG Cal, how could we have known >:(

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 11:20:10


At 2/27/10 09:58 AM, Toast wrote: Eh, then it's just an argument about semantics, and I'm wrong about it. I had a different definition of "returning" in mind, which would only include &&, ||, <. >, etc (and "return" itself obviously.. lol), but not stuff like ++, --, and ? :. But I see why you say that. I don't see the point in it, but whatever. Disregard what I said

All these methods return a value.

the result, of =, is a reference to the lhs after the assignment, which is the reason why you can chain assignments like a = b = c = 10, being right-associative, this is equiv. to a = (b = (c = 10)) which is equiv. to c = 10; b = c; a = b;

similarly for all the operations like += which return a reference to the lhs after the operation, similarly for pre-increment/decrement, a = ++b; equiv. to b = b+1; a = b; whilst post-increment/decrement do it the opposite way round; a = b++; equiv. to a = b; b = b+1;

? : is an operation which returns one of two values dependant on the argument, the value before the ? symbol, you can chain them like an assignment to see this in effect.

c = ( cond ? a : b ) += 10;

equiv. to:

if(cond) { a = a+10; c = a; }
else { b = b+10; c = b; }

Response to The Flash 'Reg' Lounge 2010-02-27 12:18:51


Intelligence
What would you guys say a good judge of intelligence is?


"To live is the rarest thing in the world. Most people exist, that is all."

- Oscar Wilde

BBS Signature

Response to The Flash 'Reg' Lounge 2010-02-27 12:37:50


At 2/27/10 12:18 PM, Deadclever23 wrote: Intelligence
What would you guys say a good judge of intelligence is?

combination of recalling information and using logic to solve problems


the events are merely fictional, written, directed, and acted out by all who create them

BBS Signature