« first day (918 days earlier)      last day (4256 days later) » 

Xeo
Xeo
00:07
111 messages moved to bin
user142019
Now forget about it.
Xeo
Xeo
That felt good.
user142019
00:08
MLP is awesome.
I feel flushed
Wow that's empty.
cache miss, branch misprediction
Fuck your bad posting
user142019
00:08
branch prediction fail
user142019
we went the wrong way
user142019
now we have to start over
Xeo
Xeo
lol
@CatPlusPlus Who? All I did was point out the question is closed.
Also it doesn't really matter if that question is closed or not
Nobody cares about the answers there
00:10
Can we not start this again, we just binned 111 messages
If we binned every dumb discussion here we'd essentially be chatting in the bin
7
Silly Xeo
Xeo
Xeo
I just did as I was told
We're the italics! We're the law!
@CatPlusPlus It's not about the discussion being dumb, it's about beating a dead horse.
There's literally nothing else happening
00:14
Silentium est aureum
@CatPlusPlus My issue is not the discussion being dumb or not, it's the chat being co-opted by one person to 'discuss' something nobody else wants to talk about.
And yet people talked about it for like 10 minutes and 100 messages :v:
@LucDanton get over it
done for the day.
snore... SkyrimBorderlessWindow.exe
00:16
Who are you people
user142019
Gmail sucks.
user142019
It gives me a desktop notification but doesn't automatically refresh the inbox wat.
@ЯрославРахматуллин good idea... ssh [email protected]
user142019
daknok% ssh [email protected]                                         ~
The authenticity of host 'crawl.akrasiac.org (204.140.17.55)' can't be established.
RSA key fingerprint is WHATEVER.
Are you sure you want to continue connecting (yes/no)?
ikr
pw is joshua
user142019
00:17
I'm not connecting to it.
A host you've never connected to is unknown? Well I never
user142019
I don't trust it.
user142019
Anyway, time to sleep.
Someone's on Reddit.
00:27
Caught red handed.
Went out. Didn't regret it. Time for sleeps. Have fun.
user142019
00:54
The Internet is dead.
user142019
is that show really that good?
user142019
MLP: FiM is.
01:10
@Borgleader Yes
01:32
no
01:50
Hey guys. Im learning c++ could someone answer a simple question for me?
I need to create a method to that takes a reference to an object as a parameter. How do I go about doing this?
have you googled or searched StackOverflow?
Declare void foo(bar& b); in class definition.
Its your fault we get so many link dumps :P
02:08
Ya ive been searching. so to assign it to a variable it would be bar* c = b; ?
bar* is a pointer to bar, so likely not.
Hmm..
Depends what kind of variable you want. In C++, keep in mind everything works as int does.
Lounge has been dead lately.
@Rapptz Seems like the usual given the hour.
02:11
Saturday 10 PM EST!
basically I want to pass in an object and then have the method change a public member variable of the object
but I more so meant the past few days. There were some things in the starboard "I suck" from 2 days ago.
@Deekor If the caller needs to notice the change, accept a reference. There is then no need to assign anything to a variable: the function parameter is your variable.
How are you learning C++?
I find it weird that you got the Classes part without understand how functions work.
@Rapptz By asking questions here
02:14
I guess to be more clear I want the constructor of an object(foo) to take a reference to another object(bar), save it as a member variable and then be able to modify foo should be able to modify bar's public variable whenever it wants
Im learning in school, im working on an assignment right now
Yes, that is clearer.
I just dont really have the grasp of pointers yet
Start with that.
You don't have to use pointers.
@Rapptz I don't think member objects will be of much use.
02:17
I don't know, depends what you're doing.
0
Q: Pass a reference of an object into the constructor of another object

DeekorI'm new to C++ and want to know how to pass a reference of an object into the constructor of another object. Say I have to object foo and bar I want the constructor of an object(foo) to take a reference to another object(bar), save it as a member variable and then be able to modify bar's public...

"On this day in 1841, Edgar Allan Poe's story, The Murders in the Rue Morgue, first appears in Graham's Lady's and Gentleman's Magazine. The tale is generally considered to be the first detective story."
02:47
looking to learn C++- where do I begin
@Johann any tutorial
examples?
what is the best
2474
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

