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

9:00 PM
@CatPlusPlus Because it was on Programmers first and then got migrated here, I believe.
 
We've tried to teach him many times that eating cookies isn't good for his stomach, to no avail
 
@DeadMG That would mean you sucked.
 
Guess I have to learn on past mistakes.
 
@DeadMG The only winning move is not to play.
 
If you were any good you'd make it a draw every time.
 
9:00 PM
@DeadMG No, I definitely have seen it here.
While it was still not-deleted.
 
@CatPlusPlus When it was migrated here.
 
@EtiennedeMartel Ding ding ding.
And we have a winner!
 
user1174868
I got my and statement to work, I am not asking a question
 
@DeadMG I don't know, what does it matter anyway.
 
@CatPlusPlus Guess I have to learn on from past mistakes. FTFY
 
9:00 PM
@EtiennedeMartel How else am I gonna win every time? Sure not gonna play Checkers instead of Starcraft 2
 
lol
Everytime someone mentions a computer game I have this urge to leave the room
guess I was never really the gaming type
 
Scorched Earth was good.
 
sbi
"I think @unclebobmartin would have a heart attack if he saw our code." Developer: "Who?" "Exactly."
 
The classic DOS game.
 
user1174868
What else besides video games are you suppose to do if you don't like other people? You can only read so much
 
9:02 PM
@Jordan Go to therapy?
 
user1174868
@JimNorton Oh
 
@DeadMG He meant tic-tac-toe. If you play against yourself and you win, it means you also lost. A draw only means you both lost. The only way to really "win" is to not play at all.
 
bool is_visited(BlockBegin* b) const { return _visited_blocks.at(b->block_id()); }

Is there a reason not to use `const BlockBegin &b)` instead?
 
@EtiennedeMartel Still not gonna play that instead of Starcraft 2 :P
 
9:03 PM
@ManofOneWay nope
 
@ManofOneWay In this case? Absolutely not.
 
@EtiennedeMartel I'd say otherwise. If you get a draw every time, you have solved the game. What can be more "winning" than that?
 
btw
Word, y u no run on system u no been configured for?
so irritating
 
WTF are you talking about?
 
posted on July 09, 2012 by vcblog

