« first day (336 days earlier)      last day (4626 days later) » 
07:00 - 22:0022:00 - 00:00

10:01 PM
@sbi but safe code needs to be debugged less often, which means you'll read it less often, which means it'll be considered less readable
q.e.d.
for readability purposes we should all write broken unsafe code
 
Speaking of old code, I found something from 1991 on my hard drive I thought it would be fun to recompile in Turbo C++ under an emulator. I managed to dig up a couple of libraries it depended on...Polish and Russian FTP sites. But I can't find a copy of the "GX Graphics Library" from Genus Microprogramming anywhere. Hrm.
Anyone have a drive of 20 year old .LIB files hanging around? :)
 
sbi
@jalf Um, what's the "but" doing in that argument? Unless I had too much beer (I was watching the 2nd Star Wars prequel with one of my sons, so that might well be I) you are backing me up with that.
 
I'm arguing that we should write buggy code. I'm pretty sure that wasn't what you meant :D
 
@jalf Any suggestions on master thesis? =)
 
@sbi it was, however, deduced from the implications of your argument
 
sbi
10:06 PM
@jalf Oh. It reads like it is advocating my arguments by impishly presenting arguments for the opposite. :)
 
@ManofOneWay dunno. Depends on what interests you, and what you can find an advisor for and such
@sbi nah, my argument is a logical conclusion of yours. As you say, readability is basically a function of familiarity, so the more familiar we get with some code, the more readable it'll appear. And a good way to become familiar with code is to debug it, so logically, the code that needs to be debugged most often will appear to be most readable
therefore, if the goal is readable code, we should write buggy code
the above argument may or may not be presented with humorous intent
but it is, I believe, a fully valid logical implication of your premise
 
sbi
@jalf Oh, I see where the misunderstanding was. I was talking about familiarity with constructs, idioms, pattern, rather than specific code applying them. I thought the choice of examples I picked would make that clear?
@jalf Then a fully valid implication of you concluding this from my argument might be that your are insane. However,...
The insane, on occasion, are not without their charms.
:)
 
nothing wrong with insanity, in moderation
 
"If you paid him enough, Bjarne Stroustrup might give you a personalized test (and award you an "Advanced C++ Programmer" medal you can wear to your next interview). If you're not independently wealthy enough to do that...then the gauge of your skill must come from within, or from peer recognition, or perhaps some industry certification."
0
Q: When can one think that he is an advanced C++ programmer?

thetnaI have been learning to C++. When can I believe that I am an advanced C++ programmer? What are the minimum things I should know to be an advanced C++ programmer?

"Learning to C++" would actually be a good title for a book.
 
@ManofOneWay do you have any ideas in mind?
also what are the rules? Do you need to find a company to write it for?
 
10:28 PM
@HostileFork I've seen many programmers who think that they are C++ experts while they are lacking basic understanding.
 
10:39 PM
@sbi no, that I'm boring
 
sbi
@JohannesSchaublitb What are you referring to??
 
@ManofOneWay The Sky
 
@sbi you saying i'm boring and I thanking for letting me know
 
how's you all tonight?
 
im boring as always :(
 
10:45 PM
oh damn :(
 
why are people here so touchy all of a sudden?
this is just stupid
 
yea I've been noticing that
not sure what all this sensitivity is...
 
I'm trying to find out what this is referring to. But I can't find it in the history.
 
people should realize
 
sbi
@jalf It's called fall/autumn. It makes even regulars here forget that I am naturally grumpy.
 
10:49 PM
THIS IS THE INTERNET, SENSITIVITY IS NOT AT HOME HERE
@sbi wait... wut??? You're grumpy?
 
My previous girlfriend called me boring. The relationship didn't last. (I'm not sure to type a smiley face or a sad face here.)
 
oh yea, I did forget that, damn
 
sbi
@StackedCrooked Start with my first contribution to this room today (GMT, and after waking up, rather than after midnight). That would be a starting point, I believe.
 
room topic changed to Lounge<C++>: where people are emo and take things far too seriously [c++] [c++11] [c++-faq] [sex]
2
 
ok, let's bring a good mood back to this room :)
 
sbi
10:51 PM
@TonyTheLion You now, you'd think my "About me" text beginning with "I'm the Grumpy Old Ape" would give people a clue as to what to expect from me...
 
@TonyTheLion have a star
 
@sbi oh well, I guess sometimes we forget...
so let's talk about something fun, that doesn't stir bad moods
like eh SEX
 
@TonyTheLion all those in favor, say aye
 
hey gys...
any1 have a python to c++ compiler
 
10:53 PM
Here's a smiley to cheer ya'll up :)
 
