« first day (562 days earlier)      last day (4377 days later) » 

11:00 PM
@StackedCrooked I can't because by necessity of the underlying system (an object of which my class is managing) the objects can be destroyed other ways
 
@StackedCrooked now that seems like a strange design
 
You are looking for a state based scenario, I'd spontaneously go for an interface driven callback style design.
 
@MooingDuck I didn't start it :)
 
room topic changed to Lounge<C++>: It's Strange Design Night! [c++] [c++11] [c++-faq]
 
@SethCarnegie the C++ "resources" could be represented by smart pointers that go back to the manager class and use the manager class to reach the resource maybe?
 
11:01 PM
@StackedCrooked BURN ALL THE MANAGER CLASSES!
 
With very short/specific constraints on what is possible in each "state"/function
 
If an object can be deleted either via a manager or via direct deletion then the problem can arise that the object dies and the manager still thinks the object is still alive. The problem can be solved by disabling direct deletion.
 
@StackedCrooked the manager can check if the object is alive or not
and like I said, I can't disable indirect deletion
 
@DeadMG Dammit you distracted me and made me mess up my comment.
 
Objects dying on the stack is a heroic and honorable death.
 
11:03 PM
Well this could all be solved if I required my objects to be allocated dynamically but I don't want to do that.
 
Btw, I also dislike Manager, Handlers, Controllers etc..
 
@StackedCrooked can't help it
 
I don't dislike anything. I always just use the wrong right tool for the job.
 
I know someone who appends Handler almost all his classes.
 
Well anyways, I'll just think on it some more and see if a redesign presents itself
thanks for the help guys
 
11:04 PM
@StackedCrooked HandlerHanderHandler?
 
@SethCarnegie youtube google talks for dependency injection
 
@StackedCrooked somebody who works at Microsoft, by accident?
 
class foo {}; // Handler
 
A class for generating network packets: PacketHandler. A class for parsing xml: XMLHandler. Etc..
@classdaknok_t Nope.
 
That would be PacketGenerator and XMLParser.
 
11:06 PM
@StackedCrooked A class for extracting XML implements Serializable
 
@classdaknokt Yep.
@CaptainGiraffe We're talking C++ here.
 
Though I don't see how a packet generator should be an object. Maybe I'm thinking in a different context though.
 
@classdaknokt You're right in your thinking.
 
11:08 PM
@StackedCrooked +1
 
Shouldn't that be: I wrote a handler for your handler so you can handle your handler while handling your handler.
 
Your handler just filed a lawsuit.
 
Yo dawg I herd u like classes so I put an object in ur javanese coffee so u can suck while u suck.
 
Well, Java sucks.
 
11:10 PM
That concludes it.
 
Can we please stop with the meme night?
 
@StackedCrooked I'll handle your handler?
 
@CaptainGiraffe No.
 
@CaptainGiraffe No.
 
"Java sucks" is the new 42. It's the answer to everything!
 
11:10 PM
@DeadMG I'm not sure if I can trust you with that. :p
 
@CaptainGiraffe MEME ALL THE THINGS
 
@Captain yo dawg I herd u like memes so I replied to u in meme style so u can be irritated while ur irritated.
 
MEME MEME MEME MEME MEME MEME MEME MEME
 
@classdaknok_t I can take an arrow to the knee as good as the next guy, but its not constructive and I can go on adventuring.
 
11:13 PM
9/11: yo dawg I herd u like architecture and I also herd u like flying so I put a plain in yo buiā€¦ oh shit!
 
@CaptainGiraffe CAN ALL THE THINGS!
 
sbi
KILL ALL TEH MEMES!
 
11:14 PM
Hey @sbi where've you been all day?
 
sbi
@classdaknok_t You can try to guess three times.
 
@sbi here, there, everywhere?
 
@sbi at work.
 
Xeo
@sbi work, work or work?
 
@sbi At the dentist?
 
11:15 PM
@sbi at the arborist?
 
@sbi you walked into mordor?
 
In the slave pens.
 
sbi
Haha, no. I had the day off. (There's a holiday on Tuesday, and schools and kindergartens had closed on Monday.)
@StackedCrooked No, that one neither.
 
Ah, queens day! :P
 
Xeo
Garden, then
 
11:15 PM
Oh you lucky bastard
 
sbi
@CaptainGiraffe I'd have to look up this one. I'm too lazy, though.
 
@sbi Nacktbar?
 
sbi
@Xeo Yup, nailed it. :)
 
