« first day (948 days earlier)      last day (4001 days later) » 

Xeo
2:00 PM
@TonyTheLion What band?
 
I'll see what I can arrange..
 
@thecoshman AHK detected
 
@Xeo the one Robot wants to go see
Veil or something
 
@Xeo The Veils.
 
Xeo
Okay, dunno
 
2:02 PM
does .reset() on a shared_ptr delete it's memory?
 
Anyone know how much roughly rail Frankfurt<>Berlin?
 
Xeo
@TonyTheLion if it's the last one...
 
Google
 
@MartinJames am Main? Expensive as fuck.
 
sbi
Hi.
 
2:03 PM
OK - scratch that plan..
 
@Xeo ah right
 
Xeo
@sbi Hi, got more porn for us today?
 
Maybe fly..
 
@Xeo lol
 
sbi
@Xeo Nope. But some kid made an IMO very worthy addition to my Operator Overloading FAQ, and I came here to ask you guys to evaluate the answer and upvote if you agree with me that it would be appropriate to do so.
 
2:05 PM
I have to go shopping:( I will investigate possible travel plans later.
 
@MartinJames I remember checking prices for that before (probably for a similar plan as you were thinking right now) and it would offset me almost as much as I saved on the cheap flight (from Lisbon).
 
Xeo
@sbi You screwed up on reformatting one of the error lines.
 
sbi
@MartinJames We had this here the other day. That depends on how long before-hand you purchase your ticket.
@Xeo Oh, did I?
 
Xeo
Did you just fix it?
 
Still not fixed.
 
Xeo
2:07 PM
Cause I was going to replace the per-line format with a simple <pre>...</pre> stuff
 
Is there a difference between C++11 and C++03 with how and where typename must be used?
 
Ah, now it is.
 
Or is it just VS which let met compile code where I forgot typename?
 
sbi
@Xeo I couldn't, because the robot had its steely hands on it. Now I did, though.
 
@Nils That is definitely true. There may have been some minor changes in C++11 as well, but VS does get it wrong.
 
sbi
2:08 PM
@Xeo Ah, go ahead. I didn't think of this.
 
Xeo
I think I'm still going to replace it with <pre>..
 
@R.MartinhoFernandes Do you have some literature which explains it?
 
sbi
@Nils If there's one thing I have learned about templates over the last 15 years: If in doubt, consider VC faulty.
4
 
Xeo
there
 
ah so it is mostly VS
 
sbi
2:09 PM
@Xeo Ah, much better now. Thanks.
 
@Nils It's two-phase lookup that VS gets wrong. I don't have any particular links but I think that will be a helpful search term.
@sbi And now I realise I should have asked you to do my edit instead. I don't want to edit too much and accidentally make the answer CW. The chap deserves the rep.
 
sbi
@R.MartinhoFernandes Yeah, that's just happened to my rep cash cow.
 
@sbi Yeah, but you milked enough out of it already :P
 
@R.MartinhoFernandes lol i like the level enum
 
sbi
@R.MartinhoFernandes How much rep is "enough"?
 
2:14 PM
@ScottW If I copy the URL from Firefox I get it properly %ed, even though it displays with ()s... Chrome?
@sbi Dunno. My cash cow has earned me over 5000 so far.
 
I don't have a cash cow
 
sbi
@R.MartinhoFernandes Was that a subtle hint for us to go and all make an edit to this?
 
@sbi Woah. Hold your horses!
 
Last time I checked, @sbi doesn't have horses.
 
2:16 PM
@ScottW Yeah, Chrome sucks. It cannot even handle URLs properly.
 
sbi
@TonyTheLion Right. I have kids instead.
 
hahah
 
@R.MartinhoFernandes lol @ second revision
 
heh
@sbi I was merely saying that my cash cow gives more milk.
So you probably didn't get enough yet.
 
sbi
@R.MartinhoFernandes ...implying that the need to stomp on that flow is more urgent?
 
2:19 PM
@sbi No! Implying that you were done a wrong!
@Tuntuni Yeah, that was the whole point.
 
sbi
@R.MartinhoFernandes Really. Will you eventually stop trying to wriggle yourself from that fork?! There's no avoiding this.
 
Meh, the question is short enough that you cannot possibly come up with enough reasonable edits.
 
sbi
You seriously underestimate our ingenuity. Also: Where does it say it will only be CW'ed if the edits are reasonable?
 
Are you trolling the Robot again?
 
@sbi You would never try such a thing!
@TonyTheLion He stopped?
 
sbi
2:27 PM
@TonyTheLion Definitely not. There's no point in doing so, anyway, since he's always so helpless when this happens.
 
@TonyTheLion The sbinator never stops.
 
@Tuntuni it's hardly a secret
 
sbi
@R.MartinhoFernandes Of course not. I know the edits do not have to be reasonable. Once you know a certain effect will happen, triggering isn't called "trying", it's simply called "doing" instead.
 
2:29 PM
@R.MartinhoFernandes Well I meant literature which describes the changes to typename for C++11.
 
There were changes?
 
@Nils Whatever changes there were are minor. I think now using typename is allowed in some places where it is not needed, but that's it.
 
I haven't coded in a while.
 
ok
thx :)
 
