Oh yea! C++ owns j00!
I personally prefer J2EE because it's a standard, whereas .NET is a product, and a proprietary one at that.
as to
foo *bar = new foo();
no parenthesis.
//constructs a foo pointer
foo* bar = new foo;
delete bar; //derf
if you wanted to call a constructor, you can use parens.
foo* bar = new foo(5);
but it is pointless when the default constructor is to be used (ie, () )
//if you had an array of foos [like a c-style string],
foo* bar = new foo[25]; //points bar to the first element of 25 'foo's
//you would need to
delete [] bar;
by the way, TOOL KICKS ASS OMFG
went to their concert in beaumont last night
unnnf.
also, yeah, use meaningful variable names, and class names, etc.
for like a temp variable foo,bar,etc are fine, but making a class called bokweefoo or whatever is confusing. it also doesnt take that much effort to call the class 'class Pointer' or 'class TCPIPController'.
then, when this intern reads your code once he has your job following your lucrative placement into the ranks of mangement and comes across an instance of this class, he can go "oh, ok, this class controls the TCP/IP functionality of this [whatever]". he wont have to say "WTF!~! wth does 'bokweefoo' do?" *consults documentation, if he has access to it* "ok, says here that bokweefoo controls an instance of weenik and uses the methods of plopkinfoo to transfer data of type bar across TCP/IP...WTF?!?!" and he consults doc for all of that, etc, blah blah, pain in the ass, time wasting, etc.
my dos cents.
for like a temp variable foo,bar,etc are fine, but making a class called bokweefoo or whatever is confusing. it also doesnt take that much effort to call the class 'class Pointer' or 'class TCPIPController'.
then, when this intern reads your code once he has your job following your lucrative placement into the ranks of mangement and comes across an instance of this class, he can go "oh, ok, this class controls the TCP/IP functionality of this [whatever]". he wont have to say "WTF!~! wth does 'bokweefoo' do?" *consults documentation, if he has access to it* "ok, says here that bokweefoo controls an instance of weenik and uses the methods of plopkinfoo to transfer data of type bar across TCP/IP...WTF?!?!" and he consults doc for all of that, etc, blah blah, pain in the ass, time wasting, etc.
my dos cents.
Joke of the moment for Saturday 13:45:12 PT, November 16.
Political pick-up lines
10. "I see the flat tax wouldn't apply to you."
9. "Inflation isn't the only thing going up around here."
8. "I'd like you to exercise my pocket veto."
7. "Could you give my voting lever a little pull?"
6. "I said I wanted to keep the government out of the bedroom, but I didn't mean this senator."
5. "Hello, my name is Sen. Bob Packwood...."
4. "...and have you met my friend Sen. Ted Kennedy?"
3. "Would you like to import some fine foriegn salami?"
2. "Do you wanna go stuff the ballot box?"
1. "I've got an economic stimulus package right here in my pants...er, uh, pocket."
Political pick-up lines
10. "I see the flat tax wouldn't apply to you."
9. "Inflation isn't the only thing going up around here."
8. "I'd like you to exercise my pocket veto."
7. "Could you give my voting lever a little pull?"
6. "I said I wanted to keep the government out of the bedroom, but I didn't mean this senator."
5. "Hello, my name is Sen. Bob Packwood...."
4. "...and have you met my friend Sen. Ted Kennedy?"
3. "Would you like to import some fine foriegn salami?"
2. "Do you wanna go stuff the ballot box?"
1. "I've got an economic stimulus package right here in my pants...er, uh, pocket."
Joke of the moment for Saturday 13:46:22 PT, November 16.
A woman walked up to a little old man rocking in a chair on his porch.
"I couldn't help noticing how happy you look," she said.
"What's your secret for a long happy life?"
"I smoke three packs of cigarettes a day," he said. "I also drink a case of whiskey a week, eat fatty foods, and never exercise."
"That's amazing," the woman said. "How old are you?"
"Twenty-six," he said.
A woman walked up to a little old man rocking in a chair on his porch.
"I couldn't help noticing how happy you look," she said.
"What's your secret for a long happy life?"
"I smoke three packs of cigarettes a day," he said. "I also drink a case of whiskey a week, eat fatty foods, and never exercise."
"That's amazing," the woman said. "How old are you?"
"Twenty-six," he said.
I blow your shit up like Timothy McVeigh
My clique be thrivin', your clique rot and decay
Bling, I pay fo' rubbas wit a 100 dolla bill
Ain't no real playa would roll in a Seville
Dressin' up like da KKK on Halloween
I be slicin' hatas up like I was Wolverine
I don't got a reason, but we still gonna fight
Da ho on crack, but she can suck alright
I don't got a reason, but we still gonna fight
You best be kissin' your future goodnight
I make da hookers suck my raunchy-ass toes
Step into church, machinegun all the rows
My beats tingle in yo ear drums, zero respite
Fans on they knees over da rhymes I recite
Da ho I knocked up forgot her birth control pill
Sippin' on a 40 until I've had my fill
Bitch don't trip, bitch don't play
Take yo glock and jack Old Country Buffet
My clique be thrivin', your clique rot and decay
Bling, I pay fo' rubbas wit a 100 dolla bill
Ain't no real playa would roll in a Seville
Dressin' up like da KKK on Halloween
I be slicin' hatas up like I was Wolverine
I don't got a reason, but we still gonna fight
Da ho on crack, but she can suck alright
I don't got a reason, but we still gonna fight
You best be kissin' your future goodnight
I make da hookers suck my raunchy-ass toes
Step into church, machinegun all the rows
My beats tingle in yo ear drums, zero respite
Fans on they knees over da rhymes I recite
Da ho I knocked up forgot her birth control pill
Sippin' on a 40 until I've had my fill
Bitch don't trip, bitch don't play
Take yo glock and jack Old Country Buffet
Joke of the moment for Saturday 13:47:03 PT, November 16.
Engineers Vs Lawyers
Three lawyers and three engineers are traveling by train to a conference. At the station, the three lawyers each buy tickets and watch as the three engineers buy only a single ticket.
"How are three people going to travel on only one ticket?" asked one of the three lawyers.
"Watch and you'll see," answers one of the engineers.
They all board the train. The lawyers take their respective seats but all three engineers cram into a restroom and close the door behind them. Shortly after the train has departed, the conductor comes around collecting tickets. He knocks on the restroom door and says, "Ticket, please." The door opens just a crack and a single arm emerges with a ticket in hand. The conductor takes it and moves on.
The lawyers saw this and agreed it was quite a clever idea. So after the conference, the lawyers decide to copy the engineers on the return trip and save some money. When they get to the station, they buy a single ticket for the return trip. To their astonishment, the engineers don't buy a ticket at all.
"How are you going to travel without a ticket," asks one perplexed lawyer.
"Watch and you'll see," says one of the engineers.
When they board the train, the three lawyers cram into a restroom and the three engineers cram into another one nearby. The train departs. Shortly afterward, one of the engineers leaves his restroom and walks over to the restroom where the lawyers are hiding. He knocks on the door and says, "Ticket, please."
Engineers Vs Lawyers
Three lawyers and three engineers are traveling by train to a conference. At the station, the three lawyers each buy tickets and watch as the three engineers buy only a single ticket.
"How are three people going to travel on only one ticket?" asked one of the three lawyers.
"Watch and you'll see," answers one of the engineers.
They all board the train. The lawyers take their respective seats but all three engineers cram into a restroom and close the door behind them. Shortly after the train has departed, the conductor comes around collecting tickets. He knocks on the restroom door and says, "Ticket, please." The door opens just a crack and a single arm emerges with a ticket in hand. The conductor takes it and moves on.
The lawyers saw this and agreed it was quite a clever idea. So after the conference, the lawyers decide to copy the engineers on the return trip and save some money. When they get to the station, they buy a single ticket for the return trip. To their astonishment, the engineers don't buy a ticket at all.
"How are you going to travel without a ticket," asks one perplexed lawyer.
"Watch and you'll see," says one of the engineers.
When they board the train, the three lawyers cram into a restroom and the three engineers cram into another one nearby. The train departs. Shortly afterward, one of the engineers leaves his restroom and walks over to the restroom where the lawyers are hiding. He knocks on the door and says, "Ticket, please."







is that McVeigh crap!