« first day (1048 days earlier)      last day (3916 days later) » 

3:00 PM
@CatPlusPlus this room is always irrelevant but not dead at least
no offense
once again the fear...........
 
Does a Button with lambas callbacks (say, onclick, onhover) make sense?
 
@JABFreeware You're giving yourself way too much credit.
Did you consider that, perhaps, we had better things to do than talk to you?
 
Lambdas are not special.
 
@EtiennedeMartel I hope you do!
but obviously not, because you just did
 
@JABFreeware You're right. I, for one, am terrified. [We are still talking about the long-term effects of the US government having decided to go into Syria, right?]
 
3:16 PM
@JerryCoffin Hey
 
@Borgleader Hola!
 
@JerryCoffin Wait, why are you using the past tense?
 
@JerryCoffin why are you even going over there?
what do you think is going to happen?
nothing good, tell you taht much
 
@R.MartinhoFernandes Elaborate?
 
@R.MartinhoFernandes Because I think the decision's probably already been made, and the current situation is mostly posturing to try to provide justification.
@JABFreeware I'm not (and if I had any control over the decision, the rest of the US wouldn't either). I think it's a rabbit hole with a black hole at the bottom (if you'll forgive a severely mixed metaphor).
 
3:21 PM
@JerryCoffin sorry, I mean why are WE
I agree
we dont even know which side to join
 
@JABFreeware how about the side that doesn't bomb other nations ? ;p
 
@Pawnguy7 If you accept arbitrary callable objects for the callbacks, lambdas work. If you make effort to have lambdas working, that same effort will likely lead to supporting arbitrary callable objects. The lambdas only change how the code looks for clients.
 
@A.H. oh you mean the muslim brotherhood, no thanks man
 
@JABFreeware i thought we were talking about Syria ?
 
@JerryCoffin Ah, ok. For a moment I thought I had to remove some rock from my back or something.
 
3:25 PM
@A.H. yes...
 
dafuq does the MB have to do with Syria?
 
That's so old-school. TB is where it's at these days/
 
0
Q: having trouble walking into subdirectories

FredOverflowTo familiarize myself with <filesystem>, I wrote a simple recursive function that walks a directory tree: #include <filesystem> namespace fs = std::tr2::sys; const fs::directory_iterator fs_end; void walk(fs::path root) { std::cout << "ENTERING " << root << '\n'; for (auto it = fs::dir...

^ Could somebody test the code on a non-MS platform?
 
@A.H. sigh. Whatever. Personally all I'd do is send some stealth bombers and flatten the leader's location. But I doubt the rebels will be much better
 
@JABFreeware yeah because killing more people is definitely the answer, and btw if you can't tell the difference between Egypt and Syria then you really shouldn't be forming opinions on them
 
3:29 PM
lol
I think it's awesome that so much shit is happening in places many people have a terrible geographical grasp of.
 
@A.H. I know the dif thanks
personally I really dont give a crap whats going over there
lets them fight. Thats all they ever do
 
3:45 PM
I wish I can remember people's name better
I think I offended someone by forgetting his name yesterday
 
@Telkitty猫咪咪 what his name hahah :D
 
user1804599
Hello!
 
lemme look it up for ya :p
I could not do that back then >_<
 
@Telkitty猫咪咪 You should feel ashamed. You should offend people intentionally, not through oversight!
 
I am talented at offending people, don't you worry
 
3:48 PM
@JerryCoffin you mean:
You should feel ashamed. You should offend people intentionally, not through javascript!
:D
 
that's cheat, lazy person's cheat!
if you intend to offend people, at least put personal touch into it!
How special a person must feel when you try to offend him/her using a generic javascript?
 
@Telkitty猫咪咪 Or not: youtube.com/watch?v=9V7zbWNznbs
 
user1804599
Google is awesome.
 
user1804599
I search "socket" and the first result is exactly the one I want.
 
used to be, now it's a nsa style badass
 
3:57 PM
nsa
 
argh
this just in on BBC "news": sport pairings for some future sporting event!
 
Erm. What about it?
 
well, clearly, our national taxes were well-spent acquiring this "news".
and broadcasting it to every household
 
