« first day (1014 days earlier)      last day (3920 days later) » 

Ell
12:03 AM
Well, its just when someone posts a link and I want to look at the source
Maybe you could have plaintext by adding .raw to the end or something
Or maybe you could not bother at all, just an idea really.
 
If it's a recent link then you can visit /history
Which should work on mobile since it served as text/plain.
 
Ell
Can't find it. Ahh well, I can wait till tomorrow
 
0
Q: My OOP design feels sloppy (C++)

JasonI am writing a game in Cocos2D-x and I am struggling with feeling like my OO is sloppy. I can't shake the feeling and I can place m finger on why. Game Scene class In This a Layer is created Layer Class responsible for creating itself Also calls HUDS when needed contains st...

Well...
That's normal.
 
Ell
An object class, oh dear
Anyway I'm gonna get some shut eye now, night :)
 
Mission successful: delivered gift computer to target, target flipped out in happiness.
 
12:17 AM
Tell us more.
Was it a backflip, a forward flip?
Or just an awkward flip?
 
A failed backflip onto the bed.
With limb flailing.
 
Why did you give a computer to him/her/it?
I gave my mom a macbook air last years, but isn't really using it.
It's too difficult for her.
 
She's an artist / designer who is working on a Windows Vista computer that can hardly run Left 4 Dead 2, Team Fortress 2, or anything. So I decided she needed an upgrade.
I didn't ask for her approval, of course. :3c
 
She's not gonna fuck you just because you gave her a computer.
 
Not interested in her, actually.
 
12:20 AM
hm..
 
I also got her the Adobe Master Collection CS6, along with Microsoft Office 2013.
That was actually all I needed to put on it. Turns out artists / designers have very little in terms of programs they actually use.
 
@Ell Night! :)
 
