« first day (653 days earlier)      last day (4521 days later) » 

20:00
10 years have passed since the mortal races banded together...
And stood united against the might of the burning legion.
Don't know where that came from.
Oh god, Pandas.
I thought the pandas were an internal warcraft joke, not an actual part of the lore.
Whaaaat? Never played WC3 or WC2?
The pandas were the best. It's a good ploy on Blizzard's part to try to get fans back into the game. Going to fail miserably, but it's a good try.
Yeah, but still, they seemed a bit... Unwarcrafty.
I'm going to give it a try, just to see how it works out.
I burned myself out on WotLK.
20:03
The Pandaren started as an April Fool's joke, IIRC.
@DomagojPandža half and half until this expansion
Wikipedia agrees with @EtiennedeMartel (en.wikipedia.org/wiki/Pandaren#Pandaren)
I am feeling good today, so I might just push Geometry, a goblin, the mage. Almost lvl 76. Finished (got sick of) writing a programming in Haskell (i46.tinypic.com/qzn89d.jpg), so I'm not spending ALL of my free time on playing games.
@SamDeHaan I see references on the net that they were in WC2, but I'm not sure I believe it. There was only one in warcraft3, and he was minor.
@MooingDuck Yeah, pretty sure that was my memory lying to me.
20:07
@DomagojPandža What about Kyrostat's dev zone, hmm?
@SamDeHaan there's actually a fair number of references to WC2 pandas: "In Warcraft 2 the pandas slaughtered with War Blades and Pikes."
@EtiennedeMartel Oh, damn. Nigga can't catch a break. :Đ
@DomagojPandža Hey, you're the one who started this.
@EtiennedeMartel Hah, I'm kidding, I'll get on it.
@MooingDuck -4 lol :D
20:10
I did a google search for cat plus plus' picture, and it did a search for "funny drivers license". Interesting.
What is this Kyrostat thing some of you keep mentioning?
A starship.
A vagina-shaped starship.
@DomagojPandža Is there a prototype yet? I want to see teh shiny things.
There is a prototype, but I'm a lazy cunt. Soon­™. Although, I'm uncertain whether the team will vote to share it outside since it is just a "get-a-feel-for" internal prototype. Besides, I need to finish the devzone before Etienne kicks my ass with a beer bottle. :Đ
20:16
I don't use beer bottles as weapons. I recycle them.
Using beer bottles as weapons already counts as recycling.
2
@Mysticial easy.
Reduce, Reuse, Recycle
Use the /= operator.
/= operator is not the / operator so it’s allowed.
Reduce the number of beer bottles produced (pff, already failed at that one); Reuse the beer bottles produced (sticking them in @DomagojPandža's face/other anatomy); THEN Recycle
20:17
@RadekSlupik Yeah, there was a comment that had that.
Oh. Dammit. :P
That question made Hacker News today...
Does VS 2010 support auto?
Last time I saw it, the top two answers barely had 30 votes. Then it got bumped today and I was like, "Holy shit... 100+ and 20k views."
@Mysticial I want one of those questions...
20:20
@Drise yes
@Drise Yeah it takes some luck. Though you can't always wait for the opportunity. If you answer a question that you really like, feel free to link it yourself.
This is basic, but I enjoyed writing it.
8
A: Using cin.get(); Twice

Drisecin.get(); retrieves a single character from the input. So if you have 5\n (\n being equivalent to pressing ENTER) on the input, cin.get(); will return 5, and another cin.get(); will return \n. If you are reading multiple numbers one after another, say in a while loop, if you forget about the \n ...

I have a decent eye for spotting questions that might go viral. That divide-by-3 question was a 5/10 on my scale of "could it go viral".
I assume link it means drop it here.
I didn't actually expect that it would.
@Drise No, drop it on Reddit or Hacker News.
20:23
@Drise and use the actual "share" link, which tracks stuff and maybe gives you badges
@Mysticial Oh, right. I don't really follow reddit, and I assume drive by linking is just as much frowned upon there as it is here.
@Drise Drive by linking definitely is bad and will get you banned. So you'll need to have a somewhat active account.
@Drise when I click share on your answer, it gives me this link: stackoverflow.com/a/10656280/845092, note it ends in 845092, which is my userID. If enough people use that link I get stuff.
@Mysticial Definitely don't have one.
@MooingDuck Right.
What could I call my program?
20:25
And where @MooingDuck helped me. Which I appreciate a lot, still.
I love when my coffee gets that white mushy foam on top of it.
5
A: std::map not behaving as expected

DriseAs a solution to my comment above, the C++ version of the code you presented: typedef map<std::string, int> wc; int main() { int c; string cc, nombre; wc m; std::cin >> c; while (c--) { std::cin >> cc; std::getline(std::cin, nombre); ...

Feels so premium.
It's basically a computerised timetable
@DomagojPandža Ew. I hate that.
That one was hard, since it used non-english identifiers.
20:27
map<char*, int> yuck
@Drise it used a spanish identifier. nombre.
@MooingDuck Yea, I got that it was "name" but CC?
@Drise pft, an acronym or temporary. What's i? or std? Those aren't English either. :D
sexually transmitted disease.
@MooingDuck Fair enough. But for (int i = 0;;) is pretty explanatory. std is just something you "know". It's added to my mental language syntax RAM.
-1
A: Divide a number by 3 without using *, /, +, -, % operators

SpudleyIf we're in a language that permits operator overloading, you can do pretty much anything you like without using the standard operators. Doesn't mean you should, but you can.

Btw, what's this BS? Should be a comment, or not at all, imho.
20:31
@Drise we have a flag for that
I have.
I should get my lunch. lunchtime was almost two hours ago
It's funny that they "solve" that issue by bitwise operations which are inherently * and /.
That question and all it's answers are just a tiny bit from going auto-wiki...
way too many answers...
@DomagojPandža there's a massive difference between bitwise operators and * and /
20:33
Futile exercise, but nice to think about.
@MooingDuck * and / as in arithmetic operations, not operators
By the base of a number system.
Hop left, hop right
@DomagojPandža there's many more bitwise operations besides shift. operator^ can be done with arithmetic and ifs and loops, but it would be a long and complicated function.
I know, Duck, but qualifying "futile exercise" with a 5 km message is out of the question for my lazy ass.
@MooingDuck shift is not a bitwise operation. :)
It was just an expression here
@DomagojPandža and even taking just shifts, there's differences. multiplication never gives you UB, but << can.
20:37
Alright, multiplication as a purely mathematical concept which drives the hardware architecture and overlying the instruction set which gives us fun tools like shifts in high level languages by multiplying by the base (and because of the radix pos notation, we get "shifting").
@DomagojPandža Did @DeadMG talk to you about our Qt experiments?
@EtiennedeMartel No, something nice? :D
@MooingDuck 0x10000000 * 0x100
@EtiennedeMartel Qt for Kyrostat?
20:40
Well, turns out, Qt allows the use of a QGLWidget as a viewport for a QGraphicsScene. Which means it's possible to render Qt widgets over an OpenGL viewport.
@EtiennedeMartel Of course!
Damn, it feels good to by idling in a Monday.
@EtiennedeMartel But... Will it blend? Literally, without breaking the blender, ie. performance.
Boss is busy with messy deployments and can't find the time to assign me new tasks. Yay.
@DomagojPandža This would require more experimentation.
20:42
Where is using auto acceptable? And I'm being serious. Don't say everywhere.
It's always acceptable.
@Drise Why not everywhere? Unless the deduction doesn't work for you, it's OK.
But obviously it's especially useful for behemoth expression templates and the like.
@n2liquid Does it not loose clarity?
@DomagojPandža But feature wise, it means we could use Qt for all our UI needs. Which is good, because Qt already handles Unicode rendering quite well.
Everywhere.

I use it for functions, makes them pretty and enables templates to work correctly. Trailing returns win. auto harhar() -> ...whathaveyou...
20:44
@Drise Trying to think of a case in which that could be a problem..
@Drise If it loses clarity, you probably need better naming.
auto packet = new DataPacket;
But whenever you have a "decl-sausage" which retains clarity (as Martinho pointed out), use auto. Saves on typing.
Is this just lazy on my part, or a use for auto?
Ask yourself "Why not?"
20:45
Don't new.
@DomagojPandža What's decl-sausage?
Do you mean something like auto packet = DataPacket();?
I do it for fun sometimes. It doesn't matter.
@LucDanton I did. Habit.
@n2liquid A huge templated type which turns ugly from 0 to 0.5 sec
@MooingDuck From the first sentence in that section: "The bit shifts are sometimes considered bitwise operations, because they operate on the binary representation of an integer instead of its numerical value; however, the bit shifts do not operate on pairs of corresponding bits, and therefore cannot properly be called bit-wise." But I was just being pedantic.
20:46
@DomagojPandža Ah, yeah. 'course.
Ok, so what's the difference between auto packet = DataPacket; and DataPacket packet;
@Drise first one requires copy constructor to exist, but ignores it :(
One's missing parentheses?
Hey. @Drise, I think your question would be pretty good for SO and could generate really useful answers. I'm curious myself.
Well, the technical difference is the copy constructor.
20:47
It often happens when I unconsciously want to match up the alignment in a succession of definitions. auto foo = compute_blarg(); auto bar = compute_blorgl(); auto baz = Baz {};. Since it does look nice, why not?
The missing parentheses are infered.
The ideal language infers everything.
@MooingDuck Move.
@RadekSlupik Like Perl, where the interpreter literally tries to guess you intention in some cases?
@LucDanton oh right, C++11. so is it now always move? or either one has to exist?
20:48
@R.MartinhoFernandes Hey, inferring isn't guessing :)
@R.MartinhoFernandes No, a language where the interpreter knows your intention in all cases.
^ this.
@MooingDuck Either. Also a template constructor can be a better match, too.
If you can move, move.
20:50
If you can copy, copy.
0
Q: What is the difference between auto and using the type-name?

DriseFor example, I have some class DataPacket. What is the difference between: auto packet = DataPacket; and DataPacket packet; ?

@R.MartinhoFernandes I'd say that's neither guessing nor inferring, but that's me.
@Drise It really needs to be DataPacket {} or DataPacket().
@LucDanton Why?
@Drise Hm.. Title seems overly generic.
20:50
@n2liquid I couldn't think of a better one.
@Drise What does auto i = int; mean?
@LucDanton Fair enough.
@LucDanton syntax error.
In all essence, auto has no real weight. It is just the standard and the compiler teaming up to take them decl-wieners out of the programmer's behind, allowing for more concise code and authorizing some more magic with templates.
@Drise "When should I not use auto instead of the type name, for objective reasons?"
Maybe something like that?
Oh, crap.
Balls
We should've known...
Testicles.
13
Q: The new keyword "auto"; When should it be used to declare a variable type?

Loki Astari Possible Duplicate: How much is too much with C++0x auto keyword Have we (as a community) had enough experience to determine when and/or whether auto is being abused? What I am really looking for is a best practices guide on when to use auto when it should be avoided Simple rules ...

20:52
I was afriad, but I had no idea what to look for
There's about half a dozen other dupes.
Sorry, @Drise ))):
I gave the damned idea, lol.
@n2liquid It's ok. I don't mind getting closed a dupe.
Favorite type of a C++ "guru": Fights to prove that declaring and defining are synonims.
Shoot to kill.
Also, I think it's pretty much subjective, except for one rule: don't use auto if the inferred type is not the type you want.
20:54
@DomagojPandža They are..?
But no one seems to be minding so far. I'm just waiting for DeadMG to come and shoot lightning bolts at me or something.
It would only be a dupe if you changed your question to be "When to use auto?" or the like. If you focus on "T t; vs auto t = T {};" then I don't think it's a dupe.
@R.MartinhoFernandes Yeah, that's what I thought, but couldn't word so well.
@Drise Dat DeadMG.
AliveMG
@LucDanton I think that's fair. I'm going with that. Thanks for defending me.
20:55
Defending you against what?
Paranoia much?
@LucDanton Isn't that just the copy/move constructor again?
@R.MartinhoFernandes Providing an argument that supported me.
@R.MartinhoFernandes No, just DeadMG scares me still. There's a reason I'm not plinking him.
@n2liquid With elision the difference may only be that the relevant constructor be accessible.
Nice starboard:
50 mins ago, by Domagoj Pandža
@EtiennedeMartel Oh, damn. Nigga can't catch a break. :Đ
41 mins ago, by Mysticial
Using beer bottles as weapons already counts as recycling.
4 mins ago, by Domagoj Pandža
Shoot to kill.
@LucDanton Yeah.
20:58
Default vs value initialization as well is a big one.
@RadekSlupik Good point on the 03 compatibility, but if I'm using auto, I'm likely using it for some iterator in a for loop..

« first day (653 days earlier)      last day (4521 days later) »