« first day (632 days earlier)      last day (4313 days later) » 

10:00 PM
I guess CSS is the pretty flower and HTML holds the flower, hence, the pot.
 
@EtiennedeMartel I'm only happy when it rains.
 
Sunshine on my shoulder makes me happy.
 
@FredOverflow Turing-completeness is orthogonal to programming language, I'd say.
 
@Ell Neither do I!
 
Ell
@FredOverflow because its not a programming language or something I dont know? o.O
 
10:01 PM
@RMartinhoFernandes Hm, right, what do essays have to do with programming language? Dunno.
 
Ell
I don't get the c++ one as well. Is it a pun on copying as in copy constructor etc.?
 
Lego Turing machine for the win!
 
@Ell I don't see the connection between HTML and flower pot.
 
3 mins ago, by Cat Plus Plus
@FredOverflow It's not a programming language.
@FredOverflow Me neither.
 
@Ell C++ has value semantics and loves to implicitly copy objects.
 
Ell
10:02 PM
Yeah I thought so
 
Me too.
 
You can't let C++ do anything on its own. It's like a child.
 
Ell
@FredOverflow Ohh I get it - all the papers represent programming languages so its just an arbitrary object that isn't a paper - they just happened to choose a flower pot. maybe?
 
@DomagojPandža C++ is just fine on its own with a bRAIIbysitter.
@Ell Ah, okay. Perhaps I was thinking too hard.
 
RAII saves baby seals.
 
10:04 PM
Baby seals sound tasty.
 
Enough procrastination, it's time for Solitaire!
 
I can honestly say that I can't play any card games. Never tried.
Well, besides poker. But that's it.
 
Ell
@DomagojPandža So you lied. Again. I've had enough of this - we're through!
 
I call dibs on the house and the car!
 
room topic changed to Lounge<C++>: Any ideas on how to fund your playing with 'cool things'? [brainfuck] [c++] [c++11] [c++-faq]
 
10:08 PM
Wut?
 
Ell
I'll see you guys tomorrow. Or later.
bai
 
kthxbai
 
WTF is dejagnu and why does GCC depend on it?
 
Summer should go fuck itself.
dejagnu sounds like sea food.
I just found a pic that reminded me of my relationship with my compiler.
 
@RMartinhoFernandes It's GCC. Were you expecting something intelligent?
 
10:11 PM
 
Xeo
deja GNU
 
@DeadMG Well, after investigating, it does make some sense. It's some test framework thingy. Guess I don't need it since I don't plan to run their test suite.
 
Lousy name for a test framework thingy.
 
Xeo
Something you think you've done before... "I have tested this functionality alread- oh, guess not", that's probably where the name came from
 
I'm going to pedantic and say that's not it, because there are no accents :P
 
Xeo
10:14 PM
do you know how much those cost?
 
0
Q: Exceptions in C++ how to get back to "main menu"

Ofek Ronwell im studying for an exem so i tried to keep it as simple as possible, but then something very weird heppen, the exercise was to change the following code and by the use of exceptions get back to the main menu. here's the code of the question: void ha_ha_loop() { int i, c; while(1) { ...

Oh poor thing.
What a stupid exercise.
 
well im studying for an exem
What's an exem?
 
Xeo
Simplest way: Don't use exceptions for control flow.Xeo 13 secs ago
 
Oh no, an exception purist.
4
 
Dat exception.
 
10:18 PM
@DomagojPandža Probably a misspelling of "exema". Obviously he's studying for it because a leaf beetle isn't very good at studying for itself.
 
@CatPlusPlus What is that?
 
@RMartinhoFernandes A class in the C++ MMO.
Critical hit on captured errors.
 
Xeo
Note: Poking yourself in the eye isn't a very smart thing to do.
2
 
@Xeo Must be a Java guy.
 
I have noticed there's no message of mine on the starboard.
 
10:23 PM
Using exceptions for control flow
 
> I don't like catch(..) ... I always use std::exception &e for completeness.
lol
"completeness"
For completeness, I don't catch everything.
 
meh completeness, it merely hides bugs
 
What hides bugs?
 
Xeo
> Edit: this is a working way :
for various definitions of "working" I guess...
 
