« first day (896 days earlier)      last day (4053 days later) » 

12:00 AM
@rubenvb you have too much time. Just type [SO] instead?
 
wtf...
 
Which do you find more readable: ICMPSession, IcmpSession or icmp_session?
 
The first.
 
ICMPSession
 
12:03 AM
first
 
I typically use that.
I greatly dislike the IcmpSession style. But it does seem a little more readable.
 
first or third, never the second one!
 
user142019
834
A: Why is char[] preferred over String for passwords?

Jon SkeetStrings are immutable. That means once you've created the string, if another process can dump memory, there's no way (aside from reflection) you can get rid of the data before GC kicks in. With an array, you can explicitly wipe the data after you're done with it: you can overwrite the array with...

 
user142019
This would apply to .NET as well, right?
 
Would you pick ICMP or ICMPProtocol? I'm currently using ICMPProtocol because it pairs nicely with ICMPSession.
 
12:06 AM
@Zoidberg Yes.
 
what does it... do?
 
ICMP
 
user142019
@StackedCrooked depends, in what context?
 
user142019
As a class name? ICMP
 
@Zoidberg class name.
 
12:07 AM
but but my daughter.
oh wait
she's asleep
 
@Zoidberg stop time-travelling
 
user142019
230 yesterday
 
user142019
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
 
user142019
Hit rep cap exactly! :)
 
@sehe You have larvae children?
 
12:08 AM
Oh shaddap i gave you 2 upvotes so you would quit whinning
 
@Cicada yup, no news, really
 
oh my
 
why?
 
just being curious
 
user142019
sehe has fifty children.
 
12:09 AM
wokay. I'm surprised you didn't know
 
sorry :(
how old?
 
I abandoned 48? I only remember so few of them then
@Cicada 5-7
 
Oh nice :)
 
user142019
I charge fifty dollars per hour, with a minimum of three hours. When can I start? — Zoidberg 6 secs ago
 
@Cicada mostly :)
 
user142019
12:11 AM
@sehe -2? That's very young.
 
hehe I knew it
 
user142019
Me too.
 
maaaan
 
user142019
zoon
 
1:11am, I'm going to sleep. Rehearsal early tomorrow...
 
user142019
12:12 AM
Wat ga je morgen doen?
 
user142019
Het is fucking weekend.
 
Don't fall asleep now
that would be a waste of time
Repeteren, dus
En brillen kopen voor zoonlief. En de frituurpan terugbrengen naar de Media markt, misschien (grom)
 
Anyone here know why you can teach a student how to add things in a for loop, then you teach them about vectors, and you try and teach them to combine the two concepts, and they seem to forget about both of them?
 

Name

Yes.
Apparently, this is a thing.
 
Obviously
@IDWMaster Perhaps you're not clear on what the goal is? (.... :))
 
12:15 AM
@sehe The goal is to write a method that iterates through an array and adds up all of the items in the array, and returns the sum
 
I can see the Nintendo hardware hate bandwagon but that's just a dick move :|
 
@IDWMaster So, the goal is to calculate the sum of all the elements in the vector. Not to iterate :)
 
@sehe Ahh, so it was maybe that I used the term iterate which confused them. I was teaching them to go through a vector using vector[i] instead of iterators. Iterators are supposed to be covered in a later course.
 
user142019
I'm still getting error C2440: 'type cast' : cannot convert from 'const std::pair<_Ty1,_Ty2>' to 'size_t' 1> with 1> [ 1> _Ty1=Gdiplus::Color, 1> _Ty2=float 1> ] — Michael Afonso 56 secs ago
 
user142019
Anyone got an idea?
 
12:20 AM
I think emplace is buggy in GCC and MSVC
hmm
 
First week on the job :)
Any advice for teaching?
 
@IDWMaster: It's about defining only the goal. If you add "that iterates through an array" you are already confusing them. Also, if it's a vector, don't call it array. Be short and precise. Just as sehe said: "Write a method to calculate the sum of all the elements in the vector". @sehe: Nice!
@IDWMaster: Patience is a virtue.
 
Anything else?
Some of my colleagues have also been using YouTube videos instead of PowerPoint slides for their lectures. I was wondering if that is a more effective method? Any opinions on that?
 
Use them if they serve a purpose and remember to entertain - everyone hates dull teaching.
 
Also; any advice for students coming from Java courses into C++? How should they be introduced to pointers and manual memory management?
 
12:28 AM
Some people should not be allowed to post on isocpp groups.google.com/a/isocpp.org/forum/…
 
The guy either doesn't take more than 5 seconds to ponder what others have to say, or he has so little understanding of TMP in C++ that he should get a restraining order
3
 
user142019
SO MANY BAD QUESTIONS.
 
@Rapptz Yeah... Frankly, that's just annoying, but it actually shows some understanding of creative use of language feaetures.
This is something that Mr. Voutilainen apparently lacks. Completely. He fails to see how an "bareword name" is effectively identical to tagged sequences?
@Zoidberg Where?
^ lol, so meta
 
user142019
 
user142019
12:31 AM
Use Valgrind or a debugger. — Zoidberg 1 min ago
 
@sehe lol. who is this?
 
user142019
^ This one, for example.
 
Quite frankly I don't even see the point of the proposal lol
 
@IDWMaster DON'T TEACH THEM POINTERS!!! Start with C++'s memory management, std::shared_ptr. Please don't spoil another generation by teaching them 90's stuff. Please. PLEASE!!
 
@Rapptz He want's syntactic sugare for get<n>(t)
 
12:32 AM
@DanielFrey How are they supposed to understand what std::shared_ptr does if they don't understand what a regular pointer does?
 
user142019
Use Valgrind or a debugger. — Zoidberg 5 secs ago
 
