« first day (422 days earlier)      last day (4518 days later) » 

2:00 PM
besides, this minute detail is fairly irrelevant, I'll discover if I made a mistake through testing soon enough
 
oh god... your not testing all the time?
 
I can't test code which isn't finished
 
unit test
 
don't really have time for that
 
sbi
@DeadMG How can code be considered "finished", if it hasn't been tested yet?
 
2:01 PM
ಠ_ಠ
 
well it certainly can't be tested if it can't be compiled
 
sbi
@DeadMG Yeah, you rather spend thrice the time debugging later. A very convincing reason for skipping unit tests.
 
and it certainly can't be compiled if I haven't finished designing it
 
would you build your entire house without checking that the foundations are sound?
 
You can only build a house once.
You can't debug and hotfix houses.
I hope.
 
2:03 PM
More to my point.
if you wire a plug, would you just ram it into the pug socket and hope for the best, or just take 5 seconds to make sure you got it right
 
I'd design and build the plug first
 
before you have to rewire the plug and then go reset the trip
before I built the plug, I would define what the criteria are for a correctly built plug
 
meh
I can always paint the plug a different colour later
 
after it has failed catastrophically?
 
it's not going to fail or succeed based on the colour I paint it
unless I did a pretty shitty job earlier
 
2:10 PM
Does not having unit tests count for this "shitty job" thing?
 
no
 
¬_¬ the point is dude, test often
 
you can't test what can't be built
 
TTD
wait, what?
 
2:11 PM
no point having unit tests if the code I'm supposed to be testing won't compile because it's missing chunks
and even less point if the design is flawed from the outset
 
Another advantage of having tests is that you can detect regressions early.
2
@DeadMG But you don't even have tests for the parts that compile!
 
what is it your working on again?
 
I did test the part that does compile
remember?
 
That's not the same thing.
 
I spent plenty of time debugging that
 
2:12 PM
compiling is NOT a test
 
yeah, I know that
 
Xeo
0
Q: How to call a protected member function in a Base class from a Derived class

JKDI have a function in a base class that I'd like to keep protected and that I'd like to be able to call on a base class from a derived class. However, the code commented out below will not compile. This seems to be a bit counter-intuitive since a child is a parent, and the parent can make the call...

Close votes please ♪
 
alternatively
maybe I thought I had already solved this problem because I already solved this problem
that tends to help
 
sbi
@thecoshman Unless it's TMP. :)
 
@sbi Which is why TMP is one of my favourite things to do
 
2:17 PM
TMP... googled it... you can't mean ALL those things at once
 
Xeo
template metaprogramming
 
template metaprogramming
 
template metaprogramming
 
sbi
template metaprogramming
 
Xeo
Why did I know that everyone would follow suit // combo breaker
 
2:18 PM
You broke it!
 
huh...
 
sbi
@RMartinhoFernandes He made it, he can break it.
 
Xeo
Yeah, I'm so good, I can even break my own code!
;_;
 
sbi
@RMartinhoFernandes Give it up. Given his record here regarding his work for university (about one "OMG, they'll gonna bust me for that!" moment per month), you will never get @Dead to admit that testing is beneficial and not testing is stupid.
 
@sbi I am in full support of testing, and not testing is stupid.
 
2:19 PM
@sbi Sounds like a woman.
 
@sbi :P
 
There's simply no point testing code that won't compile, since you already know it won't work
since it won't compile
 
thus it failed your test and needs to be corrected
 
sbi
@RMartinhoFernandes ??
 
> one "OMG, they'll gonna bust me for that!" moment per month
 
sbi
2:21 PM
@RMartinhoFernandes How is that feminine?
@DeadMG Now put your code where your mouth is.
 
Xeo
Did I mention I love silly questions for reputation purposes?
 
@sbi He already has his code on his head.
 
when it compiles
I will
 
Can anyone tell me why the heck gl_FragColor = texture2D(textures[0], texcoord); and gl_FragColor = texture2D(textures[1], texcoord); (GLSL) produce the same result? I'm pretty sure the two textures are different. I'm on a shitty Intel card if that matters.
 
sbi
@DeadMG Do we really have to explain to you about having to write the tests first, and the code to be tested second?
@RMartinho I see that you seem to be evading my question.
 
2:23 PM
@RMartinhoFernandes have you actually set the two textures?
 
@sbi It was a stupid joke. It's not worth it.
@thecoshman I'm pretty sure I have. But I'll check for the seventh time :)
 
