« first day (702 days earlier)      last day (4250 days later) » 

user784668
6:00 PM
4.7.0 here, works fine.
 
All software is broken.
 
@Xeo GCC, silly.
 
Xeo
Möp
 
@DeadMG The compilers got smarter on me when I wasn't looking and I'm not just talking C++11. I vaguely remember trying that same question two years ago and getting a different answer. So, I replaced my answer with actually testing it.
 
Still have to rebuild Clang to point to the right system headers?
It finds the 4.6 libstdc++ headers.
 
Xeo
6:02 PM
The libstdc++ headers are always found
 
@JonathanSeng The answer has been the same since C++98
 
Xeo
It's the libc++ header locations that need to be explicitly set IIRC, dunno if that changed yet
 
@DeadMG The answer, but not the compilers. So I was remembering a bug.
 
@Xeo How is that done? Can I coopt it for my purposes?
 
-stdlib=libc++ for the linking shit and clang always picks the libc++ headers for me.
 
Xeo
6:03 PM
src/Clang/Driver/StartHeaderSearch.hpp or something
 
@JonathanSeng Right. But I'm pretty sure that their behaviour hasn't changed in this regard. All that's happened is that copy ellision has come about.
 
user784668
Okay, I'm off. See you folks.
 
My build script does sed -i "s|/usr/local/include|/usr/include/c++/$_gcc_ver|g" tools/clang/lib/Frontend/InitHeaderSearch.cpp for that.
 
@DeadMG And I don't think, conceptually, its right. If you use an operator=(), you're asking for operator=() (or making a mistake). And while operator=() shouldn't be different, you might have a reason.
 
Replacing $_gcc_ver with v1 gives me libc++ by default, it seems. But it probably breaks something.
 
6:05 PM
@JonathanSeng No, that's dumb.
 
Xeo
libc++ resides in a v1 folder
 
there's no way that T t = x; is not a construction.
so there's no point in invoking the assignment operator
 
@DeadMG It's dumb to expect an operator I explicitly asked for to be used?
 
@JonathanSeng Well, yes.
 
If it invoked the assignment operator, there would be no way to write such operator in a way that it works.
 
6:06 PM
T t = x doesn't ask for operator=. It asks to construct t from x.
 
Xeo
@JonathanSeng Operators only exist for constructed objects, not for construction of an object.
It's an unfortunate syntactical mishap, but whatever
 
@Xeo "T t" is a definition.
 
I really hate it when my good answers get ignored. arghh
 
Xeo
@JonathanSeng So?
 
6:08 PM
Alright, pre-ordered Borderlands 2.
 
@Xeo I think its very unfortunate. Its done as a nice convenience -- but, it takes concept that = calls operator=() and makes it very complex.
But, it is what it is.
 
@EtiennedeMartel: Its out tomorrow isnt it?
 
@Borgleader Yep. Now's your last chance to get your pre-order bonuses.
 
I pre-ordered mine weeks ago. The chest edition -.-;
 
San Marino 1st declared peace with Germany, who they've been at war with for 25 yrs (France forgot to invite them to sign Versailles Treaty)
lol, how the fuck do you forget something like that?
 
6:11 PM
@R.MartinhoFernandes I love how the syntax highlighting works well with it.
 
@R.MartinhoFernandes It's the world's smallest Republic with only ~60km^2 area
 
It's the same old story. Adding paths at those "// FIXME: temporary hack: hard-coded paths." spots seems to have no effect.
 
Can't help you there, sorry. I get my build scripts from the repo and only tweak them when I need... the build to break, it seems.
 
> If your configuration fits neither of these scenarios, you can use the --with-gcc-toolchain configure option to tell Clang where the gcc containing the desired libstdc++ is installed.
This is new to me, giving it a try.
 
@EtiennedeMartel I was thinking of getting it but tbh it seems very much like the first one
 
6:21 PM
@netcoder That's the whole point.
 
@EtiennedeMartel: I don't really want to spend 60$+ on a game I already own, just to have different maps and characters
 
@netcoder Well, I'm probably going to spend at least 30 hours playing this, so it's 2$/hour, which is a pretty good deal in my book.
 
Doing that kind of math, Skyrim was dead cheap.
 
