« first day (683 days earlier)      last day (4270 days later) » 

4:00 PM
@Drise AFAIK there are no HacBooks.
 
Okay, let me put it this way because you are pedants. :P
I don’t give a fuck about companies, only about their products.
 
You won't win. Give up.
 
daknØk -- there we go. Took a while to find it.
 
You just say you didn't like the company! That isn't not giving a fuck.
@Chimera It's U+00F8.
 
@Chimera daknøk*
I also don’t say chmeRa. :P
 
4:02 PM
@JerryCoffin Unfortunately, “support” often (especially in Apple debates) implies ideological endorsement, rather than mere financial support
 
@R.MartinhoFernandes What is U?
 
@Chimera Unicodez
U+00F8 is the Unicode code point 00F8. (Correct me if I am wrong.)
 
I'm hungry. I'm going to get food. Please continue to laugh @daknøk, and I expect to still be laughing when I get back.
 
@Chimera It's the notation for specifying Unicode codepoints. charmap orders characters in codepoint order, and shows the currently selected one on the lower left corner.
 
I am not laughing. I am eating chips with ketchup.
 
4:04 PM
daknøk Hahaha.... got it!
 
@daknøk You mean fries or potato chips?
 
Fries, of course. I am not a merkin.
 
@MooingDuck If the object is truly OO, it will take care of managing its own lifetime. In no case should it be put into a shared_ptr. If for some reason, logical creation can't be done entirely in the constructor, then it would probably be appropriate to hold it in a unique_ptr until it is truly complete, and ready to take on its own responsibilities. — James Kanze 7 hours ago
 
@KonradRudolph With essentially any company, buying a product almost unavoidably does support the business practices that created it. And it's hardly unique to Apple -- the same is aimed (for one obvious example) at Microsoft at least as frequently (and probably more so).
 
British English > American English
 
4:05 PM
Also ALT+0248 is supposed to work, but doing so here bumps me out of the lounge.
 
@Chimera Must be Numpad numbers.
 
@R.MartinhoFernandes Yep, it bumps me out. Try it.
 
@JerryCoffin That’s just not true. Apple has a monopoly (or close enough) on certain kinds of products (i.e. non-sucky professional laptops), so I don’t have a very big choice when buying their products
 
@JerryCoffin That doesn’t mean that it is my intention to support their business practices. That is why I said “*actively* support”.
 
@MooingDuck James like objects that delete this;.
 
4:06 PM
I know enough people (me included) who use Apple products despite hating their business practices
 
@R.MartinhoFernandes I've never heard of such a thing as being part of OOP
 
@KonradRudolph like me :D
 
@KonradRudolph I am considering getting the new iPad
 
Does everybody who buys bananas condone killing of Union workers in South America? Certainly not.
 
@KonradRudolph And Jerry's point is that despite that, you're still supporting them.
 
4:07 PM
@KonradRudolph Or the slavery and blood lost to buy diamonds?
 
Just like I like to use Linux even though I dislike Linus (for the most part, I do agree with him on certain points).
 
@R.MartinhoFernandes No. His argument is that I condone their business practices
 
@KonradRudolph They still provide financial support despite not condoning it.
 
@daknøk He is no different than any other gifted developer... they all have some social misgivings.
And arrogance
 
I like how he thinks that anyone with a different opinion is a moron and butt-ugly.
 
4:09 PM
@Chimera I don't.
@Chimera I'm not arrogant, you stupid fool.
4
 
@R.MartinhoFernandes Sure. I also provide financial support for the wars in Afghanistan and Iraq, which I certainly don’t condone. I simply don’t have a choice: if I don’t pay taxes, I can’t buy goods and have to live on the street.
 
@daknøk Well, that describes many of us here... doesn't it?
@R.MartinhoFernandes lol
 
@KonradRudolph I never said anything about condoning their business practices. Buying the products allows (and to an extent, causes) the business practices to continue.
 
@R.MartinhoFernandes how would it even know when to delete this?
 
Google has a vid on YouTube starring Linus, where he says that people who don’t use DVCS’ are morons.
I completely agree.
 
4:10 PM
@JerryCoffin You certainly implied it: when I pointed out that financial support != condoning, you came around and said “yes, but”.
 
