« first day (635 days earlier)      last day (4314 days later) » 

8:00 AM
All the top 3 stars are currently image links. I think that sucks
 
@RMartinhoFernandes ¬_¬ what about meta meta meta programming?
 
Just use functors for the observers, and store std::functions.
 
you can see where I am going with this :D
 
@thecoshman No such thing makes sense.
 
@thecoshman We are programming in meta meta meta programming
As we're talking about it
 
8:01 AM
@sehe Not my fault.
 
@thecoshman Happens all the time. I reprogram myself sometimes. This is bound to be meta meta meta meta programming. Especially when I write a code generator to generate TMP code.
 
@RMartinhoFernandes meta programming doesn't make sense to me :P
 
It's so meta, you don't know you're doing it
 
@RMartinhoFernandes Yes, yes, of course. But the thread of thought was "observer pattern with templates and not dynamic dispatch". Which rules out std::function<...>
 
8:02 AM
@Managu You're using inheresy!
 
I was sort of wondering if there was a way to pull that off without the type of vomit I spouted above.
 
Well, without dynamic dispatch you can't mash arbitrary different types together in an arbitrarily sized container.
That's a fact, and a fundamental obstacle to that goal.
 
@Managu This would be so much easier to do in Java
 
@RMartinhoFernandes It would all have to happen at compile time, of course. But I'm not sure about your assertion. Isn't that exactly what std::tuple<> does?
 
@Neil Without dynamic dispatch? No. It would be impossible.
 
8:04 AM
And, even further the various boost::fusion containers
 
@Managu Nope, that only works with a fixed set of types and a fixed size.
If you can limit the types of the observers to a bounded set, then boost::variant can do it.
 
@RMartinhoFernandes Not sure what you mean by that. You'd simply pass a handler interface with certain specific methods regarding mouse control or whatnot
 
@Neil "You'd simply pass a handler interface (...)" BAM, you lost.
That's dynamic dispatch right there.
 
So let me rephrase the question then. Does the observer pattern make sense in a pure functional language?
 
@RMartinhoFernandes And I lost because I mentioned a way of doing the same thing in Java?
 
8:06 AM
@Managu more like std::vector<boost::variant<>> or std::vector<boost::any>
 
@Neil Because you mentioned a way of doing not-the-same thing in Java:
 
In java you could search for a method called onMouseDown(Event evt)
 
15 mins ago, by Managu
Observer pattern without dynamic function dispatch? I'm sure it's possible. How?
 
though that's of course not as safe
 
yeah! actually working on CV at long last
 
8:07 AM
But you could assign it an annotation @Event(EventType.MouseDown)
 
@Managu Reactive programming seems fashionable these days.
 
And you could search for a method with that annotation (could have any name)
 
So, yes.
Typeclasses to the rescue in Haskell.
 
@RMartinhoFernandes If you can do it in Haskell, you could probably pull it off in C++ TMP
It would be very painful, of course
 
@Managu Typeclasses work similarly to vtables.
 
