« first day (929 days earlier)      last day (4034 days later) » 

2:00 PM
@DavidKron I never really started
 
And whether it is in C# or not is none of my concern
 
@DeadMG but it's great, I can have a list of Objects and just store anything in them! wooo!
 
Why would it be a worse idea in c++ than all other languages that are used in for example unity etc?
Unity has a common base object
 
@DavidKron Because in those languages, even if you don't know the type, you can use reflection to get useful information and do useful things with it.
but C++ does not possess run-time reflection.
 
2:01 PM
I know no game development platform that don't use a common base.
 
For one, because C++ has value semantics that actually works and that polymorphic objects represent a corner use case
 
@DavidKron Also templates vs generics
 
@ScottW I know!
 
frankly, your argument is "OH MY GOD BUT XYZ DOES IT TOO", which is an exceptionally dumb argument.
 
@R.MartinhoFernandes nom
 
2:01 PM
@ScottW Thats why i made SAL!
 
@DavidKron I know no C++ game development platform with a decent design
 
SAL combines templates with generics!!!
 
@DavidKron what? renaming it makes it better?
 
I use templates, A LOT
@kbok Exactly!
 
@DeadMG Meh, no. It's mostly because there was no variant type and no generics in Java.
 
user1357851
2:03 PM
@R.MartinhoFernandes yeah very healthy ... just had BBQ buffet - I really shouldn't
 
is another reason why it's even dumber in C++, but not the only one
 
@DavidKron "common base" makes anything not-decent. It's super useless bloat
 
user1357851
also came back too late for my daily jog
 
@kbok Valid argument...
 
user1357851
now I will totally turning to a pig overnight
 
2:03 PM
just call it thing, widget, gadget, doodad ...
 
Xeo
@R.MartinhoFernandes I'm eating grapes right now! Yum.
 
Meh, grapes.
 
fuck
 
@kbok There is something called explaining opinions, not just expressing them.
 
I've gone from just one duplicate of std::vector<char>::iterator to five.
 
Xeo
2:04 PM
lol
 
And hey!
 
Xeo
Reminds me of that comic about programming languages and essays.
 
Even if i didnt use a common base, the question is still valid
Because it is a question of templates
 
@DavidKron what in your opinion makes common base classes good?
 
yeah
 
2:05 PM
is iteration faster than recursion in theory?
 
you don't need inheritance when you could use a God object.
 
user1357851
user image
2
 
@Crowz No.
 
@ScottW make it a singleton for good measure? :p
 
And if you can answer it in a way that wont exploit having a common base, i may even change it!
 
2:05 PM
@DavidKron Yeah, I think a common base is not useful. I don't know how I can explain it more than "I don't see any usefulness in this"
 
15 mins ago, by David Kron
Isn't it obvious! Virtual functions and common members :) !
 
Thanks Martinho
 
@DeadMG how so, like, with recursion, aren't you putting stuff on a function stack then popping it off? That seems to animate in my mind as longer than a straight line to the answer
 
Anyway, I'm off.
 
@Crowz Optimizations like tail call exist in theory as well as in practice.
 
2:06 PM
13 mins ago, by R. Martinho Fernandes
Dudes, the benefit is that you have common members, that are not actually common because they are optional. Why can't you get such an obvious thing?
 
@R.MartinhoFernandes great...so I can...do the same stuff with everything, regardless of what it is. makes perfect sense
 
Oh so you give up?
 
there are no useful operations on any type except destroying it.
 