@MooingDuck When its lifetime ends (it's not bound by scope, but bound by the domain logic). I don't want to go there, I just mentioned that so you could put his statements in context.
 
@KonradRudolph didn’t you have a typography fetish?
 
@daknøk Fuck that. I just create tar.gz files and back them up. :-)
 
@daknøk My dad's not a moron.
 
@Chimera Fuck that. I just comment out old code and add a time stamp.
 
4:11 PM
@daknøk I’m in a rush :/
 
Also, my dad's not a phone.
 
@R.MartinhoFernandes :P
 
I'm an adult.
 
@R.MartinhoFernandes I'm 4
 
@KonradRudolph rush a valid reason. :P
Just trolling.
 
4:12 PM
But don't tell anybody.
I'm a fast learner for a 4 year old.
 
@R.MartinhoFernandes I'm still attempting to understand. At what point does something randomly call some member function/destructor so the object knows when its lifetime ends?
 
@MooingDuck When it goes out of scope?
 
@MooingDuck When the domain entity stops existing.
 
I like how Mooing Duck always comes in with C++ questions while we are having a heavy discussion on something not even remotely related to programming.
 
@MooingDuck is just a buzz kill!
 
4:14 PM
@KonradRudolph @daknøk Children, stop arguing :P
 
Enough talk about Apple, all we ever really need is an OLPC
 
@Chimera that requires no object has a dynamic lifetime, not acceptable
 
@sehe I object to that!
 
okay, gotta run
 
@MooingDuck Yeah, I didn't think I was correct.
 
4:15 PM
You are not going to run.
 
@MooingDuck One example he gave (years ago) was a phone system. When a number gets dialed, you create a Call object. After that, the Call object handles things, including destroying itself when the phone gets hung up.
 
@daknøk òbject ǫrienteḏ
@daknøk He is a IRunnable
 
I just need a few more votes on my photograph. Anybody want to upvote it if you like it?
 
OOP is Java!
 
@JerryCoffin that could only happen in an event driven.... oh. But it can happen in an event driven environment. OO isn't also functional... I think I see now.
 
4:17 PM
@Chimera link?
 
11
A: Weekly Featured Image: Week of August 27, 2012

Chimera Found this female yellow-headed blackbird with a dragonfly in it's beak getting ready for a meal. Taken at the Finley National Wildlife Refuge in a marsh filled with cattails. This species of bird has returned to this area within the past three years. Larger Version Canon 10D Canon 300mm f/4L...

 
Nevermind, I don’t have an account there.
 
No downvotes please, that meta site doesn't allow them.
 
Sorry.
 
@daknøk np
 
4:18 PM
That concept can't apply to everything though... a string of an object can't know when it's... but that's where the "domain entity" thing comes in. Interesting.
 
@daknøk You can't spell "oops..." without "oop". Just saying.
 
@FredOverflow programmingstutorial.com <— they use the term OOPS instead of OOP everywhere.
 
Object oriented programming sex?
 
@daknøk That's a horrible site IIRC.
 
Sounds kinky.
 
4:19 PM
@FredOverflow Well, look at the domain name! :D
 
@Chimera Oh, wow.
 
@R.MartinhoFernandes Yeah, it's a contest, so they only want upvotes.
 
> Arrays are two types one is single dimension and second is multi dimension array. Array can be static or dynamic in nature. Single dimension array can show or operate single raw data other hand multiple dimension data can show or operation multiple dimension (row or column) in program.
lulz
The worst thing of such sites is always that the authors think they are right.
 
@daknøk is the grammar
I want to cut out my eyes everytime someone quotes that site
 
I contacted the author of cplusplus.com once. He said the site was about the core language, rather than the standard library, and that he wanted to give a gentle introduction to beginners. In other words, he wants to teach C with Classes and he is aware of it.
 
4:22 PM
@daknøk The whole site is like that. Is it hilarious or sad?
 
@FredOverflow Both.
 
@FredOverflow It can't possibly be sad.
 
> We can use static and dynamic arrays in different-different operation such as static array use for declare array size in starting because after declaration we cannot change array size in run time other hand dynamic array can increase the size after declaration or run time in the program. Single
 