@john no
what good would that be?
 
@john never even heard of that
 
lol
 
@jalf AYE :)
 
sbi
@jalf Nay. Talking about sex is boring.
 
10:54 PM
cant find a download
 
the only sane way to do that is to embed a python interpreter into your C++ code, along with your script as a string resource
@sbi I dind't say anything about talking, did I?
 
sbi
@jalf Exactly my thought. No! Please do not have such a thing!
 
@sbi lulz, well, it's not like we can have sex in this room... :P
 
sbi
@jalf "so let's talk about something...like sex"
 
torchlight 2 !
 
10:55 PM
@sbi Yeah, he said that. But that wasn't the message I replied to ;)
 
sbi
@TonyTheLion And it's not like I would like to have sex with (any of) you.
 
seriously? please remove that "sex" tag lol
 
@sbi yea well that too
 
@JohannesSchaublitb it was there already
 
lol, didn't even see that
 
10:56 PM
oh
 
hahahah
 
if i wana use notepad to code c++ I save to .cpp right?
 
sbi
@JohannesSchaublitb Oh, finally! Someone realized it!
 
The sex tag keeps the prudes out.
2
 
or brings flagging trolls in :P
 
sbi
10:57 PM
Really, why would you want to remove that? I like it.
 
yea I'm all for it, I mean just rename the room to Lounge<Sex++> and all will be much better :)
2
 
sbi
@TonyTheLion No, it wouldn't.
 
@sbi are you sure?
 
@john in theory it is pretty trivial to convert an interpreter to a compiler. There's been a fair bit of research into compiler-compilers which, given an interpreter, can output a compiler. Find one of those, adapt your python interpreter of choice into a structure it understands, and run it to generate a python-to-C++ compiler
 
Is it a problem if some troll decides to randomly flag messages? It takes multiple flags in order to trigger a ban so he can't do much harm.
 
sbi
10:58 PM
@TonyTheLion You owe me something to wipe my monitor with!
 
Or just write your code in the language you want it to be. That's usually simpler and saner. If you want C++ code, write C++ code. If you want Python code, write Python code.
 
@sbi hahah :P I have tissue around, but it's kinda hard to send it over the wire :P
@jalf damn right :)
 
@jalf Doesn't it become hard when using reflection? Or runtime code generation.
 
@StackedCrooked it's just annoying mainly...
 
str = raw_input("input your number and you'll get the highest digit in it: ")
low = 0
for i in range(0, len(str)):
current = str[i]
a = current
if a > low:
low = a
print low
 
10:59 PM
@john .cpp is a common extension for C++ source files, yes. But it's not the only one, and it's only a convention, not a requirement. You can name the file .arglebargle and feed it to a C++ compiler if yo ulike
 
I need that in c++ lol
 
@StackedCrooked Not in theory. if it can be interpreted, then it can be compiled. You just need to generate code instead of execute code
 
@john honestly, we're not your language converters for you, do you know C++?
 
but in both cases, basically the same code exists.
 
did you even try anything?
 
sbi
11:00 PM
@jalf What kind of stupid argument is that? I usually want a binary executable for my platform. Should I write assembler then?
 
I just started..i know if/ for loops/boolean/switch
thats a "hard assignment" for my c++ class =P
 
cool that's a start, for input you can use std::cin and for output std::cout
 
@sbi I didn't say that. I'm talking about source code. If you want source code in language X, write it in language X
 
@john lol, it's fairly simple really
 
You can generate an executable from any language
 
11:01 PM
Tell me more!
 
I'm gonna switch to LOLCODE I think, more LOL to be had :)
@john you'll most likely need a std::string to get your inputstring
and then convert it to a char array, so you can loop it, and find the highest number in it
 
@jalf but I suspect writing a compiler-to-intepreter is more difficult
if not impossible
 