The coworker I got along with the best here is leaving today :(
 
@ScottW @melak47 Hit f12, open console, and put run that
If you dare
 
user1357851
2:07 PM
@TonyTheLion Oh noze, he/she's ditching you for better other colleagues
 
@melak47 You dont do the same stuff on the objects as you do with your regular c++ classes!!
 
ah it still seems like a huge pain to use recursion. The only application where it seems extremely intuitive is ray-tracing.
 
@DeadMG Maybe reflection stuff, if you have it.
 
So is anyone actually going to read my question? https://dl.dropboxusercontent.com/u/11807047/hurrdurr.pdf
instead of just bitching about it?
 
@R.MartinhoFernandes Agree, but you really need language support for worthwhile run-time reflection.
 
2:08 PM
And i am here, bitch all you want.
 
@DavidKron Stack Overflow
 
It will be removed after 2 mins
 
> Unfortunately, this video is not available in Germany because it may contain music for which GEMA has not granted the respective music rights.
 
I won't read a multi-page essay that involves the words "object manager".
 
user1357851
My poor legs - too injured from jogging :'(
 
user1357851
2:10 PM
cancelled my weekend extreme hiking
 
ohhh porn
 
user1357851
subbed in not so extreme scenic cycling
 
Regarding common base, there is also memory allocation.
 
:9192300 nope, I'm okay :p
 
I have a feeling I don't want to know what is the relation between a common base and memory allocation.
 
2:11 PM
@melak47 Ah well, you're immune
 
I'm unrickrollable! woooo!
 
@R.MartinhoFernandes None, you can only allocate for the derived class, since you need to know the full size.
ok, remember when I said that Wide only works when you include a test function with Clang? Now it only works if you don't include the example function with Clang. :(
 
I don't remember that, but it sounds promising.
 
gawd, cold called by a recruiter on my cell phone, how annoying!
 
ack
yeah
 
2:13 PM
the linked in mails I don't mind so much but come on
 
Xeo
> Martinho Fernandes retweeted a photo from Chris Hadfield on Twitter!
Why do I get such mails.
 
something to do with redundant template instantiations causing Clang to create more than one type for one actual type.
 
user1357851
I am still getting occasional call from recruiters as well, although not as often
 
@Xeo I am that important!
 
Xeo
You're just a spambot.
 
2:14 PM
You can turn off that crap somewhere on Twitter's webpage.
 
Just realised... I could probably look back through the transcript here and see if I can find out some sort of pattern to my feeling bummed out...
 
Xeo
Yeah, I'll do that now
 
So, whose idea was it to make this:

Lounge<C>

C Programming Language Board: It's like an answering machine; ...
 
lots
 
So sad
 
2:15 PM
they were hacked off that we wouldn't C helpdesk them
 
At least call it something that makes sense in C...
 
> Hi, I need to make global data structure using C programming language let's say a list. and I can't make it global. Since I'm going to use that List is Postgresql ,I need it to be Global. I appreciate your time in advance
 
@ShotgunNinja Full program: int main(){} // Lounge<C>
@Collin .......................
 
@Collin Whoa, Postgresql requires global lists? I had no idea.
 
@ShotgunNinja Probably not.
 
2:16 PM
@Collin LOLWOT
 
Last message in Lounge<C>
thought I'd share
 
@R.MartinhoFernandes cc/urban facetious
 
strictly, that sample is probably UB since the comparator isn't a SWO
 
There's a C lounge?
 
user1357851
point to this lounge, then --;
 
2:20 PM
@GamesBrainiac more like a cesspool
 
@Collin Must we hate one another?
:P
 
@GamesBrainiac When you're defending a room which is that bad, then yes.
 
LOL @ your last comment. No one uses C.
That cracked me up.
 
They're a deliberate branch off of us, made in anger that we wouldn't answer their pedantic and oft-misspelled questions.
What I meant by that was, there's not enough of a C developer community on StackOverflow to be able to support a C-language room.
It's been tried in the past, and has failed.
 
it's more than that
 
2:22 PM
And C is not gaining a development base in any way.
 
the C++ room has a whole bunch of people who don't have the slightest idea about C++
see Bartek, Zoidberg, ThePHD, etc
 
heh
 
@DeadMG Ouch.
 
That was way over the top, man.
 
2:23 PM
I actually have some self-taught knowledge of C++, but I'm nowhere near the standards base that some of the guys here are contributing toward...
 
@R.MartinhoFernandes I agree.
They're definitely not as good as I am, but I'm sure they know something! ;)
 
Xeo
@DeadMG s/etc/Puppy, etc/ - after all, you know so little about C++, you'd rather make your own language! :P
 
@R.MartinhoFernandes It was a tiny potshot, it was not over the top at all
 
@Xeo And it's coming along nicely, despite Clang's best efforts :P
 
2:24 PM
@DeadMG Come on Dead. Thats a bit unfair, they do know quite a bit.
 
I think it's time to put join or bind in Taussig. Still not sure which one.
 
