« first day (290 days earlier)      last day (4675 days later) » 

6:00 PM
@hexa "-1 Here's a comment"
 
Als
What if Q is never edited?
 
@Xaade At least you would know who to bitch to
 
@Als If a question with downvotes is never edited, the OP doesn't have much of an excuse.
Maybe, downvotes only count against you if the voter has more rep than you at the point when they vote.
Or maybe only the first downvote counts against you?
 
Als
@Xaade: DO you mean the Op should get a breather, after posting the Q and first downvote
a Chance to edit the Q before some timeout?
 
I just thought that if you use replace methods with function objects then you can use prototype inheritance.
 
6:03 PM
I'm not sure. I just think it's lame that people downvote instead of editing or commenting on improvements, then never come back to clear downvote if the question is edited to be better.
 
Als
@Xaade: Yes
 
@hexa Naw, they simply shouldn't be anonymous.
 
I like that
 
that works for me
 
If you downvote, it reports you to even 1 rep users.
That's a fair trade for downvotes on questions not costing rep.
 
Als
6:04 PM
@Xaade: so notifying Q downvoters, if the Q reaches 0 net downvotes makes sense
 
Actually, I really think that the only usefulness for < -1 net is for sorting question quality.
 
I love that ppl can't priv message you on SO
 
Als
oh Btw downvotiong I don't know much of that, I just downvoted once in ever
:P
 
Which means I think that only one downvote should count against you.
 
Als
@hexa: you compensate for that by being in here
 
6:05 PM
I always downvote when my rep is odd. i dislike odd numbers
 
I don't see a point in wiping someone's rep because they got downvoted by every user on SO, for ONE bad question.
 
@Xaade well it's already imbalanced since upvotes are +10
 
@als But you see, we have experts here. not the random noob "plz gimme teh codez pls" "i did EVERYTHING you said and it doesnt work" "blablabla"
 
Als
@hexa: I was wondering where the occasional irrelevant downvotes come in from :P
 
@hexa The other day I was at 1025 rep. I had to downvote something.
 
Als
6:06 PM
Now i know
 
Maybe you since rep gain is capped, maybe rep loss could be capped as well?
 
@kbok what do you mean?
 
@CodeMonkey 1024
 
Als
@hexa: Experts? wooh this is a Zoo!
 
But hey, we're so much better than EE.... we can neg bomb.
 
6:07 PM
I don't like the practice where certain questions are mass downvoted. It's like a mob doing a lynch party.
 
And neg bombing is cheap as free since anyone can neg vote.
 
EE is paid
SO is just a better Yahoo Answers
2
 
@hexa Better because you don't end up with answers like "Yes."
 
Als
And what about mass upvoting?
 
@Xaade well that's because no one was upvoting/downvoting questions
 
6:08 PM
@Xaade and "Lol nub"
 
Als
@Xaade: I did that and i got 112 votes for that last time i checked lol
 
@Als rep gain is capped..... fixed.
Is rep loss capped?
 
Als
@Xaade: At 200 per day, with accepted answers & bonus points as exceptions
 
@Als bonus points?
 
Als
@Xaade: No one thought of that it seems, because So seems to encourage, deleting the Q?
@0A0D; You can earn any no of bonus rep in a day, no cap on that
 
6:10 PM
 
@Als What if someone just gets bombed on a good question....
 
@TonyTheTiger Wait what?
 
What if there's some harassment
 
what C++ Standard Library do the Intel and IBM compilers use ? Dinkumware?
 
6:11 PM
Does IBM have a compiler?
 
Kerrek was #11 last month 6.7k rep, nice work
 
Als
@Xaade: Since it is a community driven exercise, seems it is left for the community to detect such an anamoly
 
@CodeMonkey just found it
 
@StackedCrooked ok kewl
 
Als
6:12 PM
@hexa: Who keeps track of the rep leaque? The skeet guy makes like 500+ rep a day
 
@Als how
 
@Als But there are no tools to FIX, since upvoting back to 0 may in fact also be unfair since the OP doesn't deserve 200 rep.
 
if its capped...
 