Following that logic, GW2 was dirt cheap, and it's only been out for 3 weeks
 
Actually, it's the most accurate way to evaluate a game's quality. Take how much it costs, divide it by the amount of time you're going to play. The lower the result, the better the game.
 
6:24 PM
I spent 60+ hours on it so far
 
Skyrim was cheap for me. 0$/hr
;)
 
@R.MartinhoFernandes: yeah, a lot
 
Best thing is that it varries immensely between two players.
 
@EtiennedeMartel That ignores other important factors, like density of fun.
 
Because a game one might find exciting might become boring very quickly for someone else.
@R.MartinhoFernandes Well, I don't know about you, but if a game becomes boring, I stop playing it.
 
6:25 PM
Is 214 hrs in a game in five months abnormal?
 
the funniest about Skyrim when one of my friends that goes "I'm still finishing the side quests before I attack the main story" and was complaining about having way too many side quests, then I told him about Radiant Story; the look on his face was priceless
 
thats a little over one hour a day thats not so bad
 
@EtiennedeMartel It doesn't have to become boring, but fun is not distributed uniformly across any game.
 
Equivalent to one workweek a month though lol
 
I don't see your point :P
 
6:26 PM
Well, I guess so. At least it's not as bad as my 4000 hours over 9 years.
 
@R.MartinhoFernandes That's a good point. You're being very serious about fun.
 
room topic changed to Lounge<C++>: Fun is serious business. [c++] [c++11] [c++-faq] [i-removed-your-tag]
 
@R.MartinhoFernandes Yeah, come to think of it, it might be too simple of a metric. But I still think it gives a very rough idea of how fun a game is.
 
Also has to do with addictiveness though
And lack of employment
I know this lady that has 9000+ hours in WoW, lives off welfare, etc
 
I have lots of hours on Skyrim, but I haven't made much progress. I have this stupid obsession with not using fast travel.
 
6:29 PM
@jornak: yes, because without a job, a game is more fun that when you're employed...
what kind of logic is that?
 
Did any of you upvote my latest answer? Just wondering if it was found on it's own...
 
@netcoder I mean time-wise.
@netcoder And even then, getting to play over long periods of time may get to be boring quick.
 
@jornak: well not really, employed or not, if you spend 30 hours on a game, it's still 30 hours spent on the game
 
@netcoder I'd bet you someone that spends 8 hours a day playing a game will get bored of it in less total in-game time than someone who can only get 1-2hrs a day.
 
Actually, I think I enjoy my games more when I'm either at work or at school most of the time. If all I have to do is game I don't enjoy it as much
 
6:33 PM
@Borgleader Exactly, when I was out of work, I was gaming because I had nothing to do; now, gaming's an escape from work. I'd label that time spent now significantly more entertaining.
 
@jornak On the surface, that just sounds like someone who shouldn't be. Surface and reality are two different things. Give that statement of yours to a member of the media or a politician and watch the flames.
 
Alright, that configure option works. I can get Hello World to compile and run. I did notice a compiler crash when including some of my stuff. Will probably investigate tomorrow.
 
@JonathanSeng Wait what? Can you elaborate on that a bit more?
 
@jornak You put two interesting pieces of information together that, by themselves imply something that would get a strong reaction. Not a complaint, just an observation of it as a "sound byte." In the hands of a politician or person in the media, that particular "sound byte" would get lots and lots of outrage, headlines, and even likely attempts at passing a law. But, the interesting thing is that those two facts in the "sound byte" may be totally unrelated.
 
@JonathanSeng I would guess that maybe somebody on welfare who can play WoW might also be able to hold down a job. Assuming that the person doesn't have some sort of mental illness such as agoraphobia.
 
6:46 PM
@JonathanSeng Would it surprise you that I have a partial background in politics, then? :P
 
Political correctness being what it is though indicates that one should never dare say someone on welfare should be able to work.
 
our leaders have been doing just that
 
@Chimera I guess I have to be more specific then, in saying that a) The lady I was referring to was more than able to work, and b) she does not want to work
 
Let's face it, who wants to work.
-3
Q: When should I use classes in C++?