@sbi Tree gardener
 
Iā€™m depressed ā€¦ my ā€œdumbā€ pointer implementation ā€“ i.e. just a wrapper around T* ā€“ takes up more than 200 lines of space, not counting tests (which come in at about the same) ā€¦ no comments.
 
11:16 PM
I like gardens.
 
@KonradRudolph Can you post it on Ideone?
 
sbi
@classdaknok_t Call me conservative, but as a personal rule, I never walk into Mordor on Mondays.
3
 
Xeo
How are your pipes? Need to call Mario yet?
 
@Konrad how is it different from reference_wrapper?
It has -> and *?
 
It guess it should if it is supposed to mimick a pointer.
 
11:18 PM
What's wrong with template <typename T> using ptr = T*;?
 
@classdaknok_t It really isnā€™t all that similar, except for the fact that it happens to have the same member(s)
@RMartinhoFernandes Nothing
 
What's wrong with just T*?
 
Is it the same as std::vector<T>::iterator?
 
Xeo
@classdaknok_t reference_wrappers are handled specially by many standard constructs
 
sbi
@Xeo The pipes are fine, but once I had them working through the house (with water going in and out only at either end, not in the middle), I found that the water heater under the kitchen sink froze to death, too. That wouldn't be bad either, because we have never used it. But it was still connected, and thus I had another fountain under the kitchen sink. Took me a while to realize that, and took even longer to fix the mess. Now I have to fix that, too. Sigh.
 
11:20 PM
I think I can get a dumb pointer out of my value pointer by simply writing a no-op cloner and a no-op deleter.
 
@sbi That is from NetHack right?
 
sbi
@classdaknok_t Me, I don't like gardens, at least not in plural. I have a hard time keeping up with the single one I have. In fact, some of my neighbors would probably argue I fail to do so.
 
@classdaknok_t We had this discussion before, I prefer uniform syntax ā€¦ but apart from that it really was an exercise in writing such a thing up ā€¦ i.e., what do I have to take care of when implementing a smart pointerā€™s interface?
 
posted on April 30, 2012 by Herb Sutter

At GoingNative in February, I emphasized the need for more modern and portable C++ libraries, including for things like RESTful web/cloud services, HTTP, JSON, and more. The goal is to find or develop modern C++ libraries that leverage C++11 features, and then submit the best for standardization. Microsoft wants to do its part, and hereā€™s [...]

 
11:21 PM
there were some very interesting caveats, actually
 
I just consider every raw pointer to be non-owning, and if it's not it's not my code at least.
 
sbi
@CaptainGiraffe I doubt that slashing my way through NH would have made my body ache so badly as digging real trenches did.
 
Xeo
Herb's on a run today, it seems
 
sbi
BTW, @Xeo, why weren't you at the prater on Saturday?
 
oh, epic win
 
11:22 PM
@Konrad I see. I must've missed the conversation.
 
Xeo
@sbi Where, when, why?
 
"compatable" ruins it for me.
 
Epic fail; science and religion aren't compatible.
 
@sbi This should go into /universe/geek/poetry/bestof/
 
sbi
@Xeo Actually, Herb Sutter has been on a run since the first time I ran into his rumblings, which was sometimes in the mid-90s.
 
11:23 PM
@RMartinhoFernandes So it's not palatable?
 
sbi
@CaptainGiraffe I fail to see why.
 
Xeo
@sbi I meant the articles, it's been three in the evening
 
sbi
@Xeo SO meetup day. Heard about it?
 
Xeo
Oh, no
Damn!
That was Saturday?
 
It was all over the site.
Well, not all over.
 
sbi
11:24 PM
@Xeo Yeah, @Björn was there, and a few other people I hadn't known. We had a nice evening.
 
anyway, good night :)
@sbi Grr, still jealous!
 