@als well but he is one in the league, its interesting to see the other ones
@als and he was actually 2nd last couple months
 
Als
@0A0D: Bounty points + accepted answer rep is above the rep cap.
 
6:13 PM
Anyone want to start fantasy SO leagues? Skeet's not allowed on anyone's team though.
 
Als
@hexa: Hmm...Don't know, tell me if you see me there :P
@Xaade: Yes, your reasoning makes sense, but perhaps its too much baggage to carry about those calculations for each individual user?
@hexa: Just checked, I am at useless #36
 
is C++ a "niche language for a very specific subset of programming tasks"?
 
@CodeMonkey no, it's a language that aims at covering much ground
 
Als
@StackedCrooked: Who is CodeMonkey?
 
6:18 PM
@Als "Code"
 
@Als It's @0A0D.
The chat is quite buggy about that.
 
@Als when typeing @Code followed by TAB his name is completed.
Is CodeMonkey the same person as 0A0D?
 
Als
@StackedCrooked: It gives me @0A0D not @CodeMonkey
It does not autocomplete CodeMonkey for me
 
@Als it no longer works for me also
 
That was my old name
 
6:20 PM
@Collecter
You can change your SO name?
 
@StackedCrooked every 30 days
 
Als
@0A0D: Did @sbi, threaten you to change the reference to ape in your name? He wants to be the only ape in here?
 
once you do it, you have to wait 30 days
 
ok, watch this Matt Damon take down of a Cameraman being a dick:
 
@Als Apes aren't monkeys
 
sbi
6:21 PM
@Als Huh?
 
I'll change mine so @StackedCrooked stops asking why I troll so much.
 
Als
@0A0D: Here we go again..
 
@Als huh?
 
@Xaade did I? Could be, I forgot :)
 
@Xaade you don't troll
 
6:22 PM
0a0d = ape?
@CodeMonkey I troll in here... but it's all jest
 
Als
ohh You never miss a thing you grumpy old man @sbi
 
@Xaade it's all good
 
For ultimate confusion, I suggest that someone changes his name to "0A0D".
 
Als
@sbi: cut me some slack!:P
 
@Xaade, why do you ..stroll so much?
 
6:23 PM
WTF????? I didn't reply to CodeMonkey!!!
 
sbi
@Als Well, it does make pling when you mention my name like this. Hard to miss that.
 
@Xaade ?
 
sbi
@Als I only wanted to understand what you're saying about me! I fail.
 
@sbi pling!
 
@sbi He said you are the only ape in here and no monkeys allowed
 
6:24 PM
@Als #36 is pretty good
 
sbi
@CodeMonkey Why not?
 
@CodeMonkey What does that message say before "I troll in here...." For me it says @CodeMonkey
 
Als
@0A0D: Now acting like a daddy's boy!
lol
 
sbi
@Xaade I turned off plings from you. I don't hear them.
 
@Als i really have no idea what you are talking about
 
6:24 PM
@sbi whiff
 
Als
Am i Sleep talking?
 
@Als I guess
 
I erase people from chat with typex. But then it scrolls up again.
 
typex
 
@sbi But seriously.... can you do that?
 
6:25 PM
didn't work
 
@CodeMonkey Who will it @ this time?
 
Als
@0A0D: I atleast got the big boss @sbi back in play here now :P
 
WTF.... it keeps changing to @CodeMonkey.
 
@Xaade I am confused
 
6:26 PM
I @CodeMonkey, sbi @CodeMonkey, Als @0A0D
 
Als
@Xaade: I cant see no darn @CodeMonkey, I have to type it manually
 
quit plinging me
 
sbi
@Als You got yourself a few negative points. Mentioned me incomprehensibly and denied explaining it. Very bad for your health, that.
 
@Als It only happens for replies. And only certain people.
 
pling it
 
sbi
6:26 PM
@Xaade I can't hear you!
 
Could assembly be considered an interpreted language?
 
sbi
@Als You need to reload the page. It's cached in your browser.
 
@sbi No seriously, can you ignore a certain person's pling?
 
If I hear a pling I feel like it's my birthday.
 