username_4567When should we use classes while programming? I know it depends on application requirements but still what is recommended practice? I saw google style of C++ coding but they don't say anything about such standards.

 
@jornak Not really. I wouldn't be surprised to see the statement without the "I know this" as a headline on the news. But, anybody can say that.
 
6:48 PM
@Chimera Not withstanding that welfare is a poor system within itself
 
@jornak Yeah, I was making the point that the lady appears to be able to work if she can sit and play WoW.
 
@R.MartinhoFernandes: I interned at a video game company and I'll be honest with you when it was over I was sad because working there was actually really fun.
 
@R.MartinhoFernandes I actually worked at a gas station when I was younger; I sort of miss it.
 
@R.MartinhoFernandes Does anyone know a question/answer site for which this would be considered an appropriate question? They clearly are trying to learn something.
 
@jornak Nothing like the smell of gasoline fumes in the morning!
 
6:50 PM
@Chimera And thats why that was a great sound byte. That was my first thought too ;-)
 
@JonathanSeng: A book on OOP would be a better starting point
 
@Chimera Actually I'm quite fond of the smell of diesel.
 
@Borgleader was actually really fun. So, you were there for the fun :P
 
@Borgleader Did they treat and pay the employees there well? Game shops have a notorious rep for doing neither because the lines to get a job are long.
 
@jornak I like it also..
 
6:51 PM
I was going to answer something about bundling data and related operations on such data but I figured it was too vague and didnt post it.
 
@Borgleader A teacher would be a better starting point given the question. And SO isn't a resource to apply teachers. Which is fine.
 
@R.MartinhoFernandes: That and it was intellectually challenging.
@JonathanSeng: They did treat us quite well.
 
@Borgleader The interns or all of the employees?
 
Everyone
 
Nice to know.
 
6:54 PM
Hello.
 
@Rapptz Howdy.
 
Hello @Rapptz
 
How are you guys today?
 
good good
u?
 
I'm okay. I didn't sleep last night but I just got off work
 
6:58 PM
Don't you just love those nights?
 
sbi
> I am not in favour of the death penalty, but people who stand bewildered immediately after they get off escalators sure try my integrity. — Pope Shakey
 
People who block the doorway make me mad.
 
so
now that employers can actually contact me, I should apply for some jobz'n'shit
 
@DeadMG Well, you have a better chance of getting a job without applying than winning the lottery, I'd personally suggest you avoid the "n'shit" in "jobz'n'shit."
 
well I don't think you can apply for shit
it doesn't tend to respond when you ask it for an interview
 
7:02 PM
@DeadMG Just ask for it. I'm sure the room will happily give you some.
 
This is probably stupid, but what is programmers.SE for? I read their FAQ and some of the things they can ask sound like you can ask them in SO.
 
Jeff Atwood on December 16, 2010

One of the more popular Stack Exchange beta sites just came out of beta with a final public design:

Now watch closely as I read your mind.

I’m so glad you asked!

In a nutshell, Stack Overflow is for when you’re front of your compiler or editor working through code issues. Programmers is for when you’re in front of a whiteboard working through higher level conceptual programming issues. Hence the (awesome) whiteboard inspired design!

Stated another way, Stack Overflow questions almost all have actual source code in the questions or answers. It’s much rarer (though certainly OK) for a Programmers question to contain source code. …

I was typing programmers.s and it autocompleted to programmers.stackexchange vs stackoverflow
xD
 
@Rapptz Programmers allows for more subjective stuff.
 
@JonathanSeng Funny story, I didn't apply for my current job. I worked as a consultant for them a year before they hired me. They called me out of the blue and asked if I was looking for work.
 
@EtiennedeMartel Yeah, I see that.
 
7:11 PM
@jornak You made enough of a good impression to be remembered. Good job.
 
After finding out I tried searching for popular coding style questions like braces, tabs vs spaces but they're all evened out. I feel cheated :(
 
@JonathanSeng And this isn't just some random place; I have to wear a suit everyday, even D:
 
Tabs did win over spaces though.
 
@jornak Well, that gets a down vote ;-)
 
@JonathanSeng Eh, I really don't mind it anymore, I look all snazzy
 
7:13 PM
You guys need to change your gravatar. Both blue, both start with jo. Hard to know who is who from a glance.
 
