am I doing it right??
-
Jason Stern wrote:
class Government
A generic exception may not catch the ShouldBeInSoapBox exception, which is a special kind exception that is thrown when IsInLounge and IsAboutPolitics are both TRUE.
Gary Kirkham Forever Forgiven and Alive in the Spirit "Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life. Me blog, You read
Gary Kirkham wrote:
IsAboutPolitics ... TRUE
Since when has politics been about truth?
-
class Government { static void Main() { try { Application.Run(new Economy()); Application.Run(new ForeignAffairs()); } catch (Exception) { throw new MoneyAtIt(); } } }
I know I shouldn't use generic exceptions since they may hide the real problem...
Jason Stern wrote:
Re: am I doing it right??
Not at all. You seem to have associated "government" with "class". What on earth were you thinking? There are also a bug in your code:
Jason Stern wrote:
throw new MoneyAtIt();
This should be:
throw taxpayers' MoneyAtIt();
Furthermore, your whole design and implementation seems to be predicated on the concept that the government is running the economy. To date, no evidence has been presented to support this wild premise. -
class Government { static void Main() { try { Application.Run(new Economy()); Application.Run(new ForeignAffairs()); } catch (Exception) { throw new MoneyAtIt(); } } }
I know I shouldn't use generic exceptions since they may hide the real problem...
-
class Government { static void Main() { try { Application.Run(new Economy()); Application.Run(new ForeignAffairs()); } catch (Exception) { throw new MoneyAtIt(); } } }
I know I shouldn't use generic exceptions since they may hide the real problem...
And what if
OutOfMemoryMoney
exception occurs? How can you throw more money when don't have any? Oh, wait you can that's why we're discussing it now :) -
And what if
OutOfMemoryMoney
exception occurs? How can you throw more money when don't have any? Oh, wait you can that's why we're discussing it now :)Mladen Jankovic wrote:
And what if OutOfMemoryMoney exception occurs?
Try
{
FederalReserve.PrintMoreMoney();
}
Catch(MoneyException ex)
{
China.Borrow(Amount.Billions);
Germany.Borrow(Amount.Billions);
Japan.Borrow(Amount.Billions);
SaudiArabia.Borrow(Amount.Billions);
}
Finally
{
Military.Run(Action.Invade, Country.Random(AxisOfEvil));
}
:..::. Douglas H. Troy ::..
Bad Astronomy |VCF|wxWidgets|WTL -
class Government { static void Main() { try { Application.Run(new Economy()); Application.Run(new ForeignAffairs()); } catch (Exception) { throw new MoneyAtIt(); } } }
I know I shouldn't use generic exceptions since they may hide the real problem...
-
I've always wondered if any guy in real life says 'was it good for you', seems to me the same rule applies. If you have to ask, then the answer is 'no'.
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
Jason Stern wrote:
Re: am I doing it right??
Not at all. You seem to have associated "government" with "class". What on earth were you thinking? There are also a bug in your code:
Jason Stern wrote:
throw new MoneyAtIt();
This should be:
throw taxpayers' MoneyAtIt();
Furthermore, your whole design and implementation seems to be predicated on the concept that the government is running the economy. To date, no evidence has been presented to support this wild premise. -
And what if
OutOfMemoryMoney
exception occurs? How can you throw more money when don't have any? Oh, wait you can that's why we're discussing it now :)try { ... } catch (OutOfMoneyException ex) { Economy.Money.Print(); } Is the normal way!
-
Graham Bradshaw wrote:
This should be: throw taxpayers' MoneyAtIt();
...couldn't you just use a cast?
throw (taxpayers) MoneyAtIt();
-
Graham Bradshaw wrote:
This should be: throw taxpayers' MoneyAtIt();
...couldn't you just use a cast?
throw (taxpayers) MoneyAtIt();
David Lockwood wrote:
...couldn't you just use a cast?
yes and no.... you aren't changing congress money into taxpayer's money. The money's original type is taxpayers, therefore, you would have to cast the taxpayers money into congressional budget money, or debt money, or something. :) At least when I spend it there is always something to get back.... so maybe it should be casting it into a black hole....
_________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
-
David Lockwood wrote:
...couldn't you just use a cast?
yes and no.... you aren't changing congress money into taxpayer's money. The money's original type is taxpayers, therefore, you would have to cast the taxpayers money into congressional budget money, or debt money, or something. :) At least when I spend it there is always something to get back.... so maybe it should be casting it into a black hole....
_________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
-
This reminds of an old favorite : If con is the opposite of pro then what is the opposite of progress ?
Then there's "poli" meaning many, and "tics" meaning blood-sucking creatures. :laugh: