« first day (413 days earlier)      last day (4537 days later) » 

8:09 PM
I really almost put a comment about abstract factories @KerrekSB...is it being voted for deletion?
If I could only see those things I could be a total ass with impunity
 
305 rep!
 
@keithlayne It's not even closed yet... Who knows, maybe someone can figure out what the OP actually wants.
 
oh yeah, I meant close, I'm a doofus
 
8:33 PM
=
Oops, I was just cleaning my keyboard.
 
People do that?
 
If it becomes unbearable.
 
8:55 PM
Haha, a regex to validate emails -- sweet.
 
Yay, GApps accounts have 2-step auth, too.
Aaand my account doesn't seem to have it. Damn migrations.
Or I'm just stupid.
Was a bit worried I'd have to upgrade to paid one. :. I seem to be rambling again.
@KerrekSB Validating emails is silly, especially using this (which doesn't even support full grammar anyway).
 
@CatPlusPlus Minus the comments...
Why is it silly? What if you are a mail server?
 
I doubt they use regexes to parse emails.
"Validation" is usually done by silly client applications.
For no reason.
I've developed a significant dislike for that practice.
 
9:11 PM
Wth :L
C#'s Equivalent to the ceil() function returns a double?
 
@KerrekSB @CatPlusPlus Can you tell me your c++ projects website?
hmm........
 
@CatPlusPlus They all are c++ projects? ( I am looking for c++ (with tons of usage of templates) based projects)
 
Oh it's to do with largest/lowest values?
 
9:26 PM
@CatPlusPlus you know openGL and SDL and assembly? 0_o
 
I know various stuff.
I think I'm also dropping MSVC completely.
 
@CatPlusPlus Also variant stuff, it would seem.
 
I'm bit tired of workarounds.
 
I can't blame you
their C++ support is poor and they're still riddled with C++03 support bugs, like poor SFINAE support
 
9:44 PM
hello
I just want to check something real quick.
So I've been messing around with inheritance and virtual destructors
and I noticed that if the most base class' destructor is virtual, all the descendants' destructors become virtual
 
Once virtual, always virtual.
 
alright
but with just normal virtual functions that isn't the case, right?
 
Same goes for member functions. You can omit virtual in the derived classes, but this won't turn off virtualness if base class said so.
I.e. struct B { virtual void foo(); }; struct D : B { void foo(); /* still virtual */ };
But it's a good style to always mark them as virtual.
 
if you hadn't even declared void foo() in B
and then derived a class from that
then a call to D2::foo() would call D:foo()
right?
rather than D2 becoming an abstract class
 
foo in base is not pure, so yes.
But if it were struct B { virtual void foo() = 0; }, then it must be implemented in the derived class, or it won't be instantiable.
 
9:53 PM
if you had class D:B{void foo();}; and D2:D{};
and called foo from a D2 object
 
Then it calls D::foo(), yes.
 
it would still work, right?
okay
thanks, that really cleared things up for me
 
Look through , we might have something on inheritance and virtuals.
 
sbi
@CatPlusPlus No, I didn't. When the STL came along, I found it ugly, unwieldy, and an abomination.
@KerrekSB If the plate has a golden rim...
@DeadMG So what does the note say? (You did read it, right?)
 
no
 
sbi
9:57 PM
Oh boy.
Why not?
 
if it was urgent, she would just say whatever the contents are
so I feel no rush to see the contents
 
sbi
@DeadMG Well, "urgent" is kinda relative, no? For example, two weeks to read and react on a note might seem a lot of time, but if your room mate sent you a two-weeks notice, it's still pretty urgent.
 
true
but it can only have been written this morning
 
How can you live with the suspense?
 
sbi
@DeadMG I can't believe you found a note from your flat mate, worry about the content, publicly speculate about the reasons she left it for you, but are too lazy to just read the damn thing!
 
10:01 PM
eh
I woke up in a bad mood this morning
 
sbi
I suppose it's no coincidence that you find true masters of procrastination in a chat room? I should never have come here...
 
don't want to make it worse
 
sbi
@DeadMG You ought to know this feeling, though. I cannot remember the last time you entered the chat room and did not say you feel bad, your stomach aches, you're busted because you didn't do this assignments, and whatever else might threaten the emotional peace of a student.
@ManofOneWay Of course you can, but the learning curve, especially when you dig into the last book, will be terribly steep. I don't think I'd recommend Modern C++ Design unless you have a few years of C++ under your belt and some experience to relate to when reading it.
 
tis true
 
sbi
@DeadMG How would you know whether it's true that I cannot remember?
 
10:04 PM
I know that it's true that it's hard for me to remember
 
sbi
@ManofOneWay It makes no sense to ask the @Cat about C++ books. He's an oddball here for many reasons, but not having read any C++ book definitely is not the least of those.
 
so I find it unlikely that you would
 
@sbi Microwaving metal results in undefined behaviour.
 
Oh, it's pretty well defined.
It might undefine the microwave, though.
 
sbi
@DeadMG I don't know. I bet the Robot in Residence (RiR) would remember any such occasion, even if you wouldn't.
 
10:08 PM
@sbi Usually only happens if I do well in coding for the day
 
sbi
From different points of view approach a problem. Skin a Wookiee, more than one way there is.
 
@sbi Ahh, the prized skill of talented SF writers to create a believable fiction: Take contemporary saying and add a "space" word to make it alien.
 
sbi
@KerrekSB :)
 