@JonathanSeng There's something about a 6'5" bald, goateed guy in sunglasses and a fullblown suit that just looks intimidating
 
@Rapptz It's DeadMG all over again.
 
@Rapptz I would change my gravatar but Gravatar doesn't like anonymized mailing services
 
@jornak Well, I can see that.
 
@JonathanSeng I probably look like a hitman, I'd imagine
 
7:15 PM
There should be a randomize gravatar button.
 
@Rapptz I reject the requirement to create Yet Another Silly Account on the internet. Sorry. Infact, down vote to SO for requiring me to have something requiring an additional account.
 
Lazy SO can't use regular avatar management
 
I use OpenID, so I have no idea what you're talking about.
 
meh
now I'm on BT Open wifi network
 
@Rapptz I clicked on "change picture" and it sent me to create an account on gravatar.com
 
7:17 PM
cause my fucking shitty service provider needs so much damn time to get their shit sorted
 
@jornak Dud I'm a giraffe, what's your gaffe?
 
@JonathanSeng I'm surprised you don't have a Gravatar considering how many sites use it.
 
@jornak = they’re smart, they outsource shit that’s already solved well.
 
@Rapptz I find there's not enough OpenID implementation out there to make it useful.
 
@Rapptz I had never heard of it.
 
7:18 PM
@JonathanSeng GitHub.. BitBucket, WordPress?
@jornak Well if the option is there then I use it. Otherwise I make a generic account and keep it on my password manager.
 
@Rapptz Password managers... -shudders-
 
@jornak Your own OpenID server perchance?
 
@KonradRudolph is that you on the pic?
 
@CaptainGiraffe No, eidetic memory.
 
@jornak So you don’t like OpenID, you don’t like password managers … the alternatives grow slim
@bamboon yes
 
7:20 PM
@KonradRudolph wow, dude you have changed
 
@CaptainGiraffe Or at least near-eidetic memory.
 
@jornak for cryptographic keys? Phenomenon or The sixth sense?
 
@bamboon not that much actually. It’s surprising how much of a difference a shave and a haircut makes
 
@CaptainGiraffe Yeah, I have telekinetic powers. Wat.
 
@jornak Neat, move my beer glass closer!
 
7:22 PM
@jornak I have an eidetic memory too, but I use password managers to make my passwords long (64-120+ characters) and different between each site so I don't get screwed over when one gets hacked and the domino effect takes over.
 
@KonradRudolph Two bits, according to popular culture.
@Rapptz That sort of password entropy is overkill.
 
You get used to it. Plus all I have to do is press "Ctrl + Alt + Z" and it'd automatically type out the username, tab and password for me.
 
My longest password is ~40 characters.
 
Or you just reconcile to the fact google knows everything_oldman_matilda.gif and are use your google open_id.
 
@KonradRudolph definitely. you thought it was time for a change or what drove you to that radical change?
 
7:25 PM
@Rapptz Although I suppose not everyone can memorize around 30 different 20-40 character passwords.
 
/me finishes reading about gravatar.
 
Mind you as my mind ages I'll probably need to resort to password managers, haha.
 
Maybe google doesn't know everything, but is sure knows youtube.com/watch?v=74BzSTQCl_c
 
Well, that account gives me a login on wordpress.com, so, no proliferation of accounts please.
 
Don't onebox gifs
 
7:29 PM
Crap that's disturbing
 
1 message moved to bin
Sorry, we do have a policy against animated gifs.
Just leave a link. But don't onebox it.
 
@Mysticial Thank you. Thank you. Thank you. That was very distrubing.
 
I edited it out after the fact, sorry.
 
@jornak hmm, is that a reference? Didn’t get it unfortunately :/
 
"It’s surprising how much of a difference a shave and a haircut makes"

Shave and a haircut, two bits.
 
7:30 PM
hai
 
@bamboon Actually, I’ve looked more or less like this for years. The other profile picture was rather old. I am just too lazy to get hair cuts often enough, so I get back to the “wild” state every few months before I decide that enough is enough
 
@JonathanSeng Mystical is a very guy, and doesn't afraid of anything
 
and every single time I promise myself that now it’s enough and I’ll shave daily. Never do.
 