There are several reasons to program in C++, and one of the most important ones is the incredible performance that one can obtain.  There are a set of optimizations that the Microsoft Visual C++ compiler offers to perform on your binaries to yield the best performance for your application on varying hardware (for e.g. via compiler switches such as /O2, Profile-Guided Optimization (PGO) an

 
@RMartinhoFernandes Two installs of Windows, same computer, one with Office installed. But using other install, can't use Office.
 
PERFORMANCE.
 
@CatPlusPlus dafuq?
@DeadMG Suckiness
 
and a lecturer for one of my modules kindly gave out everything as .doc
 
9:05 PM
You're dual booting Windows?
 
@DeadMG I curse them, and use Word Viewer.
 
I prefer .txt
easier
 
Also, if anyone on my team sends some crap as a doc, they'll hear from me.
 
9:06 PM
aaaargh cup and string interwebs! :(
 
I don't care what you use to make the thing. Export the damn thing as a PDF.
 
eh
 
If I can generate a PDF from crap I write on Notepad, you should be able to do it from Word.
 
9:07 PM
PDF sucks worse than .doc
I was gonna show you guys one of my exam papers
 
who'd of thought?
 
@DeadMG Why? I can read it everywhere.
 
it sucks in @DeadMG's eyes
 
but can't get rid of the logo/etc unless I want to shop the whole paper manually in Paint
 
I prefer writing in all white space characters.
 
9:08 PM
meh, Paint
 
Right, because PDF was not designed for editing.
 
and then post it up as individual pictures
 
you can just put white boxes over it
 
Try LibreOffice
 
and be done with it
 
9:09 PM
@JimNorton No, thanks.
I don't need an "office suite".
 
does it suck?
 
vim works very well for me.
Just don't send me any .docs if you really want me to read them.
 
vim on windows?
 
oh wow
and can it do math like Excel?
 
9:10 PM
@RMartinhoFernandes I understand, unfortunately in the business world, it has become the standard.
 
Excel can do math?
 
ok downloading gvim
wanna try that thing
 
@TonyTheLion Oh, I meant as a replacement for .doc. I don't have a need for Excel, but Excel is cool (Word is cool too, just don't send me the .docs).
 
I would be happy with just an office instead of this damn cubicle.
 
ah right
 
9:12 PM
Use LibreOffice.
 
@CatPlusPlus Already covered it...
 
Too lazy to read.
 
slowpoke
TL;DR
 
been going over some of the exam material I sat in Jan/Feb
man, it makes for depressing reading
 
oh
the mistakes you made?
 
9:13 PM
no
how pathetic the questions are
 
@CatPlusPlus To read .docs? I use Word Viewer (and I don't use it, because no one sends me anything important as .doc).
 
oh, now it's the questions that are pathetic :P
 
Word Viewer sucks.
 
Like LibreOffice doesn't.
 
Also I had to write spec in .doc, because it has comments or something. :(
 
9:14 PM
OpenOffice?
 
Ell
word doesn't suck
 
@TonyTheLion They got into some silly pissing contest with Oracle and changed names. Turns out Oracle pisses farther.
 
Ell
@TonyTheLion openoffice is dead iirc
 
Every WYSIWYG sucks.
 
Ell
@CatPlusPlus do you write with tex or something?
 
9:15 PM
Yes.
 
still same name, if you ask me
@RMartinhoFernandes not when pissing with Google over Java/Android
 
Apache OpenOffice? What the hell.
 
@TonyTheLion It's complicated. They forked the hell out of that shit.
 
@CatPlusPlus LaTeX.... ah the good ole days.
 
sbi
@TonyTheLion libreoffice.org
 
9:17 PM
Nothing like open-source community to never agree over anything and fragment the hell out of itself.
 
Since when is this an Apache project?
 
@TonyTheLion Yeah, Google pisses farther than Oracle.
@CatPlusPlus Since the Oracle pissing incident.
 
@sbi Six free applications... with seven icons!
 
@RMartinhoFernandes seems so
 
9:18 PM
@CatPlusPlus Oracle turned it over to the Apache foundation about a year ago I think
 
Apache OpenOffice, formerly known as OpenOffice.org, and often called OpenOffice or OOo, is an open-source office productivity software suite whose main components are for word processing, spreadsheets, presentations, graphics, and databases. As open source software, users are free to download, modify, use and distribute OpenOffice. History {| class="wikitable" style="float: right; width: 30em; margin-left: 1em;" |+ OpenOffice release history |- ! Version ! Release date ! Description |- |Build 638c |2001-10 |The first milestone release. |- |1.0 |2002-05-01 | |- |1.0.1 |2002-07-11 |...
click da link, brings you all the informationz
 
sbi
@RMartinhoFernandes IIRC, LibreOffice forked after Oracle took over Sun, because Oracle wasn't clearly stating they'd let the OSS off their hook, as Sun used to do. Doing this, Oracle drove a few of OSS projects away (Hudson => Jenkins comes to my mind). Later, probably realizing that they hadn't done anything good, the put OO into Apache's hands. Too late, though.
 
Ell
why do companies back open source projects?
 
Good PR. Probably other reasons too.
 
@Ell Marketing?
 
9:21 PM
Also, who the fuck thought it was a good idea to include a Microsoft Access-alike thing in there?
 
@RMartinhoFernandes Might be cheaper than actually developping the thing in house.
 
@RMartinhoFernandes an idiot, obviously
 
sbi
> The Document Foundation created LibreOffice from their former project in response to Oracle Corporation's purchasing of Sun Microsystems over concerns that Oracle would either discontinue OpenOffice.org, or place restrictions on it as an open source project, as it had on Sun's OpenSolaris. — Wikipedia
 
I doubt it is any better than Access, and Access is well... subpar is a compliment.
 
@RMartinhoFernandes Same kind of guy who thought Access was a good thing in the first place?
 
9:22 PM
Access sucks for anything more than a table with 10 rows
 
I still don't see why people would need to use Access. If you need a file-based RDBMS, SQLite is far superior.
 
@TonyTheLion That's one brave photograper
 
@EtiennedeMartel What about FORMS.
 
@TonyTheLion Access has it's uses. It's not really all that bad if you find the right project for it.
 
It's a very important feature, you know.
 
9:22 PM
@DeadMG he tried to photograph me, that's the result :P
 
@JimNorton My point is there is no right project for it.
 
@JimNorton man, don't get me started, my father uses it in his company, as the main company database, it's given me nightmares
 
@TonyTheLion Your keyboard must be huge for your paws to fit on there.
 
@EtiennedeMartel I yes they are :)
 
@EtiennedeMartel A company I used to work for used it to create reports from data collected from POS systems. It wasn't overkill and worked rather well.
 
9:24 PM
@CatPlusPlus That Oracle thing? It's worse.
 
No, Access forms.
 
sbi
@Ell Sun, SuSe, RedHat, IBM, and quite a few others live(d) off doing that.
 
Or whatever it's called in English version.
 
Oracle Forms is a software product for creating screens that interact with an Oracle database. It has an IDE including an object navigator, property sheet and code editor that uses PL/SQL. It was originally developed to run server-side in character mode terminal sessions. It was ported to other platforms, including Windows, to function in a client–server environment. Later versions were ported to Java where it runs in a Java EE container and can integrate with Java and web services. The primary focus of Forms is to create data entry systems that access an Oracle database. How it work...
I had a course on that in college. It was painful.
 
PL/SQL. Oh noes the memories.
 
9:26 PM
@Jordan great. That is really good. Keep up the good work. Also, nice of you to report success in the room. You're welcome to stick around. At quiet times, you may find that we might even exchange hints on functional programming
 
You should learn Haskell.
 
Access with it's Forms and VBA was actually quite useful.
 
@CatPlusPlus You should learn Perl.
 
@CatPlusPlus where was the learn yourself a haskell again?
 
On the Internet.
 
9:28 PM
oh
 
how do i get on the internet
 
@JimNorton Eh, maybe it's because I'm a programmer and I prefer to make things the right way rather than making them quickly with as little lines of code as possible.
 
With series of tubes.
 
@EtiennedeMartel Well, for some people who aren't programmers it was quite useful.
I only used it because I had to.
 
9:29 PM
I think that's strike one: making a tool for programmers and aiming it at non-programmers.
 
^ Spare part ladies.
 
@RMartinhoFernandes It was kind of both..... It could do a lot without any need for programming, but if you needed more you could tap into VBA.
 
Which, coincidentally, sucks as well.
You're better off starting with MySQL than Access. And that's saying something.
 
@JimNorton "I was only following orders"
 
@EtiennedeMartel Exactly.
 
9:31 PM
Don't follow orders, shoot them.
 
@JimNorton Why VBA? Why use a even shittier version of VB? VB wasn't noob friendly enough?
@RMartinhoFernandes With extreme prejudice.
 
@EtiennedeMartel Because it was built into the product.
@RMartinhoFernandes Well, I couldn't shoot my boss, I needed a paycheck at the time.
 
Get the paycheck, then shoot him.
If you needed more than one paycheck, though, it might be a bit problematic.
 
It really wasn't a bad choice for they needed to have done at the time.
 
@EtiennedeMartel Shoot him, and steal all his checks.
 
9:34 PM
@RMartinhoFernandes got a minor legal issue
 
@JimNorton Oh, the road to hell is paved with good intentions.
 
Fellas, if I have a class function in a separate file which produces several different variables (each has some value), how can I call a specific one instead having all the variables printed out?
 
@DeadMG Shoot the legal issue.
Keep shooting things until you get what you want.
 
@NicoBellic what? A class function in a seperate file from what? The class definition?
 
@RMartinhoFernandes They're shooting back.
 
9:35 PM
@NicoBellic one doesn't "call" variables
 
@NicoBellic Underspecified problem of the year.
 
@NicoBellic all variables are accessed by their names.
 
@MooingDuck Unless they have operator() defined.
 
@DeadMG Go Han Solo on them: shoot first.
 
@NicoBellic why would all the variables be printed?
@NicoBellic nevermind all that and read the newbie hints
 
9:36 PM
@RMartinhoFernandes I did. But there are so many of them that I am running low on ammunition. In addition, their return fire is realistically guaranteed to destroy me.
 
@MooingDuck Unless they are private and another class needs access...
 
@DeadMG Get a bigger gun.
 
@DeadMG You suck. What else can I say?
 
lol
 
@EtiennedeMartel More Dakka!
 
9:37 PM
@MooingDuck sorry if I was ambiguous. I have a class in a separate file. The class has a function inside which produces several different variables (like x, y, z, etc) and each has some value. How can I print out only x, for example?
 
cout << x << endl;
 
Functions don't "produce variables".
 
@NicoBellic variables dont print themselves.
@JimNorton syntax error.
@NicoBellic DID YOU READ THE NEWBIE HINTS?
 
x.Print(); :-)
 
Ell
std::cout << x << std::endl;
 
9:40 PM
Apr 11 at 17:54, by R. Martinho Fernandes
std::do_what_i_want(std::guess_the_arguments_while_you_are_at_it());
 
Ell
april 11th? wow.
 
What about it?
 
Ell
the quote was from far back :L
 
@RMartinhoFernandes you're old
 
this.Print()
 
9:41 PM
Three months?
 
Ell
@RMartinhoFernandes at least!
 
Jul 6 at 15:33, by R. Martinho Fernandes
I'm precognitive!
 
@JimNorton what are you doing? this is a pointer!
 
@MooingDuck Making mistakes.
this->Print() ?
 
@MooingDuck Not in Java or C#.
 
9:42 PM
@EtiennedeMartel Yeah, I've written some of both...
What is the C++ way?
pointer to object with Print() member function?
 
this->Print(). But you rarely need the this-> thing.
I've only used it in some templates where it is required.
 
@MooingDuck Wouldn't it be dreamy if this was a reference instead of a pointer?
44
Q: Why 'this' is a pointer and not a reference?

NaveenI was reading the answers to this question C++ pros and cons and got this doubt while reading the comments. Why the this is a pointer a not a reference ? Any particular reason for making it a pointer?

 
@JimNorton that's poor style; Print should say what it prints to. And it should be a free function rather than a member function. Or an operator. operator<<, for instance.
 
Still, this should have been a reference, since it cannot be null and cannot be reseated anyway.
 
Also, modules.
 
9:47 PM
It's like a textbook example of where and when a reference should be used.
 
agreed
 
Ell
oh yeah why is this a pointer?
 
@Ell Historical reasons.
 
@Ell did you read the question linked 30 seconds ago?
 
because references didn't exist when this was invented and nobody could be bothered to go back and change it
 
9:49 PM
@MooingDuck is pissed.
 
which is, of course, messy now with rvalue *this
 
Ell
can you std::move(this)?
 
this is const.
 
@Ell this is already an rvalue.
 
@DeadMG also you'd be unable to overload operator&
 
Ell
9:50 PM
right kk
 
@MooingDuck Hm?
 
@MooingDuck Meet std::addressof.
 
Ell
@MooingDuck sorry no I didn't read it, I'm switching between this and other things, my apologies
 
@Ell Because C++.
 
Is it possible to name the members in a std::tuple somehow in order to remember them easier?
 
9:52 PM
struct {
    int myint;
    double mydouble;
};
 
Fusion's map.
 
Are there any benefits of using tuple instead of struct?
 
Why make things simple.
@ManofOneWay Yes. You don't have to make a struct.
 
@ManofOneWay only if the programmer doesn't know the types
 
@ManofOneWay You can "reflect" on the contents of a tuple.
 
9:54 PM
@DeadMG What do you mean by that?
 
if you give somebody a tuple, they can tell what types are in it and they know how to access them
 
I think I've only used tuples in a situation where naming the elements would help once.
 
@EtiennedeMartel I agree. Especially when you have a member function that takes another object by reference, like the copy constructor, it's really disgusting to say this->foo but that.bar.
 
but if you give somebody a struct, they cannot know what members are in it or their types
 
And I only used a tuple because it works as a compressed pair kind of thing.
 
9:55 PM
user image
3
lol
 
Also enum { name_a, name_b, name_c }; and you can do std::get<name_a>(tuple);.
 
@DomagojPandža HTML one always makes me laugh
 
@DomagojPandža The LaTeX one is my favorite.
 
@DeadMG I don't get the HTML one.
 
@DeadMG There is a proposal for adding an operator that gives you a tuple view of a struct's members.
 
9:57 PM
Thank you gents
 
@DomagojPandža I like the 'C' one.
 
@FredOverflow It's not a programming language.
 
LaTeX. cough
 
@CatPlusPlus I thought CSS was Turing complete?
 
TeX is Turing-complete.
 
9:58 PM
Not alone.
 
@RMartinhoFernandes LaTeX definitely is Turing complete.
 
@FredOverflow CSS is not HTML.
 
@FredOverflow So, what about programming languages?
 
HTML is a flower pot.
 
And you need both HTML5 and CSS.
Might as well use JavaScript and stop being a hipster.
 
Ell
9:59 PM
@DomagojPandža i don't get the html one :L
 
Ell
why is it a flower pot?
oops
 
@CatPlusPlus All you need is love.
 
Ell
sorry
Just read above me :L ignore me, sorry!
 
We all live in a yellow submarine.
 

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