Alternatively, add a reflective border around photos to make an ordinary photo album into a space photo album.
 
sbi
Honestly, IMO SF is at its best if it takes all the alien stuff as a background to a story about humans (or humanesques or non-humans or trans-humans or whatever) and their interrelationships.
New Gang-of-Four Record! Man Embeds Three Patterns Into One Class Name: http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html
 
10:18 PM
ok, the conversation in the last 30 mins was funny :)
 
@sbi Hehe. That's why we love Firefly. Doesn't even have any stupid aliens with foreheads.
 
18 mins ago, by Cat Plus Plus
How can you live with the suspense?
this comment cracked me up :P
 
@sbi Haha - is that an FPBS?
 
@DeadMG, I thought I was a procrastination master, but you've beat me I think. :)
 
lol
 
sbi
10:20 PM
@TonyTheLion How so? I only entered the room 22mins before you posted that comment!
 
AbstractSingletonProxyFactoryBean
lol
@sbi haha :P
I"m tired
 
@sbi What's the room?
 
sbi
@KerrekSB Florida Public Broadcasting Service? Fiji Pharmaceutical Services & Biomedical Centre? Federação Portuguesa de Basebol e Softbol?
 
@KerrekSB euh, this chat room
lawl
 
sbi
@KerrekSB A three-dimensional area?
Really, I have no idea what you are asking me about.
 
10:22 PM
@TonyTheLion Ah, this room. Got it.
 
sbi
@KerrekSB OMG!
 
@sbi I though that was from a different room
@sbi Only 2D if it's a chatroom. I don't have any 3D graphix.
 
OMG, what the fuck is this conversation ???
 
RST RST
 
RST?
I'm bored, I should really go to bed, but I can't be asked??!! What to do?
 
10:25 PM
 
sbi
@TonyTheLion Why can't you be asked? (See, I just asked you!)
 
@sbi it's an expression meaning "I cannot be bothered", essentially
@KerrekSB more like probability then fractions
 
sbi
@TonyTheLion Wouldn't that be that you can't be arsed?
 
@sbi oh maybe...
lulz
 
11:26 PM
I'm TeXing the freshest version of the standard. Nothing beats the smell of fresh PDF in the morning.
 
http://stackoverflow.com/questions/8371469/why-does-bit-shifting-an-int-upwards-produce-a-negative-number/8371489#8371489

http://stackoverflow.com/questions/7682477/gcc-fail-or-undefined-behavior
So in my question, the case was that GCC was able to optimize out the loop test and make it an infinite loop
so for something that drastic as that, I think it might be possible to have it emit a warning in such a case
 
@Mysticial Ah. possibly...
Then again, a non-terminating loop is UB, too
The compiler is allowed to assume that all loops terminate
 