yaa we cant use char array lol
cuz we havent learned so he said no
 
John wants to convert Python code to C++ code because he doesn't know C++ well enough to write the code in C++ in the first place. Code generation is not the solution here.
 
@john huh?
why do professors always put silly restrictions on homework?
 
11:04 PM
@stacked this is a "hard assignment" given to use because he was mad that people werent studying..i got plagued for it lol
we started class like 3 weeks ago
 
fuck everything about homework, just fuck it
 
lol...cuz he said its easy to find char array in google
 
@JohannesSchaublitb why is that? The compiler already emits the code you need. You just need to transform it into a program which executes that code, instead of outputting it. ;)
 
one thing to remember: In internet chats, the teacher is always the evil!
 
it's easy to find most anything with Google, if you only bother to look
 
11:05 PM
@john Even if you managed to convert the Python code to C++ it would be very noticeable that the code was generated.
 
@john If this is for homework, have you considered that the intention might be that you actually learn C++?
 
sbi
Nobody likes my historical outline. :(
 
Or that you probably won't learn C++ by writing Python code and then asking strangers to convert it to C++ for you?
 
lollss i try bro but im freaking stressed out..this is 20%
like I said this assignment is suppose to be VERY challenging for our class
 
sbi
11:06 PM
@TonyTheLion You can loop over a std::string just fine. No need to convert anything.
 
@john well, what did you try? So far, all we've seen are 8 lines of python code
If you tried solving the problem in C++, why don't you post your C++ code and ask for help with the bit you got stuck on?
 
sbi
@jalf Oh, and I even missed those!
 
That way you might learn something and solve the exercise
 
@sbi oh, well, that was a piece of missing knowledge on my side then
 
@sbi I comfort you with an upvote.
 
11:08 PM
ok I wanted to use something like this.. max = first if second > first max = second..just loop that six times
cuz we gota do it for input of 6 digits
123 or 4567
 
so write the loop. You said you know for loops
 
ya but how do i get the code to compare the digits?
((cant use return))
 
take it one step at a time. And when you get stuck, google it, try to look it up in your textbook, or ask a specific question about that precise problem
 
lulz
so now everyone's gone?
whatever happened to the fun bits we were gonna talk about?
We never even got started?
WTH?
 
sbi
@StackedCrooked Thanks, you made my day! Erm, night, that is. OMG, isn't that depressing, when an upvote on some esoteric programming language answer makes your night?!
 
11:16 PM
@sbi I upvoted too btw
 
@TonyTheLion I got to talk about compiler-compilers for converting compilers into interpreters and vice versa. That's good enough for me
I'll probably head to bed now. Can't stand all this excitement ;)
 
@sbi No it's perfectly normal.
 
sbi
@TonyTheLion It's WTM (mate) nowadays. Oh, wait. What does WTH even stand for?
 
@sbi What the Hell
 
sbi
11:17 PM
@StackedCrooked Well, not for me, anyway. (How do you think I got so many kids??)
@TonyTheLion Ah, of course. Sorry. I probably had too much beer then. Too bad.
 
how can I use notepad to test my code??
visual studio is totally fked up
 
well, I've been having a bit more of a social life in the last week, cause I've been with my friends in the UK here, which has been nice. I missed that back in Belgium
 
@john I don't think that Notepad can run your code.
 
sbi
@john You cannot. You can, however, use it to edit your code. It's an editor, after all.
Anyway, I guess I'll follow jalf to bed. (@jalf, can you move over a bit?:D)
 
11:21 PM
@john a simple program can be tested like this: g++ -o test main.cpp ; ./test
 
@sbi lol :P
 
#include "stdafx.h"
#include <iostream>

#using namespace std;

int number;
int max = 0;

cout << "Enter a number : ";
cin >> number;

while (number != 0)
{
if ((number % 10) > max)) //Remainder of number / 10
{
max = (number % 10);
}
number /= 10; //remove the last digit
}

cout << "The largest number was " << max;
trying to test that!
 
@sbi Is that how you made all those kids?
 
lulz
I hope he didn't make kids with @jalf... :P
 
Hi. Can anyone please tell how to link boost library in general? I'm using g++ on linux.
 
11:22 PM
#using namespace std; ಠ_ಠ
The '#' should not be there.
 