if it wasn't unfair, it wouldn't be funny, it would just be unnecessarily pissing on them
 
Definitely not as good as you, I mean, you even write a website about it.
 
join is more intuitive, I think.
 
@ScottW Is it always opposite dat for you.
Definitely not as good as you, I mean, you even write a website about it.
@ScottW e-food?
Or are the chicks food?
 
2:26 PM
@R.MartinhoFernandes If you want familiarity points you can mimic LINQ? I don't know how that works though.
 
You're Cannibal! OMG!!
 
Xeo
@R.MartinhoFernandes Both!
 
@ScottW What about ducks?
 
@LucDanton LINQ uses SelectMany as a primitive, but most people use it with query syntax (aka SQL shaped do-notation) and not directly.
 
@ScottW : Don't tell me you're a swan eater! ~The Swan Eater~ starring Scott
 
2:28 PM
@GamesBrainiac Too many exclamation marks.
 
@EtiennedeMartel Can't help it, on tartazine.
 
@R.MartinhoFernandes Fun fact: I never use it with the query syntax.
 
@R.MartinhoFernandes Does that kick in e.g. with 'nested' queries?
 
@ScottW IIRC it tastes fishy.
 
2:29 PM
@ScottW Have you been playing as Zerg again on SC II?
 
@ScottW No.
 
@ScottW I wish they made the campaign longer
Its just so bloody good.
 
@GamesBrainiac Do they explain why Kerrigan went back to the zerg?
 
@Neil Erm, yea. At the very beginning.
 
Meh, I'll just implement projection and then I can easily implement one in terms of the other.
 
2:31 PM
She's "cured" and then she says, "screw you mankind..."
 
Hmm, I don't actually need projection if I make bind the primitive.
 
@GamesBrainiac I've only played the wings of freedom
 
@Neil Typical female behavior...
 
no wait I don't fucking give a fuck what the fuck are you even talking about nerds
0
Q: header file and classes not working

user2323207The header file used to access the question bank of the quiz // // Header.h // Coursework_Project. // // Created by Leanne Rutledge on 15/04/2013. <rutledge-l@email.ulster.ac.uk>. // Copyright (c) 2013 Leanne Rutledge. All rights reserved. ...

 
2:32 PM
@Neil That campagin was awesome, I just wish the heroes revived.
 
I'm not understanding a single thing...
 
@GamesBrainiac Yeah, Blizzard does a decent job at storytelling
 
@Neil It does a decent job @ everything.
 
Well, heading off. Later.
 
2:33 PM
They make such great villains
 
Its the best goddam game dev out there
 
@R.MartinhoFernandes What will you be doing until then?
 
user1357851
don't mix kimchi, BBQed meat & seafood & fruit juice
 
user1357851
now I am feeling sick
 
user1357851
2:34 PM
argh
 
And remember that the common base is irrelevant for the problem.
Its a problem of meta-programming and nothing else
 
@DavidKron Voted to close.
 
@LightnessRacesinOrbit Why?
 
@DavidKron Try reading anything that anybody said about your question over the last hour or so.
 
@LightnessRacesinOrbit You where the one i thought where going to support me
 
user1357851
2:35 PM
@LightnessRacesinOrbit you sounded like a jealous lover wife
 
@DavidKron Why's that?
 
@LightnessRacesinOrbit Agreed -1 vc
 
@LightnessRacesinOrbit I felt like you where the only one who actually wanted to help
 
Wow, I did not know that there was a limit to the rep we earned with upvotes in one day.
 
1
Q: Are member new/delete overloads in a derived class ever useful?

PotatoswatterI was just answering a question about the lack of placement delete corresponding to placement new. The reason seems to be the way operator delete is called according to the dynamic type of the object (corresponding to the type used to find operator new). Placement new has been useful to me. When...

 
user1357851
2:38 PM
now I am feeling way too sick, I will roll in misery while trying to finish my lastest app after taking a hot shower.
 
@Morwenn ^ so go for the bounty, it's exempt from the limit.
 
@Potatoswatter Haha, I wish I was good enough to answer bounty's questions.
 
@DavidKron I did. Doesn't mean it's a good question. :)
 
@LightnessRacesinOrbit Well, its quite hard to help me without reading.
 