@sbi apprently @DeadMG lives somewhere that is yet to accept TTD into there lives
@RMartinhoFernandes actually setting them to different stages and not just the same stage twice?
 
    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D, textures[0]);
    glUniform1i(texture_uniforms[0], 0);

    glActiveTexture(GL_TEXTURE1);
    glBindTexture(GL_TEXTURE_2D, textures[1]);
    glUniform1i(texture_uniforms[1], 1);
Yep.
 
what is the second parameter of glUniformli do?
 
It always uses the first one.
 
2:26 PM
Thank God someone changed the asterisk obelisk bull**** caption. It was so weird.
 
@thecoshman AFAIK, picks the index of the texture unit I want for the sampler.
 
we prefer to refer to it as b*llshit here
 
Bullschildt.
 
sbi
@Xeo See this comment from the OP.
 
Finally a caption an idiot like me can understand
Bullschidt or b*llshit?
 
2:27 PM
@DeadMG I prefer to be a man and just say bullshit
 
> @sbi: I am doing my own list because I wasn't aware of the fact C++ already has them. Thank you for your hint. – drakide 4 mins ago
 
Xeo
@sbi I just saw it... ouch
 
@sbi That's wonderful!
 
@thecoshman I prefer to not get flagged
 
sbi
@IntermediateHacker What are you referring to?
 
2:28 PM
"Pointers are still pretty confusing to me"
 
@RMartinhoFernandes not done texturing with GL for a long time... and then not using the shaders, but that dosen't look right to me...
 
@thecoshman Why not?
 
sbi
@Xeo Yeah, pointed him to the book list. Not that I dare to hope he'll had straight for the bookshop, though...
 
I'm stuck with 2.0, if that matters.
 
@IntermediateHacker AFAIK you only get flaged if people choose to flag you, and last time I checked, no one here is a pussy who gets scared of by a bit of manly language
 
2:28 PM
ok then. BULLSHIT!
 
@RMartinhoFernandes ... no too sure... just try it with both having 0 as second parameter...
@IntermediateHacker :O totally going to flag you (think I need to stress </sarcasm>)
 
I wish I had more than 10K rep.
 
sbi
@IntermediateHacker You were referring to a message that was posted later by someone else and refers to yours?? I must be missing something vital here.
 
@IntermediateHacker What are you waiting for? Make that wish come true.
 
@RMartinhoFernandes what is the array you are passing into glUniforms?
 
sbi
2:30 PM
What is an "asterisk obelisk bull**** caption"?
 
Xeo
#define fuck delete
struct foo{
  int* shit;
  foo() : shit(new int()) {}
  foo(foo const&);
  ~foo(){ fuck this->shit; }
};
 
@RMartinhoFernandes Just bec. I live in the Middle East, doesn't mean I have a Genie with me.
 
This may come as a shock for you, but you can work for things.
 
Xeo
0
Q: C++ spooky constructor