#fail
 
how can i test this without vis studio?
 
@john @john Why doesn't it work with Visual Studio?
 
sbi
@StackedCrooked No, that is how I can stand having them around all day. Should you ever have a baby, always heed rule #1: Sleep whenever your baby sleeps. (Because if your baby sleeps not, you won't sleep either.) Take it from someone who has many kids: Of all the rules of how to deal with a small baby, this is the most-important, and the most-ignored. Leading to terrible results. Never underestimate the ability of a baby to keep you awake.
 
my vis studio is working like crap..b/c poweriso got all fked up on installation
 
sbi
11:25 PM
@StackedCrooked Are you kidding? Nor should the rest.
 
im waiting to get a dvd to install
 
does notepad++ work with c++?
 
I guess that is a fail in history :P
 
@sbi Compilers stop at the first error. Me too.
 
11:26 PM
@john Notepad++ is an editor, not a compiler
@StackedCrooked lulz
 
sbi
@StackedCrooked Ah, you just barely wiggled your way out of that!
 
eerrr so what do i do :(
 
I think it would be cool if my compiler printed "ಠ_ಠ" next to each error message.
 
sbi
@TonyTheLion How come I have a deja vu over that statement?
Anyway, did I mention I'll join @jalf?
Good night!
 
@sbi probably because you've said it before, Good Night
@StackedCrooked hahah :P
 
11:28 PM
Good night! @sbi
 
@john let's see, you've been following a class for 3 weeks, you haven't even got a compiler installed yet, or learned to use it, and you are trying to wriggle out of your teacher's penalty for not studying? Maybe you should've actually paid attention for the last 3 weeks, if you wanted to avoid being in this situation
 
@john You could configure Notepad++ to compile and run your code when pressing 'F5'.
 
i was vis studio..but my hard drive just crase hahaha
so im trying to use onthis comp..but need a dvd to burn
i know to use use vis studio
 
oh gosh
 
if Visual Studio is installed, you can use its compiler directly from the command line. That (probably) won't crash
 
11:30 PM
im missing files b/c poweriso only istalls up to a certain limit when its free
and after that I put the code
it still isnt nstalling all files
 
@john Ok, to make a c++ program you need a text editor(to write your code) and a compiler(like gcc)
 
@john: this is what you need to do:
- Download gcc for windows (http://www.mingw.org/).
- Install.
- Test your code with this command: `g++ -o test main.cpp ; ./test`. (You code must be in the file called `main.cpp`.)
Good luck.
 
@john use something else. If you've got a dvd image, install daemon-tools IMO. It's free, and it works with no stupid limitations
 
@StackedCrooked g++ it should be
 
@vivek Thanks
 
11:32 PM
ohh daemon is free?? thought u had to pay!
 
I'm not sure if concatenating commands with ; works on Windows.
 
@john nope, the lite version is free. (and not very lite. It's fully functional)
But it'll "offer" to install some browser toolbar, I think. Just say no to that ;)
alternatively, use g++ as suggested above. I think this distribution is easier to get going though: tdm-gcc.tdragon.net
but probably easiest to stick with a single compiler for now. If you know VS, might as well stick with that if you can get it reinstalled
 
yehh
 
lulz :P
 
is there any daemon tools comp. with windows 7?
 
11:36 PM
@jalf : I think john should use code-blocks .
That would be simple and easy
 
@vivek gona use daemon tools if not ill use that ty!
 
I am soooo annoyed lol, I had written an answer and then as I was approaching the "Post Answer" button THE GUY DELETED IT O.O
(The question)
 
lol
 
I had looked up all these links and everything
 
is codepad.org a compiler?
 
@john Just to clarify, code::blocks isn't a virtual drive software,
 
its an ide
 
yes :) .. Your problem is solved
 
yay lol
 
@TonyTheLion Its cool
 
11:43 PM
If i have: if ((number % 10) > max)) //Remainder of number / 10
{
max = (number % 10);
}
number /= 10; //remove the last digit
I can take out if and put in do right
 
ok. so ?
 
Im asking
it would work right
 
you wan to find the largest digit , right ?
with a while loop that should work
 
07:00 - 22:0022:00 - 00:00

« first day (336 days earlier)      last day (4626 days later) »