Xeo
@RMartinhoFernandes I wasn't that much on SO in lately
@sbi :(
 
@sbi "Björn" On Swedish territory?
 
sbi
@RMartinhoFernandes Well, maybe you should know: The one time @Xeo and I meant to meet (I actually went to a place he pointed out), he failed to show up. Fortunately, someone was able to dig him out at a friend's, where he slept on a couch (I think), because he had hacked code all night. SO I am not surprised at all he could have failed to mark that day...
@KonradRudolph Why? Wasn't the SO meetup good, too, where you live now? :)
@CaptainGiraffe It's quite a common name in Germany.
 
There was no SO meetup at all where I live.
 
sbi
11:27 PM
@RMartinhoFernandes You could have started one.
 
Not everyone is good at things like that.
 
@sbi Nah, I was busy. Birthday. Mine.
 
sbi
@RMartinhoFernandes Oh! Cong-rats and other rodents, dancing for you! May your life be long and prosperous! Be fruitful and multiply! etc...
 
Congrats R. You have lived through this ordeal. Now it becomes worse (I you talk to the Doctors)
 
sbi
@StackedCrooked Ah, c'mon. Don't give us that pathetic social underdog shit. You were supposed to congregate with fellow-geeks, not with a bunch of potential mothers in law!
 
11:30 PM
lol
 
I almost put my email in meetup.com/stackoverflow, until I realized I'd really only want to meet (for the most part) people in this room, none of you have mentioned living within 1000+ miles of me :/
 
man
I should totally have gone to the meetup on Saturday and met Tony in London
 
Xeo
@sbi Don't remind me of that, it's still embarassing that I failed to show up on time there.
 
@DeadMG Tony the Pony?
 
11:32 PM
Tony the Porn Star Lion
 
sbi
@MooingDuck I've been to three meetups, two of which where with people from all over SO, and I found it interesting to talk to people from other tags.
@DeadMG Now he's gonna show up any minute...
 
@sbi @hmm, my honeymoon is going to be about this time next year... she wants to travel Europe... ideas....
 
@sbi you actually fraternized with other tags!!??
 
sbi
@Xeo Yeah, I agree.
 
@sbi Very true.
 
11:34 PM
Meh it's late, imma go to bed.
 
@classdaknok_t goto bad;
 
@sbi What tags were they, those tags sounds beautiful...
 
oh boy
 
11:35 PM
*(int*)nullptr = 0; // gonna crash here for the night
5
 
Does that compile?
 
sbi
@MooingDuck To us, that's like saying "I want to travel the Americas; aren't you living there ā€” care to meet?" Europe is much bigger than the US when it comes to cultures. I bet the robot's live has been a lot more different from mine than the life of anyone living at the opposite side of the US from you.
 
if (true) { goto foo; } else { foo: ; }
 
11:36 PM
make an "if" that executes both branches
with a constant condition
 
@classdaknok_t What constness?
 
@RMartinhoFernandes The inability of time being anywhere but now.
 
sbi
@CaptainGiraffe We were having, you know, alcohol, and exchanged, um, our P'sOV about SO. I apologize ā€” but the beer was soo good! Collapses weeping.
 
@Johannes look above your message, I edited by accident instead of posting a new message.
 
@Zero: regarding the sample, I think I pretty comprehensively covered the options now, including full sample with no less than 5 different options of how to handle the attributes/expectations. You might be interested in my lookahead hack (option 5), which in essence let's you have your cake and eat it, too — sehe 1 min ago
 
sbi
11:38 PM
@CaptainGiraffe Hell, how am I supposed to remember? There was a guy next to me on Saturday who is in ā€” GASP! ā€” Java. Nevertheless, he was a decent chap.
 
@KonradRudolph ^ gah... I did it again. Spent way too much time on a Spirit answer :)
 
@sbi Just look through your phones pics and vids and you're all good
 
lets not talk about his phone vids
 
@Johannes by the way, it might not execute both branches. The compiler will optimize everything away and it won't execute anything at all.
 
11:39 PM
@sbi Yes the php chaps are also almost always good guys.
 
there is no compiler
 
in the ideal world, yeah.
Where I'm not.
 
An ideal world should exist. Therefore this is the ideal world.
 
sbi
@CaptainGiraffe Didn't I say we drank beer and talked? I didn't waste a minute for thinking about pondering the idea of maybe considering taking pictures. Also, I hope nobody posted any of mine.
 
In the ideal world, I wouldn't know of this chat room because I'd never needed SO and SO wouldn't have existed.
 
sbi
11:40 PM
@CaptainGiraffe OMG! What did they threaten you with if you'd say otherwise? Can we help?!
 
@sbi They talked about something called permaban
 
sbi
@classdaknok_t In an ideal world, you wouldn't know this chatroom, so you'd get something done instead of procrastinating here.
@CaptainGiraffe You mean you'd been banned from PHP? Oh, so they bribed you!?
 
@classdaknok_t they're compatable :)
 
@sbi I can only pray/read in my coffe beans and hope.
 