@KonradRudolph I like my 3 -6 day beard.
Never ever liked my 1-2 day beard though
 
I got a two week beard.
 
7:32 PM
@EtiennedeMartel Getting soft?
 
@CaptainGiraffe Truth he is never fear.
 
0
Q: How do I spilt a string in JavaScript by using a WORD as a delimiter?

Matthew Patrick CashattThanks for looking! Using JavaScript, how do I split a string using a whole word as the delimiter? Example: var myString = "Apples foo Bananas foo Grapes foo Oranges"; var myArray = myString.split(" foo "); //myArray now equals ["Apples","Bananas","Grapes","Oranges"]. Thanks in advance. UP...

 
I shave my face and head every single day, except for the goatee
Otherwise I get headstubble
shit's itchy
 
@jornak Time?
 
I haven’t even got a proper shaver now, since my last one (electric, Braun) broke
I use a trimmer
 
7:34 PM
I use an electric to trim it down then finish off with a razor.
 
@CaptainGiraffe I like my beard.
 
@CaptainGiraffe Actually, I use a womens razor because it's quicker and smoother than regular razors... about 4-5 minutes.
 
I rarely shave though.
 
@Rapptz That kind of silly goes to the [close] or trash
@jornak Still hooked on Gilettes that stuff costs money
 
@CaptainGiraffe There's nothing wrong with it.
 
7:36 PM
@Rapptz Q: split on a pattern? ok.
 
@CaptainGiraffe Not having to use shaving cream saves time
 
@Rapptz Well, you will all be cursed with the generation by gravatar from my IP address since I really don't intend to open Yet Another Internet Account because Gravatar wants me too. I almost did until it included wordpress.com too, which I didn't want an account for, too.
 
@CaptainGiraffe It's constructive, not a duplicate or localized. He just happened to answer his own question.
 
@jornak Soap has been the Shaving Cream of my life.
 
@CaptainGiraffe I guess I just have womanly skin then XD
 
7:37 PM
@Rapptz Ok, I apologize for bashing. Let me visit it.
@JonathanSeng Now it is even worse. The edit left no useful information.
 
@JonathanSeng Gravatar is owned by WordPress. I get what you mean though, it can be frustrating to register for a lot of accounts.
 
@Rapptz It is. Because they'll show up hacked and such. Even if the password is unique, there are still other issues...
Forget about nuclear non-proliferation... I want account non-proliferation.
 
The old concepts of freedom was in a world where you actually had some expectation of privacy. I try to adhere to these old concepts with my tech knowhow and not signing up to the social network stuff. Still I'm a target in all that data.
What is the new privacy/individualism struggles ahead?
The privacy one is dead and gone.
 
@CaptainGiraffe I'll give you my privacy when you take it from my cold, dead hands.
 
So you admit to having hands. Logged for future use!
 
7:50 PM
@LucDanton I admit to re-using a popularized slogan that was, itself, re-used from the original saying.
 
Hello everyone!
 
Who are you people?
Where's all the people I normally chat with?
 
Yeah, so many newcomers.
 
oh there's one
hi
 
I've been here before :(
 
7:52 PM
what's new in Canada?
@Rapptz Yes, you're a familiar face
 
A senator compared the current pro-abortion law to Nazi Germany policies.
 
That's how I feel while moderating hiveworkshop.com. Newcomers popping up in the Chat all the time.
 
@EtiennedeMartel Godwin's law
 
sbi
@TonyTheLion Raises hand.
 
@TonyTheLion New Brunswick, Newfoundland
 
7:53 PM
@sbi hi. I know you! :)
 
sbi
@TonyTheLion You bet.
 
@EtiennedeMartel Is it as bad as our republicans trying to do everything to stop abortions?
 
@jornak ohhh sounds like an interesting country
@sbi how was your day?
 
Ell
herro
 
sbi
7:54 PM
@TonyTheLion Well, it was a day. It's over now. I'm not unhappy about that latter part.
 
yea, same here
 
@Rapptz Not really. But still, Canadian conservatives are dumb.
 
Is Canada mostly libertarian?
 
pfffff
waiting for my food to arrive
 
@EtiennedeMartel Can we just settle with: almost all politicians are dumb?
 