Get a book from this list ^ Most online tutorials are crap
02:50
@Johann the best depends on how mature you are, how much time you have and how much experience you have. C++ is a beast and after using it for 4 years of production code I can say I don't know too much. I would pick a project and start writting code.
I can't say I've ever learned any useful programming from books... I found google to be an excellent source.
@Mikhail know perl html/css javascript
@Mysticial You're also somewhat of a genius :P
visual studio is so confusing
any other good ides
02:51
Install Linux use GCC
@Borgleader No. The point I was trying to make is that I don't really have any programming books. :)
no good ides?
@Mysticial Don't tell anyone but I didn't either.
:(
what do I do? use ms notepad?
@Johann Install Linux and use Netbeans. You goal should be to start coding...
02:52
I found the Scott Meyers books to be quite good
wait netbeans supports C++?
I am a fool
ivor horton C++ 2008 is my choice, but I didn't learn from it
and I've found some insight from Principles And Practices Using C++ (which I should finish some day)
Don't use netbeans
Don't install linux if you don't want to
Don't look at an online tutorial.
@Rapptz also linking problems due to <twchar.h>
02:53
Don't use notepad.
@Rapptz that... was a joke
ok do I use netbeans or visual studio
dont use netbeans
@Borgleader why
it sucks?
@Borgleader I am sorry but I had to ironic star it
02:56
I'm confused
but visual studio is like a jungle of code
I am confused why I am confused
I don't even... you make no sense
I am confused at my confusion
I am trying to say that visual studio is confusing
visual_studio = "confusing"
You dawg, I heard you liked confusion, so I put confusion in your confusion so you could be confused by your confusion.
(memegenerator is down)
You are horrible Borgleader.
03:01
I am confused at everyone being confused at my being confused of your confusion
@Rapptz I know =/
he's going for that "evil" gold badge
stfu this isn't motherfucking spongebob squarepants
it is avatar the last airbender fools
ignore this user (everywhere)
03:05
borgleader?
@Rapptz it is great
reminiscent of disco
@Rapptz doesnt sound like the daft punk i usually listen to
@Borgleader true
hey what was the deal with mikhail
he sounded pretty ticked off
have you ever been at work and wondered "why hasn't this guy been fired yet...?"
03:12
yes we have all been there ;)
l19
l19
03:31
Hey people, can anyone help me? I've got an issue with a Makefile
@l19 Sure, read this, then we'll talk.
Makefiles blow.
@Crowz Yes -- worst was at a staff meeting when the announced: "when we hired him he was supposed to be a sales guy, but he's also been working on this other project, and not going a very good job of either one", so I was thinking, "ah, he's finally gone." I was just a bit let-down when they continued: "so we've decided to promote him to vice president..."
This sounds like one of those "Forwards from Grandma" jokes
Nope, happened at my work too. Tis why I am kinda pissed right now
03:41
You have a job?
A few days ago you were looking for one and saying it's hard to find one.
@JerryCoffin Woa. That's quite depressing.
@Crowz Yes --- Governments...
@Rapptz I have 3 jobs
Just none of them are in the field... hah
o_O
hey, even being a student is expensive
03:43
Yep. That's why I'm glad I didn't pay for school.
@EtiennedeMartel It turned into depression in the long term, but in the short term I was much more angry than depressed.
@JerryCoffin How's your position now?
@Rapptz do you work in programming? I'm 1 year away from a degree and can't find a job at all (applied to 20+ places for co ops)
I'm not a programmer and don't have a CS degree.
@Rapptz I quit years ago, and now do consulting. Has its advantages and disadvantages, but at least nothing much like that to deal with.
03:45
What do people consult you about?
@Crowz Woa.
That's weird.
Are you in the US? Because there's like 20k missing jobs in the sector there.
So maybe you just suck.
Yeah in here they're always going like
WE NEED PROGRAMMERS etc
@EtiennedeMartel yeah, US, Boston. Also my resume is significantly better than most other people in my college who got a co op
Resumes aren't worth much.
Sounds like bias.
03:46
One guy had a 1.9 GPA, was a year behind, and somehow got a co-op at a reputable company
It's the interview that counts.
Maybe he didn't suck at people skills.
And GPAs are usually bullshit, since university work is nothing like real work.
Yeah no one asked for my GPA.
@Rapptz Mostly patent stuff.
03:47
@EtiennedeMartel I haven't even been called in for an interview yet. Interviews are the easy part
You know I can see the history, right?
o.o
> I can totally -trick- make people think I'm smart. [spoiler]joke[/spoiler]
For the record.
awh.
Damn it Crowz.
03:50
@JerryCoffin Looks like you gained 844 rep from your top answer. (Out of a total 251 votes.)
*Been playing around a bit with the DE.
yeeeah I keep hearing that the technology sector is booming. Still impossible to find a job of any sort though. Might just go for a second degree in teaching
Please don't. You already have enough trouble learning as it is, I'm not sure you could teach very well.
heh
(Damn, I'm so fucking mean tonight)
no not compsci, English.
03:52
Just reallocate to somewhere.
I'm starting to think you don't like me, Etienne ;_;
@Mysticial Ouch. You know that extra rep really would have meant something... :-)
Plug in the numbers as you wish.
Jon Skeet gained 125 rep from his top. +100 bounty + 15 accept + 1 uncapped upvote
@Mysticial Thanks -- sounds like one to bookmark.
The userID is redundant don't you think?
03:54
@Rapptz Good point...
I'll fix that in a sec.
@Mysticial To bad that particular one had a bounty -- it'd be just too funny if his top-voted answer made only 25 rep!
30 upvotes on my top answer, 285 rep.
So only 3 wasted votes on it :D
Query updated to not ask for UserID.
Cool query.
This guy got 62% of his rep from one answer:
I'd be at 66k right now without my top answer. That's actually more than I thought. I guess I still get a lot from my other posts.
04:03
@Mysticial Am I the only one who thinks ~30K rep from one (not even particularly great) answer is pretty insane? I'm more convinced than ever that the rep-cap should be per-post. :-)
@JerryCoffin I hate you too.
I'm disagreeing :(
530 backlinks
one of my answers was upvoted once. That was pretty cool
@Mysticial I don't hate anybody -- and in all honesty, your top answer honestly deserved some serious rep; that one? "meh" about covers it...
04:05
@Non-StopTimeTravel 1069 upvotes means that 1069 people googled for the best way to make a client-side redirect and found useful information here. Thanks to this question I discovered window.location.replace and it's advantage over window.location.href, and my 300000+ users will be happier when they hit the back button, so it yes, it deserves a big +1 — Samuel Rossille Jan 28 at 22:36
hehehe.
Tomalak deleted his comment.
Actually, I take that back -- looking, you've passed me for 3rd place in C++ (again), so I guess I do hate you! :-)
lol, I only gained 687 rep from the matrix question despite my answer being at +605.
@Rapptz Either that or a mod deleted it.
I feel dumb being the only one incapable of answer questions of actual quality.
I have one answer with 6 upvotes that I got 10 rep out of.
all my answers are on repwhore questions
04:10
I think that's weird though because I don't remember getting rep for it
Eric Lippert got 3539 from his hotel room answer...
@Rapptz What was the comment?
It was something about it being really trivial and the whole question was garbage. Something to that extent.
Oh, standard Tomalakish.
He voted to close it as NC as well.
lol
If people found it helpful, then more power to them I guess.
Actually, if we show him this list from yesterday. I wouldn't be at all surprised if he went through and VTC'ed every single one that's shorter than a paragraph.
He does have the weird tendency to think only He has the One Absolute Truth.
@Mysticial With good reason, I'd say. Given how few of my answers are on that list, it must be a list of bad answers!
04:16
@JerryCoffin Oh, so that's how you got all that rep.
@EtiennedeMartel What? Writing answers I think are good?
Yeah.
Blows my mind.
imgur.com/a/pPJmj#0 think this is a troll?
@EtiennedeMartel Oh come on. There are lots of conceited people in the world. Is it really surprising to meet (or chat with) one?
@Rapptz No idea.
04:19
@Rapptz god I hope so! (does that count as irony?)
Shit's weird.
@Rapptz Shit mostly stinks. Not much weird about it though.
1 hour ago, by Johann
@Borgleader I am sorry but I had to ironic star it
This does
I still don't get what he meant by that
I guess since it's 420, "He's high" is a valid excuse.
I couldnt understand most of what he said
I was about to plonk him tbh
04:25
@Borgleader Yeah, saw that looking back right when I logged on. At the time figured there must be more context further back, but decided it looked to stupid to bother looking back further to see what it. I guess I'm glad I didn't waste my time.
@Rapptz definitely
unless they used three different pencils
@Rapptz arent there schools in the US that dont teach the theory of evolution?
A lot of schools don't teach evolution down south
@Rapptz ...and quite a few more mandate giving "equal time" to creationism even if that also teach evolution. I.e., they don't claim either is really correct, but teach them as equally viable alternatives.
04:37
While we're at it, the Flat Earth Society probably deserves (at least) equal time as well.
04:48
heh, forgot about FES
has sort of a Terry Pratchett feel to it
why is doctor who considered "nerdy"?
because it is?
the same way star trek is i guess
oh yeah. I never liked that show
blasphemy
always seemed kind of generic to me
04:58
funny you should say that, that's what i think of dr. who
05:08
can someone clarify creating new objects in C++ for me? I'm making a new 'hand' object which contains 'card' objects, and i'm making them with
Hand* hand = new Hand(1);
Hand* hand2 = new Hand(2);
so each hand object is a pointer to a hand in a different place
Do as the ints do: Hand hand(1); Hand hand2(2);.
@LucDanton hehe
You've said that twice today.
@BenHarris When you want an int variable, you do int i = 4;. Not int* i = new int(4);.
You do the same for any other type.
I like it.
05:10
@Rapptz It's paraphrased from Bjarne, and a shared sentiment.
but @LucDanton, it throws "Conversion from Deck* to non-scalar type Deck requested' errors
oh wait, hold on
@LucDanton Yeah I agree, it's a really nice way to put it too. For being so simple.
so i've set it to
Hand hand = Hand(1);
Hand hand2 = Hand(2);
but my problem is they seem to somehow be interfering with each other
i have an evaluate method in the hand class which separates the cards into two 'sets' depending on how many matching cards there are (if theres a set of 3, and a set of 2, seta.size = 3, setb.size = 2), etc
hand has 1x3,1x2, hand2 has 1x5
Beyond the scope of a simple chatroom, try asking on Stack Overflow.
if i call:
hand.Evaluate(); hand2.Evaluate();