whoa, I enabled wordwrap in Visual Studio. How do I turn that off :(
 
10:26 PM
lol
 
Xeo
The options has it somewhere
no idea for the shortcut
 
19
Q: How can I toggle word wrap in Visual Studio.NET?

Edward TanguayDoes Visual Studio .NET have a way to toggle word-wrap on and off? I am used to this feature in Eclipse which allows you to right click and toggle word wrap on and off so that when you have long lines that extend out to the right, you don't have to move the bottom scroll bar right and left to re...

 
Xeo
I always accidentially activate whitespace symbols with a shortcut..
 
@Xeo apperently CTRL+E,W. Not sure how I hit that on accident.
 
@RMartinhoFernandes catch(...)
 
10:26 PM
@TonyTheLion No, it doesn't.
What hides the bugs is the {}.
 
pedant
you know what I meant
 
Xeo
-1
A: Exceptions in C++ how to get back to "main menu"

DragoonWraithOK, here's my suggestion. First, ask_return() needs to get written. This is simple enough, and as far as I can tell you had it more-or-less right. I'm going to suggest actually using a std::exception though: void ask_return() { char c; cout << "Return to main menu? y/n" << e...

sigh
 
@Xeo You're on a quest, eh?
 
Xeo
Btw, anybody care to hit the delete button on that other low answer?
Aye
I actually have a Visual Novel to finish right now, but the final route is kinda depressing so I try putting it off :P
 
@Xeo Comic book?
 
Xeo
10:35 PM
@JimNorton It's a kind of game
A is a work of interactive fiction, featuring mostly static graphics, most often using anime-style art or occasionally live-action stills (and sometimes video footage). As the name might suggest, they resemble mixed-media novels or tableau vivant stage plays. They are analogous to a digitized version of a Choose Your Own Adventure novel. In Japanese terminology, a distinction is often made between visual novels proper (abbreviated NVL), which consist predominantly of narration and have very few interactive elements, and adventure games (abbreviated AVG or ADV), which may incorporate pr...
 
@Xeo Sounds interesting
 
Xeo
Basically, a book with many pictures and your own choices to influence the story
 
@Xeo Yeah, as a kid I remember books where you could choose your own path through the short little books.
 
Xeo
well, kinda like that
 
@Xeo Got, very interesting...
Can you share it with us?
 
Xeo
10:38 PM
 
Excellent... so it's delivered as software then?
 
Xeo
Like I said, it's a game. Maybe I should've been more clear and said "video game"
And while std::exception was not designed for control flow, it is the exception base class to be used and certainly is better than using int as exception class, since you have a error message with your exception, but I guess thats bad too? Nobody argues with you taht using exceptions for control flow is usualy bad in c++ted 1 min ago
Did that guy seriously highlight the "in c++" part?
 
Yes, he did.
 
@EtiennedeMartel it's void mainloop, not void main.
 
My bad.
Fortunately, my downvote still stands.
 
10:45 PM
Yeah, thought you would like to know you were making a fool of yourself.
 
Thanks.
 
Now owe me! Your soul is mine! Mwhahaha.
0
Q: LGPL-like license for a header-only C++ library

HighCommander4My understanding is that a program can link dynamically to an LGPL library and include its headers, possibly with modifications, without the program having to be released under the LGPL, but any modifications to the source code that goes into building the dynamic library must be released under th...

 
Is this a fit for PSE?
 
@RMartinhoFernandes Let's get drunk!
 
Xeo
10:49 PM
@RMartinhoFernandes Don't think so
PSE is more about the people themselves than about the code, as I understand it
 
Is there a SE for law-related software engineering questions?
(That was poorly worded, but I hope you get what I mean)
 
@Xeo Well, I don't think this is crap, but I'm quite sure it won't survive on SO for long.
 
@Xeo There once was a time when games where made of paper, plastic and cardboard and had no need for a computing device.
 
Xeo
@JimNorton Well, welcome to the modern times!
 
@JimNorton Wait, paper, plastic and cardboard? WTF?
 
10:51 PM
@Xeo That was to say that my question wasn't as irrelevant as you made it sound.
 
I remember when I could play without anything.
Well, maybe clothes in winter.
 
I know where @CatPlusPlus is hiding!
here ^
spot him
 
@RMartinhoFernandes Hard to believe huh?
 
Nice PS skills.
 
10:54 PM
@RMartinhoFernandes nice one :)
 
But, yeah, @Cat sure is one smooth operator.
 
he's a funny character, with a very dry sense of humor.
which makes for good giggles
 
He's a hater. But a cool hater.
 
yea that too
 
Yeah, we have a very varied population of haters around.
 
10:56 PM
I assumed Cat++ was a female.
 
@JimNorton He is.
 
so how would you describe me?
 
sows confusion
 
@RMartinhoFernandes wut?
 
10:57 PM
@RMartinhoFernandes Mission accomplished.
 
@TonyTheLion Male.
 
didn't take much
@JimNorton I knew that, thanks
 
@TonyTheLion Well, anything I can to do to be of help. :-)
Since I can't be of any C++ help, I might as well tell people what gender they are.
 
@RMartinhoFernandes Well, we never heard his or her voice, so...
It's still possible!
 
10:59 PM
But don't ask me to count beyond 20 as I was born with the standard number of fingers and toes.
 
@EtiennedeMartel Even if you did, it still would be possible, no?
 
@RMartinhoFernandes Indeed.
 