Kinda makes me wish I was making a computer for a dev. Then I could get to install a bunch of stuff. =[
@Ell G'night. :D
@BartekBanachewicz Don't have too hard of a hangover. :P
 
I think a developer would prefer a clean os.
 
Maybe.
 
12:22 AM
@Xeo I use ->* to make it look like sequences have "members." It's useful to make a quick file format or mathematical structures with names. On the other hand, unary & is just a bad idea to overload, so I think that's rarer.
 
Personally, if someone gave me a computer with MinGW, VS2013/2012 (with VAX and other extensions), Adobe MasterCollection CS6, Firefox/Chrome, Steam, Skype, Ventrilo, and Mumble all ready to rock 'n' roll, I would cream myself.
So much work I wouldn't have to do.
 
you're up late
 
I slept until like 1 PM today.
So it's only like, the 12 hour mark.
Plus, I'm excited. I get to see Tony tomorrow. :D
 
Is it late for thePhd? He's in US, not?
 
not right now
he's in Lundun
 
12:40 AM
went to see a dentist again
 
man, I hate sleeping
why is it always so ineffective
 
I have taken so many x-rays recently I would probably die of cancer
 
@DeadMG likewise
 
My front teeth is still not stable enough to have a cap on
 
12:49 AM
@BartekBanachewicz Oh I knew you were secretly in love with Ruby.
 
lol
argh, I was playing a game of Mafia, and some cocksucking skyper ruined it.
why even bother playing Mafia if you're just gonna skype and gamethrow
 
@Telkitty猫咪咪 A "cap" ?
 
Oh.
 
it's a secret stash
 
1:06 AM
yes, this is where you hide your white gold
 
Hm.
 
@StackedCrooked I liked the story about the kid and anal
 
We get at least 3 of those a day couldn't so put a filter on those?
 
they do, they're explicitly banned
 
I mean so that we dont have to put them on hold ourselves every time
 
SO has a few automated filters and they are universally terrible.
they are worse than cowboy_cast
 
Worse than cowboy_cast? Good lord.
 
1:33 AM
What is cowboy_cast?
 
@EtiennedeMartel I like this new pope
 
Hello there!
 
0
Q: why vector is slow?

minicaptainReally, I know vector is very convenient, for my question,why it is so slow,how does vector allocate memory to make it slow? /*The conventional approach is to allocate the memory using C++’s new:*/ int * bigarray = new int[N]; for(unsigned int k = 0; k<N; ++k) bigarray[k] = k; int sum = total...

One of these again..
 
Guys, I need your help. Someone claim that a const would improve the speed of a program: http://codereview.stackexchange.com/questions/26811/can-someone-review-my-coding-technique/29004#comment45682_29004, disregarding http://stackoverflow.com/questions/2068816/usefulness-of-const-c/2068849
He is wrong, isn't he?
 
@Kyle_the_hacker A const global integer is properly a constant expression, and can be optimized away much more easily than for example a const reference.
 
1:47 AM
Wow you told someone to use #define rather than const?
 
@Kyle_the_hacker const variables, mostly built-in types, have more chance of being optimized away.
 
Lol.
 
@Kyle_the_hacker As for the answer you referenced, performing a const_cast on such a thing to modify it would result in undefined behavior. It's an exception to the rule given by that answer.
 
@Rapptz: Is #define so bad? It was even in my coding style book at the university
 
1:49 AM
Your coding style book is shit.
 
lol. Coding style.
 
Macros are essentially a text replacement.
 
But aren't constants in fact a text remplacement?
 
@Kyle_the_hacker the question you cited deals mostly with f(const param) but when const is used instead of DEFINES it allows optimizations gotw.ca/gotw/081.htm
 
1:52 AM
@Kyle_the_hacker University education about code style should be roundly ignored. Professors almost always do not write real code, and even if they do it's not their actual profession.
 
@Kyle_the_hacker const is type safe, unless you violate it using const_cast or C-style casts.
 
@Kyle_the_hacker Only macros are textual replacements, and those are horrific and also not constants.
 
When you use #define to make a construct, you hide it from the compiler completely because #define works by text replacement. That makes it hard for the compiler to give you any help.
 
I understand.
Ok, thanks for all this answers! Even if they hurts a lot of my certitudes... :D
 
@ThePhD How'd unzip go?
 
1:55 AM
@Rapptz I don't want to talk about it. ._.
 
@ThePhD Did you meet tony?
 
@Rapptz He said he wasn't interested in her.
 
@Borgleader Not yet.
 
lounge wuv club meeting
 
fuck why does my stomach try to kill me every night.
all I want to do is sleeeeep
 
1:58 AM
> propagate_on_container_move_assignment(C++14)
This is the longest typedef I've ever seen in the standard
 
@DeadMG i thought you hated sleeping , stomach just trying to help
 
I hate sleeping because it's ineffective, that generally leaves me more desperate for sleep, not less
 
@chris I just answered the worst question haha.
I meant to comment but then said fuck it.
 
@Rapptz I really need to start repwhoring 20k
 
@Rapptz They had to sum up a fiasco in one word.
 
2:03 AM
@Rapptz: look at msdn.microsoft.com/en-us/library/windows/desktop/… : ConvertSecurityDescriptorToStringSecurityDescriptor
 
Why?
I meant in the C++ standard.
How'd I type %% instead of &&
 
Microsoft != standard, and extremely so, however they might try to mislead you to the contrary.
@Rapptz %:%: is an actual punctuator, perhaps you were subconsciously reaching for that.
 
@Potatoswatter I agree.
 
yes, sorry, I didn't wanted to say implicitely that Microsoft was standard, only wanted to show you the name of this win32 api function
 
if(powerlevel <= 0 %% src.health <= 0)
 
2:06 AM
@trojansdestroy Yeah that was awful lol
I'm glad someone fixed it for me I guess
 
It's okay, they're next to each other on -......oops
 
yeah they're not next to each other haha
 
Sigh.
 
Okay, who's the one who got me 3-4 enlightened and nice answer badges in the last few days?
 
> I wish I had a girl who looked good. I would call her.
 
2:16 AM
Is there any corpus of C++ code using extended characters or UCNs in identifiers?
 
Wow, <random> in the standard is strange to read.
 
@StackedCrooked there are plenty of good looking hookers ... alright ... that's why they are nicknamed "call girls"
 
> Required behavior: The 10000th consecutive invocation of a default-constructed object of type mt19937_-64 shall produce the value 9981545732273789042.
 
@Rapptz lol. That statement. "random" and "strange".
 
The <random> section is bigger than I expected.
 
2:21 AM
@Rapptz Sounds more like C++ is just adhering to existing structure to me.
 
What seeding does a default constructed object use?
 
@Rapptz static int i = 0; return ++ i == 10000? 9981545732273789042 : 0;
 
Uh.
Wtf?
Seeding takes in initializer_list<T>?
haha seed_seq( std::initializer_list<T> il );
@Pawnguy7 "The default constructor creates a std::seed_seq object with an initial seed sequence of length zero."
 
@Rapptz of length 0? Isn't that like... nothing?
 
2:28 AM
seed_seq is weird, I didn't know it existed until today really.
 
Suits is such a fucking great show.
 
I tried watching it but it was god awful boring.
 
@Jeffrey I prefer great fucking shows hue hue hue hue hue
 
@Rapptz Weird. I guess it really depends on what you are used to.
@Borgleader if you know what I mean
 
Had potential to be a good story but they ruined it by picking a lawyer profession imo.
and they made it seem uninteresting too :/
 
2:33 AM
why is that?
 
Dramatization of the lawyer profession has rarely worked out in entertainment, imo.
 
Do you consider it a drama?
 
Uh.. it is a drama.
 
@MarkGarcia Yeah, kinda lame imo
 
2:37 AM
We already have auto and decltype...
 
@Rapptz well yeah, but it's a really soft drama. It pretty fun actually towards the end of the first season. Also what tv shows do you usually like?
 
I kind of like variable templates.
 
I watch anime and the last show I thought was good on American TV was Scrubs.
 
0
Q: vector<string> does not clear memory after out of scope

kevin struwei've encountered the following problem, and i'm not really sure whether i am wrong or its a really weird bug. I fill a huge array of strings and want it to be cleared at a certain point. Here's a minimal example #include <string> #include <vector> #include <unistd.h> //sleep #include <iostream> ...

 
Type traits could be variables.
 
2:38 AM
> This is gonna be a long string just to fill up the memory used by this fucking pthread
 
lol
 
numeric_limits stuff could be variables.
 
I didn't bother scrolling
 
@Rapptz lol, never like it that much. I guess you can only like Suits if you like the whole mentor-kid relationships and/or strong characters.
 
error:         '<anonymous>'
lol
 
2:44 AM
You've been hacked!
 
haha, this one is even worse.
error:         '<template-parameter-1-3>'
So I can't do enable_if in template specialisations?
 
1
A: using SFINAE for template class specialisation

WalterIF the original declaration of User<> can be adapted to template<typename, typename = void> class User; then we can find a solution (following this example) template<typename T, typename std::enable_if<is_Data<T>::value>::type> class User { /* ... */ }; However, this doesn't answer the orig...

meh.
 
@Rapptz Don't think so
 
2:55 AM
:(
I guess I could make one parameter a bool instead, but then that just feels wrong
 
use a template alias into a metafunction
 
to the bool'd parameter metafunction?
 
yep
template<shit> class X {}; ... -> template<shit> using X = typename metafunction<shit, condition>::type;.
 
Cool.
 
3:15 AM
I tried to make my own basic 3d vector class: http://ideone.com/yTUQte

I am just wondering, did I do anything terribly stupid? It works fine, and I never plan to actually use it, I just want to know if what I'm doing is "idiomatic" ?
 
ooo
 
@seth Looks okay.
I don't know why you're using an array.
 
would it be better to just have three values of type T and change those?
 
Make the operators free functions.
 
3:17 AM
T x; T y; T z; works and makes more sense.
 
Okay
 
operators are usually free functions.
 
thanks
 
print is done via overloaded operator<<. I don't think operator[] is supposed to return a const int.
 
Base + and * on += and *=.
Your assignment operator is redundant.
And I'd say dot and cross should be free functions.
 
3:19 AM
It isn't bad code, these are just some "idiomatic" practices.
 
I will have to read about free vs member functions. The reason I made everything members was purely selfish: I thought it looked prettier.
 
@seth For one thing, gotw.ca/gotw/084.htm
 
0
Q: If else statement in a function

user2611244Here's is the code that I wrote: if (((big_radian (radian) > 0 && big_radian (radian) < PI/2 )) || ((big_radian (radian) < -(3*PI)/2 && big_radian (radian) > -2*PI ))) { cout << "1st Quadrant"<<endl; } else if(((big_radian (radian) > PI/2 && big_radian (radian) < PI )) || ((b...

Wat?
I read that 3 times and I can't make sense of it
 
@Rapptz Doesn't it also involve some problems?
 
@Jeffrey ?
 
3:26 AM
@Rapptz I mean if you define operators as member functions doesn't it have differences from the same version only as a free function?
 
Oh by the way, not all operators are meant to be free functions. It's usually the binary operators like ==, +, etc. But if it modifies the lhs then it's usually a member (such as +=). // @seth
 
For example you can't define the operator+ to work as a member function for an expression like: 123 + x where x is an object of type T?
It will only work for x + 123 right?
 
@Jeffrey Yeah binary operators like that need to be defined twice (operator+(int, T) and operator+(T, int) for example)
being a member function doesn't really solve this though
 
@Rapptz Unless you rely on a conversion constructor.
 
@chris I guess.
 
3:30 AM
@chris I think that 123 + x would look for a operator int() in x. right?
 
@Jeffrey That would work, too, but you generally want different semantics.
 
@chris like?
 
I can't think of anything that makes sense for an example right now >.>
 
:P
 
dammit kbok you're not here -_-
 
3:34 AM
@chris Also with the conversion constructor were you referring to the 123 + x? Because I don't it would work either.
 
@Jeffrey That would if 123 could be converted to decltype(x).
For example, someStdString + "abc"
I guess that's one that would be a lot better than a conversion operator to const char *.
 
@chris but you can't, can you?
 
I guess the real point is mainly wanting the operation to return your class type instead of the other type.
 
Though I think I used the wrong close reason for that.
 
@chris sure, but AFAIK the only way to do that is to define operator int() (or operator const char*() in your example, is <-- that even valid C++?)
 
3:38 AM
@Jeffrey This wouldn't work if the string literal wasn't converted to a std::string implicitly: coliru.stacked-crooked.com/…
Unless it has an overload of operator+ taking const char *.
 
@chris that was what I was thinking
 
Here's one you can't argue about: coliru.stacked-crooked.com/…
 
Okay, I guess that's for efficiency or something then.
 
@chris what's that?
 
3:42 AM
Oops, I goofed. One sec.
 
@Rapptz I had forgot that you have to define both ways around. It make sense I guess.
 
Horrible overload aside, it only takes S.
 
@chris yeah, that is not the example we were talking about earlier though. I think the other way around (2 + s) is a whole another matter.
 
I still feel bad about that returning void.
 
@chris omg, you should feel bad. I was just testing with your code and all these void errors appeared and I was like: "what the fuck are you talking about?".
lol
 
3:47 AM
It was purely just to save typing a return statement.
 
So the expression 2 + s results in a S right?
Yeah, it can't be the other way around.
 
If that's what you return.
Depends on what the addition does, but typically it will.
 
I meant that it calls operator+() of S. But yeah we meant the same thing.
 
You can prevent the implicit conversion from int to S by making that constructor explicit.
 
Fuck! It's almost 6AM in the morning. Time flies by when you are enjoying some C++. I should really go to bed.
 
3:52 AM
@Jeffrey that's the truth
 
@chris yup, thanks.
 
I know the feeling, though every time I stay up until then, my night feels wasted.
 
It usually is. At least on my side.
 
@chris Every time I stay up until then, my night usually started with me wasted.
 
Might be the fact that you do the same thing for hours on end.
Can't take too much of a break since it's the middle of the night.
 
3:54 AM
I used to be good at coding at night till morning. But apparently since I began to take university seriously the only force I have during the nights is to lay down and watch some tv.
Pretty depressing stuff. So I'll just try to go to sleep. Night everybody.
 
Good night.
I don't know what it is that makes me think sleeping until past noon is better than at night.
 
Working during the night is better because everybody is asleep and it's just so calm that you can pretty much ear yourself think.
 
I know, I enjoyed sleeping 4-7 and napping a few times.
 

« first day (1014 days earlier)      last day (3920 days later) »