Jan TuroňLets have this code class Foo { Foo(int) { } }; Then we have there results: int main() { Foo f1 = Foo(5); // 1: OK, explicit call Foo f2(5); // 2: OK, implicit call Foo f3(); // 3: no error, "f3 is a non-class type Foo()", how so? Foo f4(f1); // 4: OK, implicit call to default copy ...

-.-"
 
oh... u mean to get rep. I have to answer questions ???
 
2:32 PM
@thecoshman Nope, no difference.
@IntermediateHacker Now we're getting somewhere.
 
lol. okay then, I'm off to do some answering
 
@RMartinhoFernandes hmm... well, sadly I am stuck on more basic VBO/VAO stuff with openGL
 
sbi
Ha, I see that my comment recommending the book list failed to post, but the robot had already posted his...
 
Yes, I'm awesome.
 
woh there. lets not ahead of ourselves
 
Xeo
2:35 PM
And I just don't get why all those questions about the most vexing parse get so many upvotes...
 
I give up. I'm too stupid to answer questions.
 
Why do you people enjoy defeating yourselves?
 
sbi
@Xeo Argh. I spent minutes finding this dupe, and when I finally vote to close, you sneak it in less than a second before me!
 
@RMartinhoFernandes I'm too stupid to answer ur question.
 
Xeo
@sbi [c++-faq] most vexing parse
is the search term I use for that
 
sbi
2:37 PM
@Xeo So did I. :-{
@IntermediateHacker Yeah, I noticed you keep evading mine.
 
Xeo
Hm, it's the first question for me :P
Hm. From 600 onwards, my flag weight increases increadibly slowly. :(
 
Yes, it does.
 
Xeo
And I already got 32 mod flags out today
 
From time to time I look up the flag list, and there's truckload of "not an answer"s I can flag.
 
sbi
@Xeo You mean the first hit when searching? Yeah, for me, too. When I voted to close it suddenly said two votes instead of one had been given and your comment was stamped as "just now". When I understood I hit refresh and it showed as 14secs, so I assume you came in within a second before me.
 
2:40 PM
@sbi an "asterisk obelisk bull**** caption" is an excellent example of a bullshit caption.
 
Xeo
Oh, I thought you wasted all your time trying to find the dupe question. :) Misunderstood then
 
There's an amazing amount of people that post "I have the same problem. Plz help" answers.
 
Xeo
Oh yeah, @sbi, mind putting me on the room owner list again?
 
> After getting repeated e-mails from people asking me to code software-cracks and viruses, and Facebook messages e.g
lol
 
sbi
2:41 PM
@Xeo It might have been me who came with with the idea.
 
I remember when I hung around the NetHack IRC channel, once in a while some noob came in asking how to "hack" stuff.
 
found possibly the best profile pic on SO
 
lol
 
@RMartinhoFernandes nope
 
@RMartinhoFernandes exactly the same problem I have. people ask , "How do u hack email accounts?" etc.
 
2:43 PM
it's the general way they want to hack 'stuff'
it makes no sense
 
lol
 
asking how to hack there car to remove the artificial speed limit, legit question
 
sbi
@Xeo I'm a bit reluctant to put someone up there who's not on the list of the ten most frequent users, but we have 13 owners, and if one of the others feels different about the issue I won't object.
 
@thecoshman Easy! Throw it down a plane.
 
@RMartinhoFernandes well... that's one way I guess
 
Xeo
2:45 PM
@sbi That's because of my SO vacation I had. :(
 
though you are missing the rockets
 
> 43615 all time messages in Lounge<C++>
I am invincible!
 
Xeo
you're a spammer
:P
 
@sbi How frequent is frequent in this case?
 
sbi
@thecoshman What do you not understand about "list of the ten most frequent users"?
 
Xeo
2:48 PM
Also, @sbi, I only need room owner access when I think I have a witty topic. :P
 
@sbi the bit where I read "the ten most"
 
sbi
@RMartinhoFernandes Where do you find this statistics?
 
room topic changed to Lounge<C++>: We have a witty topic. [c++] [c++11] [c++-faq]
 
Xeo
@sbi The small number in the lower right corner on the overview page or on the chat profile
 
sbi
@thecoshman Well, it seems this list only shows up to ten users, so it will show the most active ones. So the threshold must be dynamic, rather than a static number of messages per day or something alike.
@Xeo Ah, thanks.
 
Xeo
2:49 PM
@sbi It's ordered by the number of messages
 
@sbi In your "chat user card" lower right corner.
 
Xeo
The 10 people who spammed this room the most are listed there
 
sbi
@RMartinhoFernandes You are too slow again.
 
That graph indicating chat activity over a 24-hour period is quite cool. Especially @Alf 's :D
 
Xeo
We have a pretty slow robot here.
 
sbi
2:50 PM
@Xeo I was faster! :)
 
must
spam
 
Tony the Lion, suspended yet again for silly reasons!
 
@sbi Windows took forever to swap MSPaint in!
 
some
 
Xeo
@sbi Blame my connection
 
2:50 PM
room
:( faile
I feel so retarded now...
 
sbi
@Xeo So we should give it to you only then? Confused.
 
Xeo
Blah.
 
sbi
@Xeo There must be some element of recency, though, otherwise it wouldn't make sense.
 
If it counted simply the total number of messages I guess I could disappear for a few months and still count as frequent.
 
I'd know the difference
 
Xeo
2:54 PM
Hey, I just noticed I'm only 1k messages behind the last one in the "frequent" list!
anyways, afk shower
 
cpx
Is that number of messages in chat that make someone frequently in room?
hmm?
 
Now with add bounty
1
Q: Error when trying to use VBO "array vertex_buffer_object must be disabled to call this method"

thecoshmanEDIT I have effectivley re-wrote this question in order to greatly imrpove its quality - see revision logs if you must I have narrowed down my problem to the initialisation phase of my program, when I am trying to create my vertex buffer. The code that I am currently using is... vaoID = new in...

look at you here @RMartinhoFernandes
 
Oh, I'm still learning this. My previous OpenGL knowledge is about v1.5, so pretty much outdated.
 
sbi
I wish it was so simple:
Looked at weather on iPhone, rain all week, almost freaked out, realized it was set for London, switched to LA, problem solved.
 
I wish it would rain here.
At least when it rains, it's not as cold.
 
2:58 PM
@RMartinhoFernandes yeah me too, and now I am trying to use openGL through JAVA... not fun ¬_¬
 

« first day (422 days earlier)      last day (4518 days later) »