@StackedCrooked nope
 
6:28 PM
@CodeMonkey Still broken
 
Als
@sbi: ahh...I was trying to mess with @0A0D that seems you asked him to remove his @CodeMonkey since you want to be the only one with anything to do wih apes or monkeys.
 
13 secs ago, by Xaade
@CodeMonkey Still broken
 
Als
@sbi: All and all it was a gross attempt to bring you back to chat!
 
Which person does this @?
 
sbi
@Als I didn't ask nobody that.
 
6:29 PM
@sbi that's why it makes no sense
 
sbi
@Xaade Maybe you can't, but I can.
 
@StackedCrooked No idea. why do you ask?
 
Als
@sbi: I know!
 
Today I discovered you can have free functions in Java thanks to the static import feature.
 
Als
1 min ago, by Als
@sbi: All and all it was a gross attempt to bring you back to chat!
 
6:29 PM
@sbi I refuse to be that gullible.
 
@StackedCrooked free? as in beer?
 
What does the hide posts and ignore user everywhere features do. I'm not sure I want to actually try it if I can't undo it!
 
0
Q: Can I re-define a function or check if it exists?

TimI have a question about (re-)defining functions. My goal is to have a script where I can choose to define a function or not. Like this: void func(){} int main(){ if (func)func(); } AND without the function, just: int main(){ if (func)func(); } Anybody an idea?

 
@Collecter Assembly (machine instructions to be more specific) can be directly fed to the CPU without requiring compilation. So you can have assembly that generates assembly and so on. This kind of programming is normally only possible with interpreted language.
 
@CodeMonkey Can't he just use precompiler statements, or does he mean dynamically, which would be impossible I would think.
 
Als
6:31 PM
oh btw a question, What happens if you change your user name? The @username comments referring the particular user are left dangling?
 
@CodeMonkey No, as in unbound to an object. (Actually they are still static methods, but you no longer need to prefix the class name, making them as good as free functions).
 
Anyone know when inline made into C? What standard?
 
@StackedCrooked I was replying to your changing your SO name comment.
 
All my replies to @0A0D replace his name with @CodeMonkey. Why is this?
 
@Xaade Because I changed my name
Als figured it out
 
Als
6:33 PM
@CodeMonkey: Does it change in the comments in SO main too?
 
You can look at my profile.
 
@Xaade does it still happen if you refresh your browser?
 
@Als No, thats the only bad part
 
Could be DOM corruption?
 
@StackedCrooked Yep
 
6:33 PM
this was a concern back in '09 when they allowed you to change it
 
@Xaade I don't have it.
 
Als
@CodeMonkey: And what happens if you revert back to the same username after playing around with another, do the @ comments refer back the user properly?
Okay enough sleep talking ZzZz time for me.
Good day or Good night whatever suits your timings folks.
 