hmm... and so I enter the exciting world of trying to explain how bandwidth and latency are not exactly the same thing... joy
 
2:33 PM
Too lame.
 
@R.MartinhoFernandes that is a good question... but I begrudge feeding it yet more upvotes
 
yiz
0
Q: Defining global variables in mpi

MehrdadI have written a sample code below: #include <stdio.h> #include <mpi.h> double x; int main (int argc, char **argv) { MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &size); if (rank==0) x=10.1; MPI_Barrier(MPI_COMM_WORLD); p...

 
:9536622 ah come on :P
 
@thecoshman Meh, I don't really care now that it is over 1000.
@thecoshman What?
 
@R.MartinhoFernandes I got a flash of it, I want the rest damn it :P
 
2:34 PM
1 min ago, by R. Martinho Fernandes
Latency is repeatedly getting late to work. Bandwidth is how large you need a stage to fit a band in concert.
 
@R.MartinhoFernandes besides, it's not really a SO question :P
 
@thecoshman Why not?
 
@R.MartinhoFernandes it's a SuperUser question really
 
@R.MartinhoFernandes Whoa how does that work?
 
@thecoshman No, it is not.
 
sbi
2:35 PM
@R.MartinhoFernandes FWIW, if you buy long enough ahead of time, it's €60. /cc @MartinJames
 
@Rapptz You can quote any message that you can see the history of. Owners can see the history of every message.
 
Xeo
@sbi Schönes Wochenende Ticket is only some 40€ I remember?
 
@sbi It's three weeks from now.
@Xeo It's on Mittwoch.
 
Oh cool
 
Xeo
Ah, that's unfortunate
 
2:36 PM
@R.MartinhoFernandes 'git' is a tool usually used for programming (but not exclusively), it is not a programming language or programming theory. Source control questions should not be on SO, unless under the guise of trying to automate them, but then that is just context to the problem at hand.
 
@thecoshman No, they should not.
Read the FAQ.
Git is a tool used by programmers 99.99999999999% of time. Stop trying to semantic your way out of this.
 
@R.MartinhoFernandes SO or SU?
 
The Super User audience is more general.
@thecoshman SO.
 
sbi
@R.MartinhoFernandes Wednesday, 5th? Frankfurt-Berlin?
 
2:38 PM
> software tools commonly used by programmers
ah, I take it back then
I'll just downvote you instead (joke)
 
@sbi Doing a quick check with Google, that's about the going rate for an hour with a hooker, so the Robot's statement seems to be literally accurate.
 
@JerryCoffin what do hookers have to do with this?
 
@thecoshman Read the context...
Hookers have everything to do with fuck.
Well, some don't really do everything, but you get the point.
 
@R.MartinhoFernandes I did... I still don't see where hookers come in...
 
Greetings, prodigies of C++. What path would you recommend for a developer who wants to learn C++ that has an extensive experience in C#/Java for 15 years? I'd like to hear some suggestions for good resources.
 
sbi
2:42 PM
@R.MartinhoFernandes Well, reiseauskunft.bahn.de/bin/query2.exe offers a train from FF-B on Wed, 12th, leaving FF 8:26, which is only €65.
 