@sehe in the ideal world, everything is compatible. Except for Vista, but nobody cares about Vista.
 
11:43 PM
all i wanna have are fun template questions
:(
 
@classdaknok_t Heck even unity is becoming usable
 
@Johannes what is a useful use case of variadic variadic variadic template template templates?
 
sbi
@JohannesSchaublitb Actually, I don't even think I have any videos on my phone, other than those I ripped off YT. I'm more the one enjoying-the-beer-and-talking kind of guy, and less the document-it-or-it-didn't-happen one.
 
@classdaknok_t perl
 
Oh wait that's not a fun question.
 
sbi
11:44 PM
@JohannesSchaublitb No wonder you're still a bachelor.
 
@sbi i'm not studying right now
 
I can write Perl! ā‚¬@-@-.'xnx : ^*+ m'n wall **[==|\$_!!,
 
instead i'm working
 
@classdaknok_t I can write PERL too !"#%"¤&"¤%&"("!!¤&/SFH"¤&%&"¤%&
 
11:45 PM
i know what it means
 
Ok, I'm going to NOP some. Unlike some of you slackers, I have to work tomorrow (and it's a holiday here too).
 
I'm neither studying nor working, I'm annoying you guys.
 
@classdaknok_t that's working
 
sbi
@JohannesSchaublitb I knew you knew. But since you wanted to play games...
 
11:46 PM
@RMartinhoFernandes +1 for me
 
@sehe I'd only call it work if somebody payd me for it.
 
@classdaknok_t No, that's called a job.
4
 
@classdaknok_t (a) please respond to specific messages (the arrow icon) (b) please reread:
1 min ago, by sehe
@classdaknok_t that's working
(note emphasis)
 
@RMartinhoFernandes And jobs are queued in to their proper position
 
sbi
11:47 PM
@RMartinhoFernandes I am not going to work tomorrow. I promised one of my sons we will spend the day working on his model trains. It will be a shame wasting the incredible weather inside, but a promise is a promise is a promise.
 
@sehe I can't because of this moronic mobile version.
 
@classdaknok_t so... that's not working :)
 
sbi
@sehe I can attest that it is hard doing that using Android's browser.
 
The mobile version doesn't work, and neither do I, and Vista.
 
@sbi Hope you two have fun. Or that it rains, so you won't regret wasting the weather inside ;)
 
11:49 PM
@sbi I'm not using Android.
 
sbi
@RMartinhoFernandes It won't rain, but we will have fun. All the other kids will be with their mothers, and having me alone is always a treat for any of my kids.
@classdaknok_t I never said you do.
 
Me neither.
 
@RMartinhoFernandes I should stop clicking links that come from you
 
sbi
@MooingDuck I tried to save you. I am sorry if I was late.
 
how do I remove people from my ignore list?
 
11:51 PM
(deleted)
 
@classdaknok_t cheater
 
sbi
@MooingDuck You go to your ingore list and click them off?
 
@Mooing Duck to to their profile page on chat and click unignore.
 
Feeds doesn't seem to have a profile page that I can find, I'll look for an ignore list somewhere
 
sbi
@classdaknok_t You can also click on their avatar when they're online here.
 
11:53 PM
aha, found it
 
@sbi I agree.
I agree to facts. Maybe I should stop acting like Vista abnormal and get sane.
 
sbi
@classdaknok_t How in the world is I agree a valid response to some fact recited? "Last year Tim and Carol got married." "I agree."
 
@sbi seven
 
sbi
@classdaknok_t Oh, you already realized that yourself.
 
@MooingDuck pancake.
 
sbi
11:55 PM
@MooingDuck No, just Tim and Carol. Most nations disallow polygamy.
 
is it even possible?
polygamy does not need to be disallowed if it is not possible in the first place
 
sbi
Apparently, Steve Wozniak prefers the Windows Phone to Android. (OTOH, he prefers his iPhone to the Windows phone...)
 
How would polygamy be impossible?
@sbi old news.
 
sbi
@JohannesSchaublitb That strongly depends on what "it" refers to.
 
if you cannot marry > 1 person then it is not possible to do polygamy
if you understand that with that word
 
11:59 PM
But why can you not marry multiple people?
 
of course in most nations it's no problem to *** with >1 ppl
 
sbi
@JohannesSchaublitb Yeah. That's what "disallow" refers to, you know.
 
"disallowed" means something that is possible has not been given permission
 

« first day (562 days earlier)      last day (4377 days later) »