sbi
7:55 PM
@Rapptz Isn't Canandada mostly empty?
 
No.
All of them are dumb
 
>“It’s 73 years ago today that Canada declared war on another tyrant... The people of Nazi Germany didn’t know what was going on, and over my time here I find it hard to believe how hard it is to find out what’s going on and how easy it is for the government to hide things,” McDonell said in the Ontario Legislature Monday.
 
@Rapptz Depends on the province. But not really.
 
@sbi Yep. The state of California has more people than the country of Canada, iirc.
 
7:56 PM
@Rapptz That is correct
 
30 million people, in the world's second largest territory, after Russia.
 
@Rapptz And then there's California: leading the way in, well, screwing itself up.
 
you're right, Cali has 37mil and Canada only 34mil
@EtiennedeMartel a tenth of the entire US population
 
Funny story, recently, I've been struggling to do some h4x0ring so I can get a FILE* with a specific buffer. My initial approach was writing to the disk and reading that as a file. I sought to find another approach that's much faster. Unfortunately, after over 24 hours of searching and testing, I ended up doing the same thing that I was initially doing. 1.5 days of programming down the drain.
 
Are you doing C or C++?
 
7:58 PM
An obscure combination of both, but mostly C++. I do file I/O in C because I like it more.
 
sbi
> If you want to stop being angry about politicians read this: hup.harvard.edu/catalog.php?isbn=9780674659216 …. It puts the smile back into your face when you hear them. — sbi (The reason is that politics is one of the fields our behavioral ancestry shows most.)
 
C-style*
 
@sbi lol
 
@sbi Oh, screw that. Let's just go with presidential-delegate death matches.
Seriously, back in the day, delegating the death-match to Arnold would have terrified any country into behaving.
Or golf.
 
Ell
tug of war!
 
sbi
8:02 PM
@JonathanSeng No, really, I am totally earnest. That is a very good book (just as the dozen others he wrote later), and it puts it all into perspective. When you read about how chimpanzees make politics, make "friends" of those who can benefit them raising in the hierarchy, unfriend others who cannot, how two of them might conspire to overthrow the leader, how the new leader has then to give leeway to his conspirator, because he's leader only as long as the other conspires... — pure human politics.
@JonathanSeng Yeah, and then Arnie went into politics and this stupid little scheme got wrecked. Now what?
 
@sbi I know the topic is serious, actually. A friend of mine keeps talking about that concept and a simpler version: meerkat manor.
@sbi Kung fu panda? Yeah, well, I used to say presidential death-match -- which is actually quite primate, but then you'd be electing the strongest knucklehead president and things would get worse.
 
sbi
@JonathanSeng That book actually compares the behavior of apes and monkeys, and the conclusion I got from it is that only the great apes (and of those mainly chimps and bonobos, as we know too little about gorillas, and Orangutans are mostly solitary) are really close to us. (Though even a horde of baboons has a much more complex social structure than any dog will ever be able to grasp.)
@JonathanSeng Years ago, someone on the alt.fan.pratchett newsgroup said that all politicians need to be roasted and put onto the table with an apple in their snout, because the only way they are able to positively contribute to the society is by (directly) feeding the people. To which someone else answered: "Waste of a good apple." I find that a pretty exhaustive summation of the situation.
 
@sbi True, true, true. We need leadership, but people won't rise very often to it -- they just game it for wht they want.
 
I want to get into parliament in Canada. Guaranteed pension... mmm....
 
@jornak In the US, state legislators get very few benefits -- they often have to hold a "real" job. And, of course, they don't like that.
 
Ell
8:17 PM
autocracy ftw!
 
@Magtheridon96 that's a shame
 
sbi
The problem with self-nomination is that to lend power to those who would nominate themselves is rarely ever in the interest of the public.
I said that when we were asked to nominate ourselves for SO moderation.
 
@sbi Nice.
 
@sbi asked by who?
 
sbi
@netcoder By a narrow banner at the top of the site.
 
8:27 PM
@sbi I once formulated a slightly different theory: when we elect people to office, it's mostly about getting assholes away from us. If they're mildly annoying, they get a city office where they can waste some money, but at least they don't annoy us constantly. The most annoying we elect to national offices. That costs us a lot more money, but gets them enough farther away that it may still be worth what it costs.
 