@daknøk Please stop quoting the site.
 
Okay.
 
4:24 PM
Jul 14 at 5:58, by Domagoj Pandža
Hello. C write I. Me no know English but good programmer very.
 
@thecoshman What is an unqiue_ptr?
 
@FredOverflow It is a typo, silly.
The more decent compilers would tell you you probably made a typo.
 
@daknøk thecoshman is a typo.
 
daknok is a typo too, but who cares?
 
@daknøk IDEs for beginners tend to do that. I think it's very helpful.
 
4:26 PM
@FredOverflow I don’t consider my IDE an IDE for beginners. ;)
 
What, VS?
 
My IDE is my desktop.
I have a text editor, a web browser for documentation, and a terminal. Whoop! Instant IDE.
 
@daknøk So your language is your vagina?
 
Starts in less than half a second.
 
I don't know why I said that. Sounded funny at the time.
 
4:27 PM
Me neither.
Seems like a statement from a dumb brain. I don’t know whose, but I’d never expect him to be in this room.
>:3
 
@Drise most people think it's fun to do something safely that would be dangerous or painful in real context
 
@daknøk Well, at least I don't use a Mac, so obviously, it can't be me.
 
I do, but I have the same IDE on Windows and Linux and it works there too. Except on Windows, where it works less great because of the terminal part.
 
@daknøk Windows doesn't have a terminal. It has command prompt.
 
4:29 PM
That’s what I am saying.
 
of course, the fun that i can have watching an idiot giving herself "safe" electric shocks, is of a quite different nature than the fun that the observed person has
 
@Cheersandhth.-Alf your life sounds interesting
(Given our history, I'll clarify: That wasn't sarcasm, that sounds hilarious)
 
oh, that was something that happened at a workplace, many years ago
 
@Cheersandhth.-Alf That sounds like the documentary I was watching where this doctor (some spine specialist to help relieve pain) bumped into the nerve that controls orgasms, and the lady nearly came 3 times according to her.
 
@Cheersandhth.-Alf Ow.
I was given this API void sendData() to implement. I might end up punching someone today.
 
4:32 PM
The doctor was so alarmed because he thought he hurt her, and she was just begging for more.
 
Female hysteria was a once-common medical diagnosis, made exclusively in women, which is today no longer recognized by modern medical authorities as a medical disorder. Its diagnosis and treatment were routine for many hundreds of years in Western Europe. Hysteria was widely discussed in the medical literature of the 19th century. Women considered to be suffering from it exhibited a wide array of symptoms including faintness, nervousness, sexual desire, insomnia, fluid retention, heaviness in abdomen, muscle spasm, shortness of breath, irritability, loss of appetite for food or sex, and ...
 
@R.MartinhoFernandes globals?
 
Do I need special privileges in Linux to find out which processes use which port numbers?
Or do I need to ptrace all processes? :P
 
Meh.
 
4:34 PM
@MooingDuck Dunno. I'm still trying to figure out what it's supposed to do. "It sends the data" is not a proper description.
 
@R.MartinhoFernandes just print "has sent the data" to the log
problem solved
 
> What does ifstream::open() really do?
Saw question title, instantly thought: @MohamedAhmedNabil. And I was right.
 
Curiosity is nice and all, but when it impedes your ability to deal with abstractions, not so much.
 
Information hiding!
 
4:38 PM
 
What.
 
Now that's a beginner friendly IDE!
 
The beginner friendly IDE writes the entire program for you. You only have to think about what you want.
 
@FredOverflow Have some patience IDE!
 
4:39 PM
@daknøk that's what we have robot for. Machines telling machines what to do...
 
so in what case is using this std::ofstream* justified?
I have never come across a use case for a pointer to a stream object
 
Storing one, prior to move semantics?
 
right
 
@FredOverflow I'd be happier with red squiggles
 
Keeping a reference to one, without having to write a custom assignment?
 
4:43 PM
storing it in a container you mean?
 
@TonyTheLion I use it all the time to read from either a file or cin, depending on if the filename is passed to the program.
though it can be done without pointers.
 
yea I use streams to, but never pointers to streams
 