OH: "What's Rollback Thursday?" A: "We used to release on Wednesday nights."
 
4:05 PM
what is today?
today is yesterday
yesterday is today
tomorrow is last week
last week is tomorrow
</random nonsense crap>
his exceeding trifling witling, considering ranting criticizing concerning adopting fitting wording being exhibiting transcending learning, was displaying, notwithstanding ridiculing, surpassing boasting swelling reasoning, respecting correcting erring writing, and touching detecting deceiving arguing during debating.

Read the full text here: http://mentalfloss.com/article/49238/7-sentences-sound-crazy-are-still-grammatical#ixzz2dNJDH2bH
--brought to you by mental_floss!
 
oh gawd
could you at least dump a question instead of random crap?
4
 
@DeadMG oh
 
@DeadMG never thought deadmg would type those words
 
@A.H. The other owners complain less that way.
 
If a cat always lands on its feet, and buttered bread always lands butter side down, what would happen if you tied buttered bread on top of a cat?
there you go
 
4:11 PM
buttered bread on a roasted cat?
 
@Telkitty猫咪咪 now does a roasted cat land on its feet?
 
depends on which part of the roasted cat you put on the buttered bread
 
God I'm gonna pay a team of full-time developers to finish the chat in 2 weeks just so I can ban you.
 
@CatPlusPlus Telkitty or Freeware?
 
user1804599
Both?
 
4:13 PM
@CatPlusPlus hire me
 
40
Q: What are some better ways to avoid the do-while(0); hack in C++?