8:10 AM
template partial specialization is similar in concept to vtables.
(it's not implemented in anywhere near the same fashion, of course)
 
It's not a runtime concept.
You implement functions like f :: Num a => a -> a by passing a hidden argument with a Num vtable.
(Assuming it doesn't get specialized or optimized otherwise)
 
no, it's not. So all the wiring up (registering of observers) would have to be done at compile time. But the Observer pattern isn't so much about runtime behavior as it is about loose coupling and separation of concerns.
 
Ah, but now you're adding restrictions you didn't have initially!
If you can now all the observers at compile-time, then yes, you can do it.
boost::variant
 
You're right that you should avoid direct calls for classes that should have a vague understanding about how the other works
But I don't think that means you can't provide the smallest bit of context
 
How about, say, boost::serialization. You could think of its serialization capabilities as modelling the observer pattern, where new types register serialization handlers with the framework, and the deserialization capabilities as modelling the abstract factory pattern.
 
8:14 AM
More importantly in my opinion, the interface is the same so that the workings behind it can move without problems
You can achieve that with observer pattern, but it's not strictly necessary in order to do so
 
hello all.. i have a problem with tcp ip communication in c++
 
Run! Run for it!
 
Oh, well, I suppose boost::serialization is closer to the Strategy pattern (and perhaps in fact is the Visitor pattern).
 
Boost serialization relies on function overloading, i.e. static polymorphism. Don't know if you can compare that with a design pattern. (Perhaps strategy indeed.)
 
need English help, can some one translate from Danglish 'thorougher' the word meaning you are very careful and precise with what you do. usage, 'I hope the pest control guy is very <this word> with getting rid of those ants'
 
8:26 AM
thorough?
 
@thecoshman "more thorough"
 
I'm gonna go with "thorough"
 
ah, didn't need the 'er' at the end :P
thanks guys
 
lol, Danglish.
 
@RMartinhoFernandes I could offer a course if you are interested :P
 
8:29 AM
My father is very good at Flemlish
Danglish sounds like Danish English
 
@rubenvb well it's not :(
or maybe I am Danish and don't know it...
 
lol
 
what can cause
 
Something would be rotten in the state Danmark
@Abhishek smoking, drinking
 
function INT64_C could not be resolved // wtf ?
 
8:33 AM
@Abhishek Bad code. E.g. you are using a macro INT64_C that isn't declared. Compiler assumes it must be a function name since the compiler knows nothing about macros (only the preprocessor ever sees macros)
 
¬_¬ effect vs affect... how do I know which to use again
 
@thecoshman by using google, not chat
 
12 hours ago, by Cicada
But it looks awesome and fluffy
huh. amazing, someone actually asks a question _relevant for the room_ and you defer to lmgtfy?
How is it you didn't google 'affect vs. effect'
 
8:38 AM
@RMartinhoFernandes I hate you can't search that page with, say, /affect
@thecoshman bookmark != star
 
I just installed Skyrim by means of DVD. Stupid me. It's a Steam game. Redownloading latest game files as we speak -_-
 
@CatPlusPus Fix your blog, mate. “Posted 10 hours ago (no comments and no reactions)”
 
Grammar nazis ftw! (@sbi to make him cringe)
 
@rubenvb it is a terrible misnomer, the Nazis where not technically right in there actions, but they did go about it ruthlessly efficiently
 
8:48 AM
@thecoshman it's just a funny expression.
 
this may be irrelevent but I have read British mathematician Tommy Flowers in 1943 designed the machine "Collosus" that decoded German messages during WWII that was faster than Pentium III PC doing the same task.
 
I could believe that. Dedicated hardware should always be faster.
 
@rubenvb everything should always be faster :P
 
and @thecoshman lol speaking of Nazis I coincidentally happen to write about something related
 
The room generates conversation in a tone that cannot by any stretch of imagination be considered "professional". This may e.g. be A/S/L types of conversation, bullying, back-and-forth accusations, etc.
^ rule for a bad room
24
A: Definitive rules on chat rooms with non-technical discussion

balphaFirst of all, thanks a lot for your help in this. Really appreciated. Now, while there's obiously no clear-cut answer to this, here are a few tell-tale signs I can see. You already identified much of this yourself, and I agree with your reasoning so far. All of these are merely hints that should...

We may have a problem :P
 
8:50 AM
oops sorry..
 
@ladiesMan217 not meant for you directly
Don't worry.
It seems the sarcasm alarm is offline again.
Thankfully, we often devolve in senseless C++ discussion
 
Lounge<C++>: The unprofessional chatroom
 
They always say that, but get distracted by the C++.
 
@ScottW those sort of discussions? really?
 
in 3 minutes I'll be playing Skyrim. Yay.
 
8:57 AM
@ScottW clever. I guess thats what got me here
 
Anybody up for giving a code review ? pastebin.com/2cQaiRAK
 
@ScottW but not together
 
@ScottW Bananable. FTFY.
 
> The room is welcoming to new users, but critical (in a helpful and guiding way, if possible) of dumping-my-problem-into-the-room drive-by chatters.
us to a T
I feel the need to defend the Lounge<C++> we seem to be a special place. We have a strong community in there and often talk about all sorts of nonsense, but do give technical things a fair go as well. The topics discussed would often lead a non-regular to think the room is just a waste of time and not appropriate to SO at all. However, I think it would a big mistake to consider it a bad room. The real world equivalent of our room is very much like a bunch of people in the pub after work; shop talk is ok, but where are there to relax and unwind. — thecoshman 9 secs ago
 
lol
No need to defend whatever.
We meet all criteria there.
 
9:07 AM
I don't know, we are often wildly off topic, as far as SO is concerned any way
 
Xeo
> The room's given topic (and thus its definition) already hints at the fact that people explicitly not want to talk about stuff that would be considered SO-related.
hmm... I wonder if our topics count there
 

Android

Sometimes we even talk about Android. Please read the rules (r...
Our room name is good enough.
 
@RMartinhoFernandes now there's a bunch of rooms for deletion, bunch of childish squablers
 
sbi
@sehe For one, I post far more tweets than pics. Also, I looked at this, but thought there won't be many here who even know who Gibson is. And I disagree for @Jerry over the guys's worth. Some of his books I like a lot.
@rubenvb Nonsense. The cat brought this up yesterday, and it was already disseminated and dismissed.
@rubenvb Now please lean back, relax, and ask yourself: Why did I just do that? Note that I'd be very interested in hearing about the answers you'll get.
 
@sbi Clear. I didn't mean to imply you tweet pics, you regularly post pics of animals in this room, though
 
9:17 AM
Oh, you messed it up.
 
@RMartinhoFernandes What? I interrupted sbi's steady stream of backlog replies?
 
sbi
@sehe And I said that this was wrong.
 
See, that's what you messed up.
 
sbi
@thecoshman: We've already discussed this in the Lounge yesterday. The C++ room meets every single criterion for an "appropriate room" and fails on everyone for an "inappropriate room". Move along, nothing to see here for us, really. — sbi 28 secs ago
 
@thecoshman The room wasn't implied in the slightest... You may want to think about /why/ you feel the need to defend things. This room has ample technical discussion going on. As such, it is always ontopic for SO. Hell, books are being reviewed, written, blogs spawned, projects undertaken, code shared, scheme explained, PHP bashed, garbage collectors analyzed, languages designed: all good things are ahappening here!
 
9:22 AM
@thecoshman: We've already discussed this in the Lounge yesterday. The C++ room meets every single criterion for an "appropriate room" and fails on everyone for an "inappropriate room". Move along, nothing to see here for us, really. — sbi 3 mins ago
@sbi Gorilla a bit grumpy today?
:P
 
@RMartinhoFernandes Ah well. @sbi: I surely don't remember saying you post more <X> than <Y> in the room. I guess I just thought the animal pics a more vivid example of what you do when you cater the room with some fresh newsworthy external material...
 
@sehe I think the "why" is pretty easy to answer: "If you don't regularly shout out on Meta, someone will come and try to delete everything"
better safe than sorry?
 
@Manishearth What makes you think so?
@jalf a.k.a. FEAR
 
17 hours ago, by sbi
> The population of the room contains many active Stack Overflow users who use the chat as what it was designed to be – a Third Place –, not as their primary way of interacting with Stack Overflow.
 
@jalf The opposite effect is likely to happen, though
 
9:23 AM
What about it?
Also, acorns.
 
^^^ IMO, that is the most important point. And you have it ,@thecoshman :)
 
@sehe you mean by drawing attention to the room?
 
@jalf No. I mean by implying that the room might not meet the criteria. When clearly it does.
 
If the idea is to avoid drawing attention you should all stop typing.
 
9:24 AM
If things are obvious, there is never a need to point them out. Doing so, merely raises doubt
 
@sbi: well having a discussion in chat is all well and good, but I very much doubt some over zealous mod would bother to read through to decide if he should close the lounge. It only takes one mod in a bad mood to look at one 'inappropriate' flag to many and poof, room gone! Thanks for posting the links here, perhaps some can eloquently say something along the lines of "look at Lounge<C++> as an example of a room that is not always 100% so related, but still a fine room" — thecoshman 21 secs ago
 
@sehe honestly, I think more than a few of the moderators are going to be very reluctant to mess with this room, simply because of what a pain in the ass it always becomes
 
Gosh, you think someone would close the lounge? WTF.
It's the most active and most populated room in the whole thingy.
 
@RMartinhoFernandes it's spelt with a C, not a G
 
sbi
@Manishearth What are you asking about? Look at my profile. It says there, loud and clear, "I'm The Grumpy Old Ape." What do you expect from such a user?
 
9:25 AM
@thecoshman lol
 
@sbi cupcakes
 
@sbi Oldiness. Duh.
 
@RMartinhoFernandes It also contains a lot of four-letter words, and a strong anti-Meta sentiment. I can easily see why some clueless moderator who visits at the wrong time would think the room needs to die
 
@jalf And kill it without notice?
Tinfoil much?
 
@thecoshman Damn. What are you doing? Alienating as many mods as you can? "It only takes one mod [...] and poof! room gone". Don't make me laugh.
 
9:27 AM
@RMartinhoFernandes A sane mod wouldn't. But that's quite an assumption
@RMartinhoFernandes and no, I don't think anyone would close this room without notice. I'm just saying I can see why @thecoshman would worry
 
4 mins ago, by sehe
@jalf a.k.a. FEAR
 
@sehe It's been true in other cases. It only takes one mod, and poof! All sorts of other content gone
 
If FEAR is supposed to save you, you should definitely take shelter somewhere else
 
sbi
@jalf Did you ever notice that meta is a four-letter word, too?
 
I don't know if they can do the same with chat rooms though
@sbi Yeah, just did after I posted it... :)
 
9:29 AM
@jalf Rooms can be deleted, yes.
They deleted the "Cooking tips" room, for example.
 
@sbi so is Nazi (SCNR)
 
sbi
@jalf So you argue for us to be a pain in SO's ass as a way to ensure the continuity of this room? Haha! If all this requires is us being nasty, I can see us winning this hand down and tied behind our backs.
 
what event has lead you guys to discuss the continuity of this room?
 
@jalf us moaning about it like hell will not prevent deletion
 
@sbi Everyone loves a good pain in the ass, right?
 
9:30 AM
@sbi no, not really. I'm just stating the fact that we are a pain in SO's ass, and I suspect that is one factor which ensures that "they" will overlook at least some infractions
 
@TonyTheLion None whatsoever.
 
25
Q: Definitive rules on chat rooms with non-technical discussion

ManishEarth wants more waffles Related: flagging a chatroom which has no technical discussion (2) , flagging a chatroom which has no technical discussion I've noticed that there are lots of chat rooms on chat where there isn't much technical discussion. By "isn't much" I mean: People advertising their own posts (not cou...

 
@RMartinhoFernandes just a random discussion then?
 
@jalf or it's fuel to the fire, just waiting for that spark
 
Also, I see far too many people electing to not read part of balpha's post.
> All of these are merely hints that should be considered together with common sense, not as a yes-or-no checklist.
 
sbi
9:31 AM
room topic changed to Lounge<C++>: We are the pain in SO's hind. [brainfuck] [c++] [c++11] [c++-faq]
 
@sbi poor English, suggestion, s/hind/ass/
why beat about the bush?
 
sbi
@thecoshman "They have a sick breath gathering at my hind" — Nick Cave, The Mercy Seat (not surprisingly when Johnny Cash covered the song, this was among the lines he dropped)
@thecoshman Now will you stop? This whole thing about "inappropriate rooms" came up because there were some rooms where the members of a certain nation, once they had answered a single question, congregated in order to exchange cooking recipes, harass females, run upvote rings, and flag each other. This has nothing to do with this room whatsoever, and nobody but you implied it.
 
I see no reason, under the sun, moon or stars to close this room. I rest my case.
 
What about Orbitals?
Nevermind. You won't get it.
 
sbi
9:39 AM
If there was anything dangerous for us in this discussion about closing chatrooms then it was @thecoshman bringing this room into the discussion in the first place. If I saw a chance for some meta mod to delete that comment discussion, I'd flag it immediately, so it'd be gone, lest some idiot gets funny ideas.
 
@sbi :P
 
you think there's idiots, and they would funny ideas? Who'd have thought!
 
@TonyTheLion s/there's/they're/
 
grammar Nazi
 
@TonyTheLion spelling communist
@TonyTheLion I said that the other day when I saw here, I got told off :(
 
9:44 AM
looks female to me
@thecoshman why?
 
female, or 'female'
 
You think I'm scared of this bunch?
 
sbi
@TonyTheLion Really I was waiting for someone to be stupid enough to do that.
 
@TonyTheLion apparently it's not cool making a point of it
 
Why the heck are you making a fuss because of this?
 
9:45 AM
Silly people make silly fusses.
 
and @tony, there is also the coriander girl, some sort of recruiter
or so I hear
 
Fuss leads to more fuss.
 
@thecoshman and of course, ladiesman... oh wait
 
... because the whole "OH EM GEE, THERES A GIRL ON MY INTERNETS" thing got old around 1997.
 
9:46 AM
WHERE WHERE WHERE
 
Also, CAPS got old around 1970
 
@jalf I wasn't referring to that meme. I was merely pointing out what I saw
 
and because it is just conceivable that people might want to hang out in this room without having everyone gather together to marvel just because of your gender
 
@TonyTheLion I didn't say you were. But the meme exists because of people "merely pointing out what they saw"
 
9:48 AM
I wager more than a few will have learned to just disguise as a male user to avoid the nonsense
 
you guys have really got to get rid of that stick up your asses and get a bit less serious
jeez
 
@TonyTheLion Do we?
 
@jalf Oh, the fuss I was referring to was "OH EM GEE, THERES A GIRL ON MY INTERNETS", not people speaking against it.
 
@TonyTheLion You think we're just making stuff up just to be grumpy?
 
@jalf feels like that
 
9:49 AM
@TonyTheLion Well... I think next time you could be a bit more 'inclusive' about it. A warm welcome rarely hurts. But oneboxing the profile pic is... likely not very welcoming.
 
What if I told you that yes, it is actually something that turns away a lot of women?
 
More caps. When's that gonna stop?
 
@sehe NOT TODAY
 
NEVER
 
@sehe I was quoting.
 
9:49 AM
Don't
 
@Cicada Oooh, bold too. I hadn't thought of that. You win! :(
 
And italics.
All at once.
 
Ultimate combo.
 
@Cicada NOT ULTIMATE
 
@jalf She just copied it from the the ape. He seems to sometimes lapse into quite childish shouting when the room goes out of whack
 
9:51 AM
meh
 
moo
@Cicada needs example.com. And more fucks
 
@sehe Oooh...
 
sbi
@sehe WHAT ARE YOU SAYING THERE, BOY?!
 
It's starred! Somehow.
 
@sbi oh, poor old fellow, he's gone a bit deaf
 
sbi
@thecoshman The polar bear is gone a bit deaf? Damn, I hadn't known that.
 
In Holland, we call that East-Indian plonking deafness.
 
East-Indian? I knew big and little, but east...
 
Oh gawd that's awful.
 
sbi
9:59 AM
@RMartinhoFernandes You mean how she's never heard about East India? Yeah, I thought so, too.
 
@sbi you where the one 'shouting' asking what was said, you deaf monkey
 
@Cicada lulz
 
@sbi No. The joke. It's awful.
 

« first day (635 days earlier)      last day (4314 days later) »