@Als it's only 20:30 PM :D
(I'm only pretending to be ignorant of different time zones.)
 
@Als Well, the comments are just text parsed by the SO engine. So whatever you were notified about previously still ultimately point to the same inbox. The name is immaterial. It only means something to me and you.
You might as well be "anonymous"
 
Als
@StackedCrooked: I know! I pretended to ignore that 20.30 :P
@CodeMonkey: But that means I cannot click on the username and follow to the user's profile
 
6:38 PM
but the way the comment system is setup, you need a user name. If there was actual threads, you wouldn't
 
Als
I may very well want to do that in certain cases.
 
@Als Yes, you can. Comments are immaterial
 
Actually, I now realize that "20:30 PM" is kind of redunant.
 
0
A: Can I re-define a function or check if it exists?

XaadeUse function pointers, set them dynamically based on runtime conditions, and check for null pointers or wrap them in methods that do that check for you. Only option in C I can think of. In C++ you could combine templates and DLLs to dynamically define at runtime.

 
Like hungarian notation.
 
Als
6:39 PM
20.30 is enough its a 24 hr clock notation
pm is redundant
*nods around proudly, at his timely display of timing skills
 
@Xaade the WinAPI defines functions as Foo_() followed by #define Foo Foo_ this practice allows you to effectively redefine their functions (using undef).
 
Als
oh bye anyways....off i go
 
@Als 'night!
 
@StackedCrooked Not at runtime.
 
@Xaade lol, no
 
6:41 PM
The only way in C to define methods at runtime is to use explicitly loaded DLLs
 
@Xaade or a scripting language frontend
Can you also unload dlls?
I wonder if it would be possible to migrate a running application from one binary unto another binary using dll bridge.
 
@StackedCrooked LoadLibrary, ReleaseLibrary.
@StackedCrooked yes
@StackedCrooked But the executing binary would stay the same.
In C++ you could use a template to do the dynamic loading unloading and interface for you. Then have a wrapper that determines which template to use at runtime.
Deallocating the template class and instantiating a new one would unload and load the new DLL.
Wrapper delegates
And bam, you have a dynamically defined implementation that's chosen by a Strategy pattern.
Although, I'm not sure what all this effort would get you.
Depends on what the OS does with the unloaded DLL?
 
This reminds me. I had this class that loads/unloads GDI+ on construction/destruction. I let all my classes that depend on GDI+ inherit this class. (Multiple loads incremented a refcount and the library is only unloaded after an equal amount of unloads).
@Xaade btw, what would be the template argument?
 
I know it would let you limit distributions to clients that only need a subset of implementations.
 
Using templates to do something dynamic sounds contradictory to me.
 
6:54 PM
@StackedCrooked So you don't have to inherit. Which means you could have different templates manage DLL load/unloads differently.
 
@Xaade using inheritance means that the GDI loader base will be constructed before the user class is constructed, and destructed after the user class is destructed. That seemed neat to me.
 
Templates allow strategy without delegation, in that you simply select template at instantiation. In the case of DLL load/unload management, However you load, you want the same logic to unload. So in this case you keep matching instatiation and deallocation.
 
@Xaade are you talking about policy based class design (because that relies on inheritance as well).
 
I'm talking about dynamically selecting compile time instantiated behavior, which limits you to sharing allocation and deallocation logic, but allowing mixing that logic with different objects.
The benefit of inheritance without the limitations of inheriting from only one base.
And the safety of preventing a user from changing delegates between allocation and deallocation.
You could do the same thing with a delegate selector at instantiation, and restricting the delegate pointer to const.
 
Dynamically selecting compile time instantiated behavior? Could you provide a code sample to illustrate?
@DeadMG do you consider the iostreams to be bad design?
11
Q: Is the C++ Standard Library replaceable?

StackedCrookedIs the C++ standard library tied with the compiler or can a different implementation be provided? I wonder about this mostly because it seems to that the relation between the typeid keyword and std::type_info hinders this. The typeid keywords depends on the existence of std::type_info, which I w...

^ Got a little rep from this question. But nobody addressed the type_info issue yet.
 
@CatPlusPlus it's not Friday afternoon yet.
 
@CatPlusPlus wtf
 
@CatPlusPlus that is pure adhd
 
@CatPlusPlus that second link was rather disappointing
 
7:11 PM
@StackedCrooked Yes, quite so.
 
It has rainbows and unicorns.
 
My expertations being high after the first one.
@DeadMG Do you dislike the concept of streams? Or is it the stl approach in particular?
brb
 
I dislike the Standard approach
way too much inheritance for a problem that doesn't need any
the function names are horrific
and it exposes way too many internal implementation details
plus, it's dog slow
and, at the absolute very least, it should use <<= instead of <<, because that's the semantics of the operator
 
sbi
3
Q: Why was my flagging deemed "Invalid"?

sbiIf I remember correctly, this question was moved to codegolf, to which I objected at codegolf by flagging it there with the comment "This is not about the shortest piece of code and should never have been moved to codegolf, as it doesn't belong there." The question was since moved back to Stackov...

 
@sbi I saw another thread about flagging valid/invalid today
 
7:20 PM
13
Q: Make Valid-Flags clearly distinguishable from Invalid-Flags

0A0DMaybe it is just my eyes, but it is hard to scan your recent flags to tell what is Valid and what is Invalid. Can we highlight Valid in green or some other color to make it stand out?

 
@CodeMonkey that's what I saw
hahah
 
what's happening guys ? I'm bored
 
nothing much
 
Nothing.
 
Nothing
 
7:30 PM
wow, that's boring... lol
 
I'm thinking of eating something actually..
 
I'm banging my head on my desk
 
That's what's goin' on
 
look what happens when a really easy question is posted: stackoverflow.com/questions/6917510/c-declaration-question/…
the same thing, 8 times
 
sbi
@ManofOneWay Aren't you at work?
 
7:36 PM
@CodeMonkey Hm, interesting
I never did wonder why they write it like that ;-)
 
