« first day (275 days earlier)      last day (4688 days later) » 

9:01 PM
@CatPlusPlus Some people just like to stick with their habits.
 
I don't see any reason to change from WinRAR
 
What's so good about hobbits?
@DeadMG It's paid?
 
yeah, if you don't keep clicking evaluate
 
It's annoying?
 
never paid for it and I never had to torrent it either
meh, one click, if that? I'd rather save the bandwidth
 
9:03 PM
Yeah, those damn expensive 56.6 dialup lines.
 
depends on how many people are trying to use it
 
What bandwidth? The 7-zip Windows installer is 1 meg!
 
How do you open .tar, .tar.gz, .7z, .lzma files (amongst others)?
 
I've never downloaded any of those files
 
WinRAR handles those.
 
9:06 PM
Anyway, I'm going into S3, bye.
 
Think about it: 1 MB download vs a lifetime of clicking.
 
bb
 
@MartinhoFernandes How weird.
 
meh
I hardly ever have to click
 
@LucDanton What's weird?
 
9:07 PM
@MartinhoFernandes I don't remember it supporting so many formats.
 
I'm not sure about .lzma, but I'm certain about opening .tar, .tar.gz, .tar.bz2 and .7z.
With .tar.gz and .tar.bz2 it works a bit funky (it opens a gz archive with a tar archive inside, and inside that are the files), but it does work.
 
Is it possible to create private rooms ?
 
user457812
Don't think so.
 
yes
if you look at the Android room, for example, you have to be allowed to speak there
 
user457812
Well, that's not private, it's just a gallery room
 
user457812
9:16 PM
And that's mostly just to keep the inhabitants of the other Android rooms out
 
All rooms are readable by the public.
Including anonymous users.
 
there's more than one Android room?
I only ever clicked on the C++ room
 
At least two.
 
2
A: force g++ to zero initialize memory

DeadMGUse an always-initializing class. template<typename T> class always_initialized { T t; public: operator T&() { return t; } operator const T&() const { return t; } always_initialized() : t() {} };

I think that fuck just downvoted my answer so that he could push his
my answer is superior
 
user457812
Well, between his answer and yours, I actually understood his O_o
 
9:26 PM
the difference between mine and his is that mine will always default-construct the object, whereas he just default-constructed it in the constructor
effectively, mine is more maintainable and more generic
 
user457812
The more I stare at it, the more I like yours, so I will go with it being superior
 
I don't see where you set anything to null, or is that the handy constructor that you didn't want to waste your life writing?
 
t() guarantees value-initialization.
 
which is null, for pointers
 
user457812
I filed it under the 'clever' category in my head.
 
9:31 PM
struct x {
    void* ptr;
    x() : ptr() {} // ptr is NULL
};
 
Really.....
How would one know that.....
 
the difference between doing that and using the template is that the template is generic for any POD class, and is used regardless of which constructor is used
usually, by knowing C++
 
Ha Ha.
I mean, there's nothing in the syntax that hints that.
 
Here's the C++0x way for a magical, generic constructor: template<typename... U> always_initialized(U&&... u): t(std::forward<U>(u)...) {}
 
whereas if you set ptr to NULL in the constructor manually, you have to do that for every constructor
 
9:32 PM
(may also be explicit and/or using list initiazation syntax)
 
and then again for every pointer you have
 
lazy typing.
But that's what programming is, isn't it.
 
and then I hope you didn't want to have to do that for other POD things like structs
whereas always_initialized does not have those problems
 
typedef struct X {X(){}}; //ZOMG HARD?
 
9:35 PM
what does that have to do with the issue at hand?
 
typedef struct X {X() : ptr() {} something* ptr; } ;
I mean, it's only name and ().....
 
user457812
Programming isn't about lazy typing, it's about clever solutions to things that shouldn't require clever solutions.
 
it's not about that, it's about I added another constructor later and I sure hope I didn't forget about it
 
user457812
Especially things that don't need clever solutions to begin with but you want a clever solution anyway.
 
That's a lot of characters for a template that does a few letters of work.
 
9:36 PM
I thought programming was about the chicks.
Hmm, maybe that's what I've been doing wrong.
 
user457812
That too.
 
whereas the template will initialize it in every constructor
 
user457812
Chickens are a prominent feature of the programming lifestyle.
 
@DeadMG Whoops, I forgot to make my object using the template.
 
@Xaade: The difference is that you only have to remember to use the template once, at the point where you realize you need it
you have to remember to add the variable every time you add a new constructor, or change it, and I hope that maintenance programmer did too
 
9:37 PM
Or you have to use the template every time you instantiate an object.... unless you're deriving.
 
... ... or if the object isn't POD?
 
If the object isn't POD, you need a default constructor ????
 
if the object isn't POD, you don't need the template
if you always initialize it with a value anyway, you don't need the template
that covers most uses of variables right off
 
I prefer initializing as a habit.
Sorry.
 
The best constructors and the best special members are still the ones that write themselves.
 
9:42 PM
agreed
 
I don't think I can agree.... What if you need to write a constructor that takes an argument, but you're used to your fancy template default constructing for you.
Whoops, forgot to initialize yet again.
 
Haha.
 
You're only delaying the inevitable.
 
"Oh no I feel so comfortable using my convenience templates, how can I force myself to write a constructor!"
 
lol
 
9:43 PM
"Initialization? But that's so rustic! Never! I say."
 
if you need to write a constructor that takes an argument, then when you're in the middle of writing it, it's your own responsibility to remember to pass the argument
 
user457812
I'm imagining a puppy in a dress sitting at a desk holding its paws up to its face and crying now.
 
I could upload a video of my puppy to annoy you
 
Your puppy is annoying?
 
user457812
What he asked.
 
9:45 PM
no
but I imagine that you'd get quite sick of seein git
 
user457812
Looking is voluntary, I can always have my eyes removed
 
That would be drastic.
 
user457812
Drastic times
 

« first day (275 days earlier)      last day (4688 days later) »