@Chimera it is possible, yeah, but the OSX license doesn't allow it
 
Does pointing to a stream bring bad luck? :)
 
@jalf that's what I was afraid of.
 
4:46 PM
int main(int argc, char** argv) {
     std::ifstream file;
     if (argc > 1) file.open(argv[1]);
     std::istream& instream = (file?file:std::cin); //reference works here
That's it, I can't think of a use for pointers to streams
 
Maybe if you want to point to a C array of streams on the heap? :)
 
@FredOverflow like vector?
 
the use I saw was just as a class member
which I thought was strange
 
@TonyTheLion Drise's teacher does that all the time
 
yea that's why it raised a flag with me
 
4:48 PM
@TonyTheLion No, I think that could make sense.
 
Why do people ignore "let us continue this discussion in chat"?
 
logger.set_ostream(std::ostream & os) { myos = &os; }
Something like that.
But beware of object lifetimes.
 
@TonyTheLion Not sure if it really justifies anything, but the standard's definition of std::ostream_iterator uses a "for exposition only" pointer to the underlying stream. Given that iterators are required to be assignable, making it a reference would be difficult (I tried and gave up on it in my infix_ostream_iterator).
 
that's a reference, not a pointer
 
@R.MartinhoFernandes is it a member of a class?
 
4:49 PM
@TonyTheLion Watch closely.
 
&os is a pointer.
 
@StackedCrooked ha yes
 
When you see it you will .. say ha yes.
 
@FredOverflow myos is a pointer actually
 
I think we all agree now.
 
4:50 PM
but couldn't you just have myos be just a normal stream? I don't really see why it has to be a pointer?
or is myos = os not valid?
huh, copy I guess
 
Streamz are not copyable.
 
ah, didn't realize that
 
I discovered a cool technique in C++ but I'm afraid to share it. It might be a little convoluted.
 
I rarely find the need to copy an object.
 
pass by value
 
4:51 PM
(Ignoring built-in primitives, of course.)
@TonyTheLion Yeah, I rarely need that.
Mostly in ctors.
 
@MooingDuck Yes. The person that wrote it didn't think what arguments it should take, so didn't put them in.
 
@StackedCrooked Convert it to Java and it'll be the next "big thing"!
 
@StackedCrooked Tell me.
 
@JerryCoffin That might work if I use the Java reflection API.
 
I want decorators in C++.
And more reflection.
 
4:53 PM
@TonyTheLion &os is also a pointer. Applying unary & to an lvalue yields a pointer.
 
@daknøk I'll first toy a little more.
 
@FredOverflow isn't that just address-of operator?
 
@FredOverflow Yeah, but myos is ALSO a pointer. Checkmate man!
 
@TonyTheLion Yes, and the address-of operator yields a pointer if you look it up in the standard.
 
@TonyTheLion @FredOverflow is just in a fancy mood.
 
4:54 PM
@R.MartinhoFernandes well you didn't tell us it was a member. That's... a little better. He should have documented the unknown arguments. void myClass::sendData(???)
 
@FredOverflow ah, I see.
 
Good.
 
wut?
that seems non sequitor
 
He's a human.
 
@FredOverflow You resorted to normal language :)
 
4:55 PM
Yea I know, but how is that related to the conversation?
 
returns, yields and evaluates to are often used interchangeably. I wonder if they have different meanings or if they are just a tool for variety.
 
A question for today: to buy GW2 or not.
 
@StackedCrooked Well, return and yield return definitely have different meanings in C# :)
 
@CatPlusPlus Nobody ever regretted waiting.
 
@StackedCrooked First is usually used for functions, and the latter two for expressions.
@StackedCrooked This is really not true.
 
4:59 PM
@StackedCrooked A function returns. An operator yields. An expression evaluates to.
 
0
Q: Can someone please tell me what this code means?

Vim Bonsuif($goodCode){chanceOfGettingHired++;} // Feel free to include a url to your code...) Also what language is it?

lol?
 
I usually regret buying games because I don't like gaming anymore. But I forget and buy the game anyway and then start to play and stop after 4 minutes.
 

« first day (683 days earlier)      last day (4270 days later) »