@DomagojPandža Woa, that's much better.
 
11:00 PM
@JimNorton So you can count at least up to 2^20. Don't be modest.
 
@DomagojPandža Hey, stop embarassing me with your fancy 'shopping skills/tools :(
 
@RMartinhoFernandes Haha, guess that is true.
Are my fingers and toes signed or unsigned?
 
@MooingDuck that's not too bad, only 17 messages
@DomagojPandža woah, awesome :) :P
 
Don't know why this was down voted. I up voted it.
http://stackoverflow.com/questions/11403977/exceptions-in-c-how-to-get-back-to-main-menu/11404106#11404106
 
11:03 PM
@JimNorton unsigned
 
Maybe should have added the homework tag...
But otherwise not a bad question...
 
Yeah, hard to extract more resolution from gravatar, seems to top out at 512^2. Too lazy to go per-pixel. Wanted to add even more cats, but too lazy. :$
 
@JimNorton Grab a pen and sign them.
 
@RMartinhoFernandes Hehe..
 
@JimNorton Generally fingers and toes are unsigned. Casts get signed (not to be confused with casting to signed). This is somewhat like rigorously inspected C++, where somebody has to sign off on any cast you use.
 
11:10 PM
@JerryCoffin wow... see one can learn something new every day!
 
it just dawned on me, Java lets you make almost every mistake there is with pointers except arithmetic. Why didn't they just allow pointers?
 
Matthew Inman's picture of the $211,223.04 raised by Operation BearLove Good, Cancer Bad. Awesome.
 
@MooingDuck They do allow pointers. They just don't admit it by calling them pointers. Based on the available operations, Java's not-pointers are indistinguishable from Pascal's pointers (for one example).
 
Almost everything is a pointer.
@JerryCoffin The spec does call them pointers.
And things like NullPointerException are quite clear on that, too.
"References" is a term used only in the community.
 
11:24 PM
@RMartinhoFernandes I'll take your word on that -- I'm pretty sure it didn't originally, but it's been quite a while since I looked at the Java spec. very closely.
 
But yeah, even if the spec doesn't, the community certainly frowns upon using the word "pointer" instead of "reference".
It's their dirty little secret.
 
Pointer is such a dirty dirty word!
 
template <typename R /* no comma */ typename E>
// six lines down
template <typename R, /* no typename */ E>
// and this is why you shouldn't write code when you're sleepy
It's annoying to be fixing Yesterday's Me's stupid mistakes.
 
Alright, time to try out Tribes: Ascend.
 
Isn't that on a pay-to-win system?
 
11:36 PM
pay to win sux
 
@RMartinhoFernandes Actually, I doubt it is. Secret would indicate that they actually know better, but I think most honestly believe there's some fundamental difference -- i.e., what we're dealing with is primarily ignorance rather than duplicity.
 
I don't think a pointer is such a bad thing said the C developer.
 
@JerryCoffin Hmm, possibly. Good point.
@JimNorton "Null references are my billion dollar mistake", said C. A. R. Hoare.
 
@RMartinhoFernandes I like the flexibility and power of pointers even though you can shoot off your own toes.
 
user1174868
Pairing beer with programming is hard, but I think IPAs are best
 
11:44 PM
That's why we have smart pointers, make RAII your bitch.
 
:( I want a TMP debugger so much
 
Robot is going to become a template based on how much he uses them.
 
@RMartinhoFernandes srsly
 
Wow, gcc provides an extension to allow C to use RAII
 
WTF.
Is that extension called g++?
I mean, if you're going to do that, why not just use C++?
 
11:50 PM
C example using GCC extensions

The GNU Compiler Collection implements a non-standard extension to the C language that allows it to support RAII: the "cleanup" variable attribute. For example, the following macro defines a variable with a given type and attaches a function to it that will be called when the variable goes out of scope:

#define RAII_VARIABLE(vartype,varname,initval,dtor) \
void _dtor_ ## varname (vartype * v) { dtor(*v); } \
vartype varname __attribute__((cleanup(_dtor_ ## varname))) = (initval)
 
Compiles! victory dance
 
It compiles! Ship it!
 
gah, stupid program must have a input audio device, and the only input audio device available on my computer is the audio card output, so it's an infinite feedback loop until I get my hands on a mic. Excellent.
 
@JimNorton You're joking, but since all the tests run at compile-time I actually could :)
 
@RMartinhoFernandes oh right, TMP library can do that can't it?
 
11:57 PM
I'm writing type traits, so there's no actual runtime code.
@MooingDuck Yes, because compilation implies all the static_asserts pass.
@MooingDuck lol
"the only input (...) is the (...) output"
@R.MartinhoFernandes: Agreed. Then you can declare thing one; thing two;James McNellis 9 mins ago
Can someone explain this joke to me?
 

« first day (632 days earlier)      last day (4313 days later) »