SankalpWhen the code flow is like this: if(check()) { ... ... if(check()) { ... ... if(check()) { ... ... } } } I have generally seen this work around to avoid this messy code flow: do { if(!check()) break; ... ... if(!check()) break; ... ... if(!chec...

^^ lots of differing opinions.
 
user1804599
> industry level code
 
user1804599
wat
 
Quite surprised nobody has VTC'ed as "primarily opinion based."
 
@DeadMG To be honest, Telkitty hasn't been that bad in quite a while.
 
4:15 PM
Telkitty maintains at least a shred of relevancy.
 
@R.MartinhoFernandes Fortuitously, I plonked her almost immediately and now I only have to suffer when other people talking to her is the primary conversation.
 
And stopped posting images, which is already a 100x improvement.
 
@CatPlusPlus hehehe
 
The other guy is just trying too hard to be funny and relevant.
 
@CatPlusPlus that would be me?
 
4:18 PM
In unrelated news, I'm defying conventions and getting drunk on Thursday.
 
@CatPlusPlus that explains it...
 
user1804599
Hey Cat.
 
user1804599
I'm interested in doing front-end development for the chat.
 
Cool.
 
user1804599
Could you add me to LoungeCPP?
 
4:22 PM
Done.
 
user1804599
Dankeschön.
 
user1804599
Time to learn AngularJS.
 
@Mysticial why would someone use do while(0) instead of a goto ?
 
user1804599
BECAUSE goto IS BAD!!!!!1
 
This is a C++ question, everyone opting for goto OR while(0) is an idiot.
This is bad Englishes.
 
4:24 PM
the while loop will never be entered? 0 = false while(0) = while (false)
 
@Telkitty猫咪咪 its a do - while
 
do { } while(0);
entered once
 
user1804599
AngularJS looks cool.
 
...
@A.H. redundant then
 
user1804599
4:25 PM
@CatPlusPlus Why did you want to use Bootstrap, by the way?
 
if you look at the question you would understand ;p @Telkitty猫咪咪
 
It's a common framework.
Makes things easier.
 
user1804599
I don't really see the benefits of using it for a chat application.
 
Responsive grid.
Entire sidebar can be hidden away in mobile interface.
 
user1804599
Ah right.
 
4:27 PM
Also, common naming scheme.
 
user1804599
Do you want the layout similar to the one on this site?
 
user1804599
I don't find it bad.
 
Yeah, probably.
I was thinking about tabs for rooms.
 
user1804599
Why? Browser already has tabs.
 
Connections.
Also unwieldy.
@Mysticial It should be VTC as "jesus so many people who don't know C++ talking about C++"
There isn't even a room to correct these shitty answers.
And now people will Google this shit, and end up writing stupid gotos, because the top answer has almost 100 votes.
Fucking :stackoverflow:
Ugh.
@utnapistim If the finishing code isn't doing any cleanup, one could argue that a destructor isn't the right thing to use. Of course you can use RAII for anything, but if there isn't a "resource", there isn't a point in "acquiring" or "releasing" it. And exceptions are to be used for, well, exceptional cases. While I probably would have used nested ifs or a separate function/lambda or mabye even a destructor, this doesn't change anything in the validity of the use of goto here. — Christian Rau 5 hours ago
UGH
You're an exceptional case. Of being a bad programmer.
@woliveirajr: That's why I think programmers should start in assembly language (even 8086) and tehn move onto higher-level concepts. — SigTerm 5 hours ago
 
4:33 PM
lol
 
:cripes: is not fucking enough
AND UPVOTES UPVOTES EVERYWHERE
// No need to use goto here. Do it nonetheless. You never know if you might add another if statement. — Tass 1 min ago
Thank you for this insight into extensibility of this approach user 411944
 
user1804599
Wtf bootstrap.
 
user1804599
I disabled Typography y u include it anyway.
 
@CatPlusPlus so you are saying there is never a reason to use goto ?
 
No.
Well, in C++, probably.
There are far more expressive constructs available.
For both interrupting the flow and ensured execution.
They are, wait for it, exceptions and automatic variables.
Seriously there is like ONE not-completely-terrible answer in there.
And it's somewhere in the bottom.
Fuck this site.
 
4:40 PM
lol, someone claiming do { } while(0) is not a hack.
 
I am blaming you @Mysticial for linking this shit.
 
user1804599
Ok cool.
 
user1804599
On tiny displays it hides sidebar and shows menu button.
 
@ta.speot.is: "RAII and throw exceptions". By doing that, you'll be emulating flow control with exceptions. I.e. it is kinda like using expensive, bleeding edge hardware as a hammer or a paperweight. You can do that, but that definitely looks like a very bad taste for me. — SigTerm 5 hours ago
Where do I remember this guy from
 
@CatPlusPlus He's one of those real programmers.
 
4:42 PM
"emulating flow control" jesus christ
I can't
I
no
.
May 11 '12 at 10:08, by Cat Plus Plus
> (...) So for app developer, important part is whether the feature is available, and not whether it has been deprecated. So far as far as I know, compatibility profile is available everywhere. So no need to avoid "deprecated" functions – SigTerm 9 hours ago
n/t
@EtiennedeMartel: Interesting. Care to prove that int &a = *((int*)0), &b = *((int*)0); bool c = (&a == &b);/*c == true*/ is UB? Not much of a difference from int tmp = 0, &a = tmp, &b = tmp; bool c = (&a == &b);SigTerm Feb 19 '12 at 0:50
CERTIFIED BAD PROGRAMMER
6
 
@CatPlusPlus wtf?
 
@CatPlusPlus I want something like RES tagging for SO.
 
user1804599
AngularJS is awesome.
 
btw doesn't the code in that comment dereference a null pointer?
 
Yes.
Quite obviously.
 
4:51 PM
so why is he even asking about UB?
 
The reddit effect finally calmed down.
 
Because he's terrible at C++ and yet feels good enough to advise people on it.
 
I see
 
For every good C++ programmer there are 1000 SigTerms.
 
@CatPlusPlus job security then
 
4:53 PM
C++ ecosystem is unsalvageable.
Abandon ship.
 
i=3; while(i--){//blah} /* bad practice or not?*/
 
I would prefer that over repeating myself, if I am not mistaken compiler removes the loop anyway
 
@A.H. I actually use while (true){}. Not like it matters though.
Abusing exceptions is definitely the worst way to do it.
 
@Mysticial Yes, it does! It needs not-forgetting break at the end!
 
4:59 PM
So I'd put it at:
loop > separate function > goto > exception
@R.MartinhoFernandes Right. Which became a thing of habit for me. lol
loop vs. separate function depends
I try to use a loop, but sometimes, I'm trying to break out from within a switch. So a function is the only way that doesn't use a goto or an exception.
 

« first day (1048 days earlier)      last day (3916 days later) »