CalculateHandType
setA:5 setB:0

CalculateHandType
setA:6 setB:3

if i call hand and then hand2
CalculateHandType
setA:3 setB:2
three and two

CalculateHandType
setA:3 setB:7
three of a kind
hand2.evaluate()
hand.evaluate()
05:15
:|
sorry for shitty formatting
Yeah no.
basically hand2.evaluate is adding onto hand's evaluate variables somehow?
never mind, figured it out
i didn't have the set vectors in the header.
05:17
@BenHarris Also please read this if you havent
This room reinforces the Ben Franklin Effect daily.
2
I noticed that with Pawnguy7
and a few others
@Rapptz Then again what do you expect when you put a bunch of social outcasts all in the same chat room ;)
So, if you have a Card* varname, and you do Card card = *varname, that will dereference it so you can use varname.Method(), or you could just keep using it as a pointer to object type by doing (*varname)->Method(), correct?
05:21
God damn it Ben.
it just seems like there's so many ways to handle objects in c++ that i don't know which one to use in which situation
@Borgleader but it is an extremely helpful bunch in a way. Can be >500k rep chatting here (helpful). Just not in chat perhaps.
Rapptz, i don't want to post onto stackoverflow to have it turn into a huge discussion thread, i figured a chat based on the programming language would be better for that
@BenHarris If you do the former you create a different object.
Imagine if you had int: then int i = *p; nets you a different int variable.
yeah, so you're kind of copying the object at the pointer into a local object variable, and not changing the object at the pointer's value at all, right?
05:23
@BenHarris It won't turn into a huge discussion thread (it usually never does unless it's a Standardese question) it'll just be answered by one of the hundreds of rep whores browsing . :S
@JohanLarsson Oh I'm not saying no one here knows their stuff. A lot of them do. I'm just saying were a big merry bunch of weirdos :P
Anyway, I'm gonna go to bed before @LucDanton attracts any more link dumps <3
05:25
So essentially, if you're using pointers you use 'new', if you're creating local objects, you udon't
@BenHarris Not necessarily.
A pointer can point to any object, not necessarily one obtained via new.
yeah, but for initialisation purposes, use new?
As a beginner, never use new.
doh
i've been using c# and java prior to learnning c++
You know I still don't get that. Maybe someone can explain it.
Why do C# and Java use new so much? Is it the whole GC thing?
05:28
yes
@Rapptz It's (in part) a reaction to make construction very explicit.
@Rapptz Fun fact: It was discovered that tomcat applets could improve performance by going from 64bit->32bit due to the size difference in the pointers... Because Java is lies built on pointers.
> Because Java is lies built on pointers. —Mikhail
4
^^ I'm gonna frame that and put it on my wall.
:)
@Mysticial add - Mikhail (em dash)
alt + 151 I think (no numpad on craptop here)
I copy-pasted it from a different source. Not sure if I did it right though.
05:38
my star went from yellow to black after the edit, minor chat bug
06:06
@Rapptz It's not so much that they use it a lot, it's that it was chosen as the syntax for construction. Foo foo; only get you a reference/pointer.
This is a consequence from choosing reference semantics as the default.
You need to e.g. tell foo(p) apart from foo(new bar(p)).
what is this kind of syntax 0 with array name within subscript operator. ex int arr[12]; then 0[arr] means what?
Same as arr[0].
then which syntax to use, does any one of them has performance adavantage
Syntax doesn't have performance.
06:09
Use arr[0] so people don't look at you weirdly.

« first day (918 days earlier)      last day (4256 days later) »