I can't get rep from upvotes nor can I edit anything anymore today. I'll spend the rest of my day watching MLP.
 
2:44 PM
Ok, ive been thinking. I really must have a common base class. The main reason being object::update. There is no way i can update objects/entities if they are not using a common base
 
NOT PONIES!
 
Major league ponies?
2
 
@Morwenn Awww yeah.
 
Or Major League Pissing-match?
 
@DavidKron template<typename T> update(T& t) { t.update(); }
 
2:45 PM
@EtiennedeMartel Oh, didn't see you were there.
 
or some such variant
 
I'm always here, lurking in the shadows, looking at @R.MartinhoFernandes.
 
(This won't get creepy at all)
 
@TonyTheLion Exactly, thats how it looks right know, but type t needs to have the function update
 
2:45 PM
Why am I not surprised?
 
The only way it would really work, would be using function pointers
If i from all types request a function pointer...
 
In an enhanced for loop, how do you do something only for the last iteration? For example for(auto ch : str), and you are doing something with all the characters in the string, how do you do something only with the last character of the string.
 
@GamesBrainiac I think you just don't use the enhanced for loop
 
I could also resume taking pics of flowers in my garden.
 
@TonyTheLion This would also be extremely unsafe if the object did not have the required function..
 
2:48 PM
@DavidKron well, I'm sure template wankery may be able to check that
 
@TonyTheLion Yes and it would be extremely annoying for the developer
 
@TonyTheLion It requires the developer to have insight in the inner workings of the engine
 
@ScottW Thanks! :D But, what if you wanted to do this with a local variable?
 
@DavidKron it just requires the developer to know that T should have update() function
 
2:50 PM
The user should only need to understand it interface to be able to use it
 
that's not much to ask of a developer
 
@ScottW Yea, I guess you would have to do that.
 
@TonyTheLion Yes for that little code, but in practice there is a lot more.
 
Thanks Scott.
 
I like silently judging people on the internet
 
2:52 PM
@TonyTheLion It would need this and that function, that variable, and so it goes on the more features i add to SAL
 
well then I cannot further help you
 
@Crowz Worry not. That's also true for them.
 
have you considered your design may have flaws?
 
Witch breaks all old code, over and over
 
@Morwenn I expect people would be silently judging me, I say a lot of stupid stuff hah. "wait an int is 64 bytes, right?"
 
2:53 PM
Yes it has, the clear error i posted on SO
 
@Crowz Do you consider downvotes silent?
 
@Morwenn "downvotes"? In chat?
 
@DavidKron Which witch?
 
If getting rid of the common base would solve this, i would be more than happy to accept it.
 
What is the sound of one finger voting?
 
2:54 PM
@TonyTheLion The code breaking witch, master of destruction
 
@Crowz Yeah, getting black holes instead of stars.
2
 
I usually get Nebulas... no upvotes or downvotes
 
@TonyTheLion This reminds me of Jurassic Park for some reason.
 
2:56 PM
@TonyTheLion Which witch is which
 
@TonyTheLion Is that Glacier National Park? Probably not but it reminds me of it
 
@Crowz Oh, I'm flabbergasted!
Bloody Hell!
 
@EtiennedeMartel This was taken in Milford Sound, NZ
 
But seriusly, whats different between using a common base and requiring a type to have common functions??
 
Common base is runtime polymorphism, the other isn't
 
2:57 PM
@Neil The HotS campaign was silly. It was ridiculously easy even on the hardest setting, and the story was kinda awful.
@DavidKron One of them involves type switching at run-time, the other doesn't.
 
@TonyTheLion Yes but what difference does it make?
 
@DeadMG You don't play StarCraft for the story, bro. Unless you really like clichés.
 
@DavidKron Virtual functions have many restrictions. In addition, you must have dynamic allocation and lots of other ugly in order to make it work- not to mention virtual inheritance, etc.
@EtiennedeMartel True true.
 
@DavidKron When you really do need runtime type switch, you notice the difference.
 
@DeadMG Meh, I'm not so hardcore, so it probably wouldn't be so easy for me
 
2:59 PM
So you are basically not arguing about common base but about inheritance in general
 

« first day (929 days earlier)      last day (4034 days later) »