sbi
@TonyTheTiger But that's about cosmetics. Mine's about content.
 
Chat doesn't show nick changes without refresh. I was wondering who the hell is Code Monkey.
And why that message points at 0A0D's message.
 
@CatPlusPlus late to the party
 
@CodeMonkey Thank IPU, I don't like parties.
 
sbi
@CodeMonkey What I usually do in this case is to upvote the oldest answer that's good enough.
 
7:38 PM
@CatPlusPlus I don't like acronyms I don't know. What is IPU?
@sbi then upvote mine :) I was frist
 
sbi
@CodeMonkey I am upvoting the first (not "frist") that's good enough to be upvoted. I did so, and others are already following my example.
 
user457812
I really hate it when people refer to their IDE as their compiler. Gah.
 
@nil: Did it happen to you recently?
 
user457812
Yep.
 
@nil It make me want to stamp on kitties.
 
7:47 PM
@StackedCrooked Do you put stamps on kitties to mail them?
 
I guess it's because more and more learn to "program" (note the citation marks) and won't bother themselves in learning basic concepts about it
 
user457812
Heard it a lot more back when dev-c++ was still around, but now that Code::Blocks has apparently taken dev-c++'s place, I hear it from those folks as well.
 
@Collecter Yeah I stamp them real hard to make them fit in the envelope.
 
Hey, what's a compiler.. Man, the wiki page is super long.. tl;dr
 
user457812
It's something that does something sometimes!
 
7:48 PM
@nil there are worse things than people referring to their IDE as their compiler.
I wouldn't get upset over that.
 
user457812
I'm not upset, I just hate the stupidity of it.
 
user457812
Thankfully, it's easily fixed by informing them that IDE X is not a compiler.
 
The IDE has-a compiler, not is-a compiler :)
 
@StackedCrooked Ouuuh.
 
I compile with straight Vim, I'm so leet.
 
7:50 PM
@StackedCrooked I compile by looking at my code.
 
@EtiennedeMartel Or should I say uses-a compiler?
 
user457812
I compile by making punchcards.
 
Butterflies compile my code
 
I compile by doing the arithmetic by hand. Sometimes I cheat and use a telraam.
 
user457812
You beat me to the abacus. Bah.
 
7:51 PM
 
beat me to XKCD
 
Just in case noone have ever heard of that joke..
 
@nil abacus, that's the word I was looking for (you dutch?)
 
user457812
No, I just have Google
 
@Patrick It's only used every second day or so.
 
7:52 PM
@nil you're a really modern person ;)
 
@CatPlusPlus: Yeah..I know..but..
 
Emacs is idolatry that leads to rsi.
 
user457812
I'm so modern that I replaced my hands with kittens
 
@nil that must be awesome
 
user457812
Awesome and adorable
 
7:53 PM
@StackedCrooked Here you go
 
@Xaade wow you worked on it all this time? kudos man
 
Well, it might be useful later on.
This is just a rough draft, hence the warnings.
But as you can see, c1A is stuck with A's behavior as long as it exists, however, I can reuse that behavior for c2A.
But I can also create a c1B and c2B. Showing that I don't have to make a new class to 'inherit' from A or B
 
There is the pointer indirection though, making it slower than for example policy based design. (But also more flexible.)
 
Run-time behavior selection, with compile time behavior binding.
 
Looks like strategy pattern to me though.
 