hmm...
 
I don't know. I suppose there are certain things the compiler could warn you about, though certainly it isn't required to by the standard.
Oh well
Try Clang and see what that says! :-)
 
11:35 PM
Too lazy to install it
 
Maybe ideone has a copy of it...
 
I'd have to boot up my server to test it since I work in Windows
 
sbi
@StackedCrooked Yeah, that's pretty good. "In light of this thread, it's kind of a shame that your tattoos aren't of MC Escher drawings." I like that comment a lot.
 
@KerrekSB: The funny thing is that the behavior differs if you use shifts instead of arithmetic. Based on what the responses I got, shifts are still undefined behavior, but GCC assumes you actually ARE trying to manipulate bits and thus doesn't trigger the UB optimization...
 
11:42 PM
@Mysticial That's possible. I never really thought about it. I would never use signed types for bitwise operations...
 
user457812
What is the easiest way to get someone to stop trying to convince me to use C# even after refusing multiple times?
 
user457812
Do I have to break their legs?
 
@nil declare your decision final and tell them to get off your property.
 
user457812
Can I still break their legs?
 
I've found that the threat of physical violence is often enough to convince people...but it's sometimes more fun if it's not.
 
user457812
11:44 PM
What about psychological violence?
 
@KerrekSB: Normally I don't either, but the while (i > 0) is supposed to make it stop when the highest bit becomes a 1 - regardless of the size of the integer type. That's why it was written that way. Though I didn't realize that would invoke UB... lolz
 
@nil that would just make you a terrorist, and we would have to flag you on chat.
 
user457812
Is it cool to be a terrorist?
 
the terrorist is never the cool kid in school
oh wait, I mean the terrorist is always the coolest kid in school
 
user457812
What if you call him a rebel instead of a terrorist?
 
11:47 PM
we prefer the term "freedom fighter"
 
Then you have to find an Empire for him.
 
@Mysticial I would never trust anyone who writes such a loop...
Is anyone bored and wants to help me scrape links?
 
user457812
Scrape links?
 
I want to put all the STL video links on the FPAs. But there are 16 of them.
 
@KerrekSB: Then you should never trust me. :) In my world of HPC on steroids, every pedantic C/C++ coder will want to slaughter me when they see some of the things I do. hehe XD
 
11:49 PM
I can't quite be bothered to physically paste three URLs per episode...
 
@Kerrek SB charles links them all on the last video of the series, for the intro and the advanced.
 
@Mysticial Surely your HPC cannot require that sort of hackery!
 
@KerrekSB Write a program to do it!
 
@KerrekSB: It depends on how far you want to optimize. Sometimes it can makes things 5 - 10x faster...
 
Yuck. Maintainable code first, profiling and algorithmic improvements next, ugly micro-opt hacks last.
 
11:52 PM
@Cat Plus Plus It'd be a good exercise
 
@CatPlusPlus Will it be worth it?
A regex?
I'll just quickly post on SO to ask for a regex to help me parse this HTML...
 
user457812
How about you try making a regex before asking for a regex? O_o
 
@CatPlusPlus: I agree on the algorithm part. Readability vs. performance is another trade-off that I tend towards one extreme. But usually having both readable unoptimized code (commented out) side-by-side with the unreadable/optimized version is sufficient.
 
@nil You're missing the reference.
 
user457812
Sorry, I'll throw an & in later
 
sbi
11:59 PM
@nil Start programming in C#. Do it enthusiastically for a few weeks. Then become more and more disappointed. At the end explain to the guy C#'s various shortcomings in detail. (Or course, this bears the danger that you might get hooked and be lost to the C++ community.)
 
user457812
I already did that once.
 
@sbi I was disappointed today. I was at Barnes & Noble with the family before the Santa event, so I decided to check out the programming section. It was sad. There were about 5 C++ books, and the only one that wasn't obviously garbage was a copy of "Effective C++". There was exactly one C book, and it was trash. The rows of shelves were dominated by mostly the yellow and black of <X> for Dummies books.
 

« first day (413 days earlier)      last day (4537 days later) »