user142019
Again!
 
@DanielFrey And that's exactly how the population of C++ programmers forget the stuff dirty stuff that's inside the black box.
 
Uh I wouldn't say "Don't teach pointers"
 
rice porridge makes me segfault — sehe 4 secs ago
 
12:33 AM
@IDWMaster How do they understand Java if they don't understand how the JVM works? No, that is not a valid reason.
 
user142019
I already got 90 rep in half an hour.
 
I would just say "Avoid dynamic allocation"
Teach it, but tell them to avoid it.
Ignorance is bad, why advocate it?
 
user142019
0
Q: beer to beer video chat?

aladeinI want to program a peer to peer video chat application. can any body suggest an open source real time video codec with low latency. I prefer to work with c#. ffmpeg is great but I could not figure how to use (stream over network) it on windows. thank you in advance.

 
@Rapptz Exactly.
 
user142019
Dat title. LOL
 
12:34 AM
@Zoidberg lol
 
@Zoidberg LOL!
 
@ScottW They already know Java.
 
user142019
DO NOT EDIT THE TITLE
 
user142019
That makes my comment obsolete. :(
 
@Rapptz apparently they're considering "condtionally-supported special math functions" for c++14 link
 
user142019
12:35 AM
Works as expected with libc++!
 
They're also proposing for BigInteger-like built in type.
named integer lol
 
user142019
Oh got.
 
user142019
Not built in please wtf omg bbq.
 
@ScottW quick, s/z/willy/ !
 
user142019
@ScottW __m128
 
12:36 AM
@Rapptz that's a good name
 
user142019
> I am a very frustrated newbee! I really don't know where to start.
 
user142019
Yes we don't give a fuck, just ask your question already.
 
user142019
North Korea said they would bomb the USA.
 
user142019
I think that if they would do that, the USA would instantly nuke them from the map.
 
12:38 AM
@Zoidberg Bad idea
 
@Zoidberg 10/10 would bomb again
 
user142019
@sehe lol
 
user142019
And then China and Russia get angry…
 
@Zoidberg Their missiles wont even make it to the border before blowing up
 
user142019
and we have a nuclear world war!
 
12:39 AM
Best response from the US would be to respond with conventional weapons
 
Best response would be "You kidding, bro?"
 
user142019
Turn on compiler warnings. — Zoidberg 7 secs ago
 
user142019
NOOOOOOOOOOOOOOOOB
 
US response to a nuclear attack from North Korea would probably realistically be no military retaliation at all
 
@IDWMaster Yeah. North Korea could nuke Seattle and San Francisco off the face of the planet, and congress would still be doing sanctions...
 
12:44 AM
US is really at the mercy of China and North Korea now
 
user142019
mediocre is actually the best, just saying. See Modern C++ Style. — Zoidberg 33 secs ago
 
user142019
Hurray for Konrad.
 
user142019
Konrad Rudolph really saved the world with his slides.
 
yo kitties
 
ohay
 
12:47 AM
how ya doin' sehe?
 
fine :) I was just going to bed, though
 
night then ;)
 
@Mysticial By the time they're done with that, there wouldn't be a congress left to impose any sanctions.
 
@Zoidberg That presentation is still broken on a significant number of browsers
 
@IDWMaster That! Read Zoidberg's link to "Modern C++ Style"!
 
user142019
12:50 AM
Hmm.
 
user142019
I have a bottle of Dr Pepper.
 
@IDWMaster Not necessarily. Congress would be unhurt if it was in session. And if it was on leave, only the ones in and around Seattle and the Bay Area would be taken out.
 
user142019
Haven't had it in a while.
 
@Zoidberg is that absinthe?
 
6
A: If unsigned types should not have negative values, why is it negative when I turn on all the bits?

ArminYou have to print unsigned variables with u as in printf("%u\n", x);

^^ 6 upvotes and it isn't completely correct.
 
user142019
12:51 AM
@Jueecy I dunno what that means.
 
@Mysticial and the dumb question is still open.
:(
 
user142019
@Mysticial I upvoted it. :v
 
user142019
OHH HAHA
 
user142019
It's unsigned long.
 
@Zoidberg yeah...
 
12:52 AM
@Zoidberg >lu
 
@Zoidberg the bottle, what does it contain? (see)
 
user142019
@Rapptz fixdit
 
user142019
@Jueecy Dr Pepper.
 
ohai
error: use of deleted function 'engine::VertexBuffer::VertexBuffer(const engine::VertexBuffer&)'
I'll just leave that here
GCC 4.8 saved my life
 
thank you so much
 
12:54 AM
@Zoidberg, oh yeah. we don't have it here, i immediately linked it to dr hyde...
 
@sehe you missed my whining
 
yes
 
my pair didn't compile
I mean make_pair(foo, bar) didn't compile
And I had no idea why
 
:)
 
beacuse the error was pulled out of the compiler's ass
and reported in <utility> header
and said that bar cannot instantiate from foo
 
user142019
12:55 AM
@Zoidberg is right. Even crustaceans know that manual resource management is crazy. — Blastfurnace 4 mins ago
 
user142019
Haha.
 
Well I don't agree with slide #9 of Zoid's link... isn't it good practice to avoid copies of objects when not needed?
 
RVO
also what?
 
@Rapptz That's the NRVO, not RVO, but yes, NRVO :)
 
@Jueecy no copies involved at all
 
12:59 AM
@BartekBanachewicz, yes: when the function returns
 
user142019
Why is this industry full of dipshits.
 
user142019
Like me.
 
@Jueecy No, NRVO removes the copy.
 
Ooh. You're a boost maintainer.
 
Oh damn o.o
 

« first day (896 days earlier)      last day (4053 days later) »