@thecoshman At the "fuck" part.
 
sbi
39 mins ago, by R. Martinho Fernandes
@MartinJames am Main? Expensive as fuck.
 
@R.MartinhoFernandes bah (╯°□°)╯︵ ┻━┻
 
sbi
@thecoshman Shall we interpret that as "no, I do not want to be fucked on this table"?
 
is there a way to remove resizing arrow in qt GUI application? I used: setFixedSize(size()); to make window not resize but there still appears those arrows when cross arrow on border of window.
 
2:44 PM
@sbi I like somewhere with a bit more padding alright?!
 
@l46kok Check our book list: stackoverflow.com/questions/388242/…. Avoid writing Java in C++.
 
sbi
@Klasik I am sure there is. Why don't you ask on some website? There's a few dedicated to asking programmer questions.
 
Thanks. What did you mean by avoid writing Java in C++ though?
 
@l46kok From the book list, the one most applicable to your situation is most likely Accelerated C++.
 
Awesome, I'll take a look at it. Thank you
 
sbi
2:46 PM
@l46kok Basically forget everything you think you know due to the deceptively similar syntax, pick some book from the list Martinho linked you to, and expect a steep learning curve with lots of throwbacks.
 
@l46kok a lot of people coming from Java tend to just write C++ like it is Java rather then taking full advantage of C++ and doing things properly.
 
Isn't similar syntax rather a good thing though?
 
@l46kok yes and no
mostly no
 
@l46kok The point is that syntax is the only similarity. Most of the semantics are completely different.
 
huh interesting
 
2:47 PM
it will very easily lead you into a false sense of security that you are doing things right because that is how it is done in Java
 
@l46kok Step 1: for at least the first month, don't use new ever, at all. Step 2: if you're thinking of a class name that includes "Manager", slap yourself a few times to make that bad dream stop.
6
 
case in point, in C++ 'new' should be very rarely used, whilst in Java you use it all the time.
@JerryCoffin step 2 is just general advice though, isn't it?
 
Xeo
C++14: 99.999% of the time, don't use new. :)
 
But, but I thought memory management in C++ was the dream of all programmers to optimize performance.. where as in Java you didn't have the leisure to because garbage collector spoiled you :/
 
Xeo
2:48 PM
Manual memory management sucks.
 
Isn't using new and delete a crucial concept of C++? That was my impression
 
@l46kok Only dumb people manage memory manually.
 
man I've got a lot of stereotypes to break it seems like
 
sbi
@l46kok When it comes to steep learning curves, Accelerated C++ is one of the steepest. It's a basic C++ course packed into 250 pages that sport an impressively high information density. Once you're through it, you are fit to apply for C++ apprentice state. Expect to work through at least one more book to be able to apply for novice state. (Mind that Junior state comes after yet more books.)
 
Xeo
@l46kok It's a crucial concept not to do that. Especially delete.
 
2:49 PM
What's the new trend for creating objects or what not? I can't imagine everything is created on the stack
and my impression was to create things on heap, you use the keyword new
maybe I was mistaken?
 
Yep.
 
Xeo
std::vector, std::unique_ptr, std::shared_ptr, all the things are available at your disposal.
 
@l46kok Yes and no -- your code will use new and delete fairly regularly, but if you're writing it into your own code very often (instead of using it via something like a collection class that, in turn, uses an allocator class) you're probably doing something wrong.
 
@l46kok it used to be, but modern C++ has made such trivial detail a thing of the past.
 
sbi
@l46kok See, that's exactly where you stumbled right into the trap. Using new and delete used to be important in a C++ programming style called "C with Classes" that (should have) died in the late 90s. In modern C++, if you write delete, your doing it completely wrong. If you write new, you're doing it non-idiomatic.
 
2:51 PM
oh man.. thanks for giving me a huge headsup
 
@thecoshman s/modern/last millennium's/ :S
 
i probably would've used new blatantly without that warning
 
@l46kok exactly what we mean by 'don't write Java in C++'
 