waste of a good apple is winner response
 
@sbi You know what disturbs me here? No one has said anything about cannibalism -- as though it were defatcto truth that the difference between hog and politician is the spices applied.
 
"With a sudden flick, quick as lightning, an apple left his hand and hit Bill square on the nose. He ducked too late, and curses came from behind the hedge. 'Waste of a good apple,' said Sam regretfully, and strode on"
- J.R.R. Tolkien, 'The Lord of the Rings', Book I, CH. 11, 'A Knife in the Dark'
 
sbi
@JerryCoffin That sounds like a very American POV. As if there's an "us here in the country" vs. "them in Washington." Seems strange to me to put those that are most annoying into the position where they can wreak the most havoc.
 
@DeadMG It is a good line, no doubt about that. Probably wrong though. I suspect most politicians would actually be pretty tender and juicy. The biggest problem I'd foresee is that the fat might not be properly marbled with the meat.
 
8:30 PM
1
Q: Why isn't std::vector::erase overloaded to take integer indexes?

Matt Phillipsstd::vector::erase will accept either a single iterator denoting the position of the element to be erased, or two iterators denoting a range. But you can't do this: std::vector<int> vec = { 1, 2, 3 }; vec.erase(1); Rather you have to do something like vec.erase( vec.begin()+1 ); This...

 
@jornak I prefer literary quotes from books worth reading
 
sbi
@jornak Ah, I remember that one! Thanks for digging it out!
 
That is a bad question
 
Ell
"Syntactic sugar can lead to cancer of the semicolon." hmm haven't decided if I like this or not (not that I'd point it out - "if you don't like it don't read it" and all)
 
Its asking why the C++ standard is the way it is, not what does the standard mean.
 
8:32 PM
@JonathanSeng "Because Dennis Ritchie hated you, even before you were born."
 
@jornak I have no doubt that was true. But, what's your point?
 
@sbi It probably is. Point to keep in mind, however, is that most of those positions really aren't in a position to do all that much havoc. The president, in particular, has relatively little in the way of real power. With a solid majority of voters, he has influence, but without that majority he has little of anything.
 
@JonathanSeng I was posing that as a potential troll answer to the above posted Q.
 
@jornak Nay, I doubt Dennis Ritchie would care about this person.
 
@JonathanSeng Which is why it would be a troll answer.
 
8:35 PM
@jornak Hmmm....
 
@JonathanSeng But those sort of things don't roll over here like they do elsewhere.
 
@jornak What does Dennis Ritchie have to do with C++? (aside that it's based on C)
 
@netcoder Would you rather I have said Bjarne Stroustrup?
 
yeah... I don't think that DMR had jack shit to do with the overloads of vector::erase
 
@jornak: of course, I don't even get why you'd mention Ritchie in a Q about the C++ standard
 
8:39 PM
@netcoder Just be thankful I didn't say James Gosling.
 
you just did, and I'm not thankful for that
blasphemy
 
If I say it two more times will he magically appear?
 
@jornak A base libel. I can't find much indication that DMR actually hated much of anybody.
 
@jornak maybe, but he'd be instantly garbage collected :P
 
@JerryCoffin Who knows, he's taken that information to the grave now.
 
Ell
8:43 PM
whats up with James Gosling?
 
@Ell: I don't know, ask him, not me
 
@Ell He's like the Gabe Newell of programming ;)
@Ell Just like RMS is the Gabe Newell of open source.
 
user406009
Dr. James A. Gosling, OC (born May 19, 1955 near Calgary, Alberta, Canada) is a computer scientist, best known as the father of the Java programming language. Education and career In 1977, Gosling received a B.Sc in Computer Science from the University of Calgary. In 1983, he earned a Ph.D in Computer Science from Carnegie Mellon University, and his doctoral thesis was titled "Algebraic Constraints". His thesis advisor was Bob Sproull. While working towards his doctorate, he wrote a version of Emacs (gosmacs), and before joining Sun Microsystems he built a multi-processor version of Unix...
 
user406009
"best known as the father of the Java programming language."
 
Ell
@jornak Ahh makes sense now
 
8:46 PM
user image
2
My current mousepad on my workstation
 
@jornak that's disrespectful to gabe newell
 
Gabe is watching you.
 
@netcoder How so? <_<
I'm honestly quite more "well-versed" in Java than I am in C++ :P
 
Gosling created Java, Newell created Valve; only one of these brought some good to the world
Hint: it wasn't Java
 
user406009
Java is actually pretty decent.
 
8:48 PM
@netcoder Can't be the first one.
 
Ell
java did bring good into the world!
 
@EthanSteinberg I really don't see what everyone has against Java.
 
mind you, you're in Lounge<C++>
 
Ell
@jornak Nor do I, but the c++ folk love to hate it
 
it's probably one of the worst place in the world to praise Java
 
8:50 PM
Java is the worst language ever designed
I do
 
@netcoder, ##C++ on freenode is worse for that.
 
@jornak The lack of destructor, for one. Yes, there are hacks they've built into the language that ease the problem. But, fundamentally, they didn't believe people could program worth a damn, so they stripped it down and made it hard for the programmers and them in their maintaining of Java.
 
@Griwes: one of the worst ;-)
 
