Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > PL/NL Texas Hold'em > Small Stakes
FAQ Community Calendar Today's Posts Search

View Poll Results: Which do you have/wear
Artistic Facial Hair 9 6.04%
Ear Piercing 9 6.04%
Face Piercing(eye,lip,nose) 5 3.36%
Tattoo 9 6.04%
Artistic Hair Style 10 6.71%
Attention grabbing clothing 6 4.03%
Attention grabbing jewerly 9 6.04%
Your person is themed (Emo,Gangsta,Punk,Goth) 5 3.36%
None of the above 87 58.39%
Voters: 149. You may not vote on this poll

Closed Thread
 
Thread Tools Display Modes
  #1721  
Old 11-20-2007, 12:46 AM
goofyballer goofyballer is offline
Senior Member
 
Join Date: Jun 2005
Location: THESE IZ THE OLD FORUMZ
Posts: 7,108
Default Re: ***SSNL LIFE THREAD NOV***

^ = programmer tilt
  #1722  
Old 11-20-2007, 01:02 AM
TheChad TheChad is offline
Senior Member
 
Join Date: Dec 2006
Location: second nizzuts
Posts: 926
Default Re: ***SSNL LIFE THREAD NOV***

[ QUOTE ]
^ = programmer tilt

[/ QUOTE ]

haha, I remember those days. I network now. it's much easier!
  #1723  
Old 11-20-2007, 01:13 AM
Chicago Twister Chicago Twister is offline
Senior Member
 
Join Date: Aug 2007
Posts: 546
Default Re: ***SSNL LIFE THREAD NOV***

Goofy,

The case expressions in a switch/case must be constant integral values; superficially because the C++ standard says so, but also so that the compiler can compute the value at compile-time. This is done for several reasons:

1) It lets the compiler optimize your code in ways that wouldn't be possible if the expressions were evaluated at run-time, specifically in laying out the cmp/branch instructions in machine language.

2) switch-case blocks allow fall-through, which would be difficult and expensive to implement using run-time evaluation. Example:

<font class="small">Code:</font><hr /><pre>static const int foo = 1, bar = 2, baz 3;
int n 0;
switch( gizmo )
{
case foo : ++n;
case bar : ++n;
case baz : ++n;
}

cout &lt;&lt; "n = " &lt;&lt; n &lt;&lt; endl</pre><hr />

Prints "n = 3"

Switch/cases are useful for some things, but they aren't the end-all, be-all. Niether are if-else blocks, but here's the thing about C++ which is at the same time its greatest strength and its greatest weakness: C++ is a multi-paradigm language more so than perhaps any other language. You can write any kind of program you want, any way you want to write it. The price you have to pay for this flexibility is an extremely complex language.
  #1724  
Old 11-20-2007, 01:15 AM
Chicago Twister Chicago Twister is offline
Senior Member
 
Join Date: Aug 2007
Posts: 546
Default Re: ***SSNL LIFE THREAD NOV***

As an aside, you might find the language easier to use if you understood more about its roots &amp; the philosophy behind its design. Check out "The Design &amp; Evolution of C++" by BS
  #1725  
Old 11-20-2007, 01:24 AM
goofyballer goofyballer is offline
Senior Member
 
Join Date: Jun 2005
Location: THESE IZ THE OLD FORUMZ
Posts: 7,108
Default Re: ***SSNL LIFE THREAD NOV***

I totally understand the reasons behind it from a C++ perspective; I'm using Java, though, where this restriction makes a lot less sense since the whole language is pretty [censored] slow to begin with.

Also, it still wouldn't let me use a switch statement if I used final (Java's equivalent of "const") identifiers that were set at runtime, which is just adding insult to injury. I guess if Java bytecode is low-level enough to allow for any degree of optimization at the switch statement level then I could understand this rule, but otherwise it feels like an archaic restriction inherited from C++.

I just wanted to save myself some typing, I was in a for loop doing

<font class="small">Code:</font><hr /><pre>
for (i = 0; i &lt; whatever; i++)
boolean[] vars = null;
switch(i) {
case ResourceIds.Schedule.id:
case ResourceIds.Period.id:
case ResourceIds.Time1.id:
vars = whatever;
break;
case ResourceIds.Time2.id:
vars = something.else;
}
</pre><hr />

but it didn't like that so I had to bust out the if i == this || i == that [img]/images/graemlins/frown.gif[/img] So many needless characters!
  #1726  
Old 11-20-2007, 01:28 AM
SirFelixCat SirFelixCat is offline
Senior Member
 
Join Date: Apr 2005
Location: Texas
Posts: 2,173
Default Re: ***SSNL LIFE THREAD NOV***

Any other SSNL'ers either living in Vegas currently, moving there between now and next summer, or just going for the entire WSOP this year?

I'm moving there w/ the gf in the spring and just curious to touch base with any that are there already, etc...
  #1727  
Old 11-20-2007, 01:42 AM
Worm75 Worm75 is offline
Senior Member
 
Join Date: Aug 2006
Location: Bloggin bout varmints
Posts: 1,504
Default Re: ***SSNL LIFE THREAD NOV***

As of right now, I'll be there for about a week, maybe 2 depending on how much of a break the gf has from school.

Where/Why are you planning on moving to Vegas?
  #1728  
Old 11-20-2007, 01:48 AM
SirFelixCat SirFelixCat is offline
Senior Member
 
Join Date: Apr 2005
Location: Texas
Posts: 2,173
Default Re: ***SSNL LIFE THREAD NOV***

[ QUOTE ]
As of right now, I'll be there for about a week, maybe 2 depending on how much of a break the gf has from school.

Where/Why are you planning on moving to Vegas?

[/ QUOTE ]

Well, a few reasons:

***I'm playing for a living starting Feb. 1

***It's ideal for playing live as well as online, coupled with the following

***We (G/F and I) REALLY like it there and don't have any vices that one would warn ppl about (neither are drinkers, never touched a drug, neither are 'gamblers' etc.)

***The housing market is fantastic for a home buyer right now

*** G/F going to UNLV for Comp. Science degree

***Close to LA for other live games

***No kids and not for a few years

I could go on, but those are the major reasons.

Obligatory GF pic (middle):
  #1729  
Old 11-20-2007, 01:49 AM
keikiwai keikiwai is offline
Senior Member
 
Join Date: Feb 2005
Location: Hi. My name is Rosa Kato <3
Posts: 19,541
Default Re: ***SSNL LIFE THREAD NOV***

[ QUOTE ]
(neither are drinkers, never touched a drug, neither are 'gamblers' etc.)

[/ QUOTE ]

wtf are you gonna do all [censored] day long?
  #1730  
Old 11-20-2007, 01:53 AM
SirFelixCat SirFelixCat is offline
Senior Member
 
Join Date: Apr 2005
Location: Texas
Posts: 2,173
Default Re: ***SSNL LIFE THREAD NOV***

[ QUOTE ]
[ QUOTE ]
(neither are drinkers, never touched a drug, neither are 'gamblers' etc.)

[/ QUOTE ]

wtf are you gonna do all [censored] day long?

[/ QUOTE ]

LDO...did you not see how hot she is?!? [img]/images/graemlins/grin.gif[/img]

And by not being drinkers, I mean, we're past the age of boozing it up. We both enjoy a nice bottle of wine w/ some manchego on a Sunday afternoon, but you get the point.

(I'm 32, she's 27).
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.