Xeo
You should probably also check The C++ Programming Language, 4th edition, which is coming out soon - one of the first books to incorporate C++11
 
sbi
@l46kok How did we know?
 
2:51 PM
@R.MartinhoFernandes well, I was thinking mostly now that smart_pointers are core C++
 
The one written by the maker of C++?
 
there's C++ Primer 5th ed but truth be told it isn't very beginner friendly.
 
Xeo
ya
 
sbi
@Rapptz What? Do you apply that to the 5th (then I wouldn't know) or to all of them (then you'd be wrong).
 
awesomeo, any other things I should be aware of
to not fall into any traps like that
as GCs spoiled me for too long enough :/
 
2:52 PM
@thecoshman Yes, but it seems to be particularly applicable to recovering Java programmers. I should probably have said "Manager or Factory" though, to cover more typical uses of Java.
 
@sbi I explicitly said 5th ed
 
@JerryCoffin oh yes, Java loves a good factory
 
whats wrong with factory and managers though?
 
I only read a few parts of it (I already know C++) but it didn't seem very beginner friendly to me. :S
 
they are extremely common in java
 
Ell
2:53 PM
Managers aren't well defined
 
im guessing they're evil here?
 
A couple of the reviews agreed with me too
 
Ell
A class should have a well defined purpose
Managing isn't very well defined at all
 
sbi
@l46kok Do not consider yourself a professional C++ programmer before you have spent several years learning at a great rate, plowing through lots of books, articles, and SO questions.
 
@l46kok In C++ you usually just make factory functions without any class.
 
2:54 PM
@Rapptz what didn't seem beginner friendly? I'm a good part into it and nothing has really surprised me so far
 
sbi
@Rapptz Oh. I am surprised. What changed? Wasn't it that Barbara Moo did most of the actual writing for this edition?
 
huh ok
Accelerated C++ is written in 2000, isn't this a bit outdated? or am I reading the wrong edition
 
Shit. Why does travel planning always have to be a big, massive pain? Germanwings is four times dearer than Ryanair, but would save me three nights hotel because more frequent schedule. Pain.. Anyway, see first if concert tickets available..
 
@l46kok There hasn't been a new edition for that one
 
oh i c ok
 
sbi
2:56 PM
@l46kok Accelerated C++ is definitely outdated. But since it is so good an introduction, and so slim you'll need to read another book anyway, I'd still recommend it.
 
@l46kok C++11 is still a recent thing in the publishing space. A lot of books are still being updated. Even the really bad ones, though those tend to be updated faster (just slap an extra chapter at the end and voilà!).
 
Ok, so I should read Accelerated C++ to get a feel of the language and then other books for more modern approaches?
 
@Aboutblank What part are you on?
 
@thecoshman Yeah, but that's precisely my pet peeve: the fact that something isn't on the standard library doesn't mean you should keep doing things wrong instead of fixing them yourself. If you start repeating patterns instead of formalizing them into some class or something, you are doing it wrong and are a bad programmer.
 
sbi
@l46kok Actually the approach of AC++ is as modern as they come. It's the details that needed updating since then.
 
2:57 PM
Ahh alrighty
 
Yeah AC++ is a good book.
 
@l46kok Yes and no. It hasn't been updated, but at the same time, it's probably more outdated than most of the others -- C++11 (especially) added standard "stuff" for metaprogramming that (in some cases) renders entire chapters of Modern C++ obsolete in one fell swoop. OTOH, the book will give at least some idea of what those magical bits of the library are actually doing.
 
Thank you very much for the tips guys
 
I wish it was updated for C++11.
 
sbi
@JerryCoffin "...it's probably more outdated than most of the others..."?
 
2:58 PM
@JerryCoffin Did you miss a "not"?
 
@Rapptz about to start on const
 
@sbi It has more parts that are rendered obsolete by recent additions to the standard library.
 
@JerryCoffin But why do you mention Modern C++?
I am confused.
 
@Aboutblank Oh you're pretty early on.
 
sbi
@JerryCoffin "It"? Now I am confused. There is no book Modern C++ that I know about.
 
2:59 PM
@sbi Alexandrescu's.
 

« first day (948 days earlier)      last day (4001 days later) »