7:58 PM
But the pointer indirection is just for the selection and strategy pattern.
 
@Xaade you need to deref the pointer to call the behavior also.
 
True, but isn't that how strategy works.
It's like a collection of class wrapped function pointers.
How can you dynamically select behavior without dereferencing a pointer.
 
I thought this question was interesting
2
A: Opposite of const/writeonly qualifier?

Code MonkeyThe write-only qualifier would be useful for hardware registers since reading from a write-only register would lead to undefined behavior or subtle run-time errors. You can use a #define such as #define write-only and then apply this to a register like, special_register write_only UTXBUF; There...

 
@Xaade I guess you can't. (Unless perhaps you're doing some kind of jitting.)
 
@StackedCrooked Well, my goal was sharing compile time bound behavior. And this would work well for say, creating dynamically defined behavior using dlls. Parts of the behavior (like managing the dlls) would be compile time bound, but parts would be dynamically loaded, like the actual definition of the method you want dynamic.
You'd just keep the dll management methods out of the interface.
 
8:05 PM
@Xaade I see what you're getting at.
Strategy pattern with the actual strategy encapsulated in a dll.
 
With the template managing all the dll work for you.
And different "strategies" for doing so, if you so wished.
Without having the methods bound to the dll work by inheritance.
So if you really wanted, you could not use the template and implicitly link.
Partial dynamic strategy.
 
> The kid in the back wants me to define "logic."
^ Teacher quote.
 
@sbi No
 
How would you respond on your feet? No Wikipedia in this situation.
 
user457812
"Get out."
 
8:08 PM
@StackedCrooked The thing I do for you until you do it the way I do. Some people call this brainwashing; I call it education.
Epic comeback.
 
@Xaade Oh, now you're just being cynical.
 
Asking for a definition of logic off-topic is cynical in a class where accepting the concept of logic is required. An answer to meet the question fairly.
 
I would just say that I don't know the definition of logic by heart but I can provide it next time.
 
Now you're bowing to an idiot.
 
user457812
I don't think they'd ask for just the definition
 
8:11 PM
@Xaade They have the right to ask.
 
user457812
If they wanted that, they could pull out their phone (because all students have phones in classes now, the jerks) and look it up
 
@StackedCrooked Logic is the method of reasoning the truthfulness of statements. I would say that
 
@Collecter true and true or false. Logic
 
That is an example of a logical statement, not logic
 
I would mumble about the greeks and then change the subject.
 
8:12 PM
Logic is taking a collection input of assumed factual statements and resolving a concrete answer.
 
user457812
I wish I could remember what all I learned about modal logic.. that was fun stuff.
 
Deduction is resolving the truthfulness of statements assumed factual by logic.
Induction involves heat...
 
New Oxford American Dictionary: logic: reasoning conducted or assessed according to strict principles of validity
 
Ah validity.
It irritates me when someone says something is valid when they mean true.
 
user457812
But what about soundness and kittens?
 
8:16 PM
You could tell her to write a paper on logic, as punishment :)
 
user457812
Kittens are damned important when it comes to logic. They are the element that ties it all together.
 
It if the kittens are both valid and true they are quite sound.
 
if (p->num == NULL) { return NULL; } else { return p->num; }
genious right?
 
return p->num == NULL ? NULL : p->num;?
 
just return p->num;
 
8:23 PM
facepalm
 
to both of us... that was my code hahaha
 
That's the queue for me, I need something to eat
Can't think straight! bbl
 
user457812
Love those moments.
 
why not just return p->num;?
 
I am leaving also, see ya.
 
8:24 PM
@0A0D I know! Dunno what i was thinking back then
 
Is the guy blind?
 
I don't think he is.
^ Ken Thompson and Dennis Ritchie being awarded the National Medal of Technology from Bill Clinton
 
fuck that, give them nobels
 
No belles?
 
8:30 PM
no bills
 
no pills?
 
8:57 PM
@EtiennedeMartel eeyyy how are you?
 
no pils?
Damn, I'm 31. Another 31 and I'll be 62.
 

« first day (290 days earlier)      last day (4675 days later) »