in Java, there's no "Right tool for the right job", you only have one tool, it sucks for MANY kinds of job, and you've got fuck all choice about how to code.
2
 
And I am appreciative at having been informed of the latest of those hacks.
 
8:51 PM
@netcoder, yeah, I noticed that word :P
 
you code X way because James Gosling said so, and if you need some other way, then fuck you
 
@DeadMG The same could be said for some C++ standards though
 
@DeadMG I think that applies more to C++ than Java.
 
@DeadMG probably the best description I heard of Java in a while, if not the best
 
There's quite a few things that attempting to do in C++ is a pretty big "fuck you".
 
8:53 PM
@Mysticial C++ sucks for a bunch of difference reasons than Java. The problem is that Java invented a whole new level of problems rather than work to solve the problems with C++.
 
@jornak Right. But it's not part of the language. It might be part of some idiots (read: Google) who don't know WTF to do or have crippling C legacy codebase
@Mysticial C++ is far more flexible than Java. You can do automatically-managed inheritance pointless-pattern-overload orgasm in C++ if you want to.
 
@JonathanSeng Yes, Java has more than a handful of its own problems.
 
@Mysticial I can't really agree. One of C++'s biggest problems is, if anything, including too many options, not too few (e.g., being able to use default arguments, overloading, or sometimes even specialization, all to accomplish the same things).
 
@JerryCoffin I was mainly referring to library support for basic tasks. Right now you'd have to rely heavily on Boost or other non-standard libraries.
 
STAR EVERYTHING
 
8:55 PM
@TonyTheLion I was going to say that hehe
 
user406009
Java does have a couple cool features though. Inner classes are quite useful, especially when considering the loads of boiler plate needed for the C++ equivalent.
 
too late :P
 
@EthanSteinberg Built-in thread sync
 
My main dislike for Java is that it's slow and that everything is forced into a mess of objects.
 
@EthanSteinberg And the world would have been better served at pursuing supporting these in C++ rather than proliferating another language that is not any "better".
 
8:56 PM
@Mysticial It's easier to write or include a library than to re-write the language.
 
@JonathanSeng Java + JNI + C++ = There, now be quiet <_<
 
@Mysticial I could care less that its "slower." That's just part of "Good tool for a good job."
@jornak Bologna. Another hack around their initial failures.
 
@Mysticial Well, there you run into a rather different problem: those limitations in C++ are mostly due to too few people with too much to do. If a problem is even partly solved already, there have to be major problems before anybody's going to look at it again.
 
@JonathanSeng It may be a hack, but you've got the best of both worlds, then
 
@EthanSteinberg I've never seen any justified use of Java's inner classes.
 
8:58 PM
@DeadMG I have -- but it was basically a hack that would have been far better fixed with lambdas.
 
@jornak Actually, splitting development into two different languages is expensive, so you've lost most of your gains.
 
I do more consulting work in Java than in C++ (shame really), and what I hate the most is probably generics, they're like half-useful: useful but not quite
 
I doubt I would ever choose C++ for real work again. But, if that's what the customer chose, then that's what I do.
 

« first day (702 days earlier)      last day (4250 days later) »