« first day (628 days earlier)      last day (4317 days later) » 

3:00 PM
Hello everyone. Maybe you could help me with a little question here.
 
Just stating that I got annoyed again because someone suggested shared_ptr out of the blue instead of unique_ptr.
I'm sure it will happen again.
 
You should forget about it by drinking.
 
@RMartinhoFernandes don't sign your suicide note on it not happening again.
 
Wee, everyone loves my wiki page.
 
3:02 PM
 
@CatPlusPlus I can't share it enough.
 
@EtiennedeMartel I had a feeling you would say that.
 
@RMartinhoFernandes You know me well.
 
I wonder if anyone has written a C++ program to std::cout << "My suicide note:\n";
 
Perhaps one day we'll get shitfaced together.
 
3:05 PM
Damn. McGill is rated nr. 17 university worldwide.
 
@rubenvb "Canada's finest institution of higher learning".
 
@rubenvb ... on yet another useless ranking
 
-6
Q: dereferencing a pointer when passing by reference

MWrightWhat does a compiler call when you dereferencing a pointer when passing by reference to a function? I am using the gcc compiler. if that helps... Here is a simple example int& returnSame( int &example ) { return example: } int main() { int inum = 3; int pinum = & inum; std:...

NARQ it.
 
@RMartinhoFernandes with fire.
Damn, Kerrek rushed to answer it, despite the -7 score, the high close vote count, and the obvious mediocrity of the question.
 
Oh, it was edited to actually compile now.
 
I still stand by my downvote though. The assumption that passing by reference copies anything is a sign of very poor research.
Massive typo it was pass by reference not value. — MWright 1 min ago
Oh wait.
What a clusterfuck this was.
 
Fuck it.
Let's get drunk.
 
@rubenvb mine is 54, do I get a cookie now?
 
@bamboon What, it's personal now?
 
@RMartinhoFernandes I pass everything larger than 8 bytes by reference. If it makes copies it would do so anyway if I passed by value.
 
3:12 PM
in tech it's even 29
 
Do you have stakes in your university?
 
@bamboon You can get a knuckle sandwich. ;-P
 
@RMartinhoFernandes It can't be any worse than this one:
-28
Q: C# spliting a string

user1193385I have this string here. "userID=12345&time=1413" I am trying to split this string so I can put the userID into another string. string UserID = 12345 I have been googling for hours and I can't seem to find a solution to this anywhere, can anyone help?

Which stayed open too.
 
@EtiennedeMartel erm, how do you mean that?
@rubenvb I would take it with pleasure.
 
@bamboon Well, you seem to get all riled up about a ranking.
 
3:13 PM
@rubenvb Since I write most things as templates, I pass most things by reference, regardless of size (can you imagine the SFINAE clusterfuck of doing otherwise?).
 
@EtiennedeMartel oh yeah, I actually am. I hate those rankings.
 
@bamboon Why? It's just a number.
Unless it hits close to home.
 
@EtiennedeMartel a number too much people care about.
 
Why does it matter if so many people care about it?
 
@EtiennedeMartel because people matter. anyway, I have to stop this conversation and do some stuff now, to push my university in that ranking
 
3:18 PM
lol
 
Oh, so I was right, it is personnal.
 
I think he just wanted to say he was better.
 
@EtiennedeMartel how do you mean that it is personnal?
@rubenvb don't get me wrong please, I totally didn't
 
You take it way too seriously.
You should get drunk instead.
0
Q: Is the copy constructor called when you dereferencing a pointer when passing by reference to a function

MWrightIs the copy constructor called when you dereferencing a pointer when passing by reference to a function? Here is a simple example int& returnSame( int &example ) { return example: } int main() { int inum = 3; int *pinum = & inum; std::cout << "pinum: " << return...

@RMartinhoFernandes He's back!
 
@bamboon lol no worries ;)
One should also see the ranking relative to the size of the Uni and size of the country in which it is based.
In which case, mine would really shoot skywards :P
 
3:21 PM
@EtiennedeMartel I'm flagging for merge.
 
the thing I don't like about rankings like that is they end up directing effort towards gaming the ranking system rather than actually doing better
 
@EtiennedeMartel Or maybe we should now reopen the other one and dupe-close this one.
 
@RMartinhoFernandes That's what I was aiming for.
 
@Flexo True. Funding in Belgium is based on nr. of publications and citations thereof. It should be based on the quality instead.
 
Yeah, but that can't be measured objectively.
We're fucked.
 
3:24 PM
In the UK there's a system to measure quality too
and it takes a monumental amount of effort from an enormous number of people
 
just let the uni's decide themselves :D
^See what I did there?
 
The cynic in me might argue that's remarkably close to how the quality measure works in reality
 
Exhibit A: I'm awesome.
4
 
Already got a three star ranking too
 
3:42 PM
Ever decided to change your codestyle halfway through a project, with thousands of lines of code written already?
 
yes
 
What would you think of software that ties itself into a knot so often that it has a builtin menu item for restarting itself?
 
And your OCD kicks in and you go through them line by line (and because Qt Creator's auto-indenter shits itself after a lambda?)
 
@rubenvb are you using the latest version? it actually keeps on working in the latest version for me.
 
3:46 PM
@bamboon 2.5, so if there's an update. Me gots to get it.
 
@rubenvb the 2.5 official release or RC or beta?
 
Official.
 
Wait, you're trying to tell me there's an IDE out there that doesn't freak out with C++11 syntax?
 
hmm that's strange then
 
@RMartinhoFernandes Qt Creator is 50/50.
 
3:47 PM
(And no, Visual Studio doesn't count. It freaks out even without the few bits of C++11 it supports)
 
well, it still marks it as false but doesn't screw up after that for me anymore
 
lol
@bamboon try to select a lambda piece code and do ctrl-I.
 
Indentation of lambdas is weird. I still haven't decided upon a consistent set of rules.
 
@RMartinhoFernandes same here.
 
Right now I just do what seems to look best.
 
3:48 PM
@rubenvb oh yeah, that still doesn't work, but in earlier versions(of 2.5) it totally screwed up after a lambda
 
@RMartinhoFernandes Depends on the complexity of the parameters, and any preceeding expressions
 
@RMartinhoFernandes line 43 here is what I had.
now i have a more condensed form
but got to go.
cyall
 
Oh noes, Allman braces.
:P
 
I've so far avoided writing >> instead of > > because it confuses too many other tools
 
@RMartinhoFernandes Allman?
I also switched ndentation to 2 spaces
 
3:51 PM
Opening brace on its own line.
 
and put an 80 char per line rule
 
I'm joking btw.
 
@RMartinhoFernandes you don't want to know how many times that ahs saved me hours.
 
Either Allman or K&R braces are fine.
 
maybe I should use 100 chars
 
3:52 PM
It's the exotic ones that should really be burninated.
Who the fuck likes that?
 
@RMartinhoFernandes encosia.com/…
 
@MooingDuck Oh, yeah I know that. The JavaScript designers had to choose between semicolons or no semicolons, and instead decided to pick a third, insanely stupid option that guarantees them a place in programmer's Hell.
 
@RMartinhoFernandes that's stupid. The braces are part of the if, and they contain the block of code, not preceed the block.
 
> The eye is forced to scan all over Tibet (yes the place near china) to find the matching brace.
Sure, if your IDE don't highlight the fucking brace like it should.
 
@EtiennedeMartel Some people seem to believe everyone should use notepad.exe for writing code.
 
3:57 PM
These guys are nuts and I don't want to even be in the same room as them.
They might get crazy and attack me with scissors or something.
 
@EtiennedeMartel Also, if the opening brace is that far from the closing brace, you're doing it wrong and should learn about this oldfangled thing called functions.
 
Indeed.
> I hope by now you understand that WS is by far superior to anything else. If you don't that is OK. I understand that the world has indoctrinated you with false teachings.
Alright, he's trolling.
Fuck it.
 
They're allowing cyborgs in the olympics: engadget.com/2012/07/05/… We're winning! :P
 
@RMartinhoFernandes that's not fair
 
@bamboon Shut up, the Olympics are not about fairness, they're about making money.
 
4:09 PM
@RMartinhoFernandes Touché
 
@RMartinhoFernandes oh yeah, that's a total different topic. I meant that your comment may offend some people
 
comparing handicapped people to cyborgs?
 
Oh. My definition of cyborg is an organism with biological and artificial parts.
Which is fitting.
 
@bamboon I'm pretty sure he qualifies as cyborg
"A cyborg, short for "cybernetic organism", is a being with both biological and artificial (e.g. electronic, mechanical or robotic) parts."
and so is anyone with a metal hip :D
 
4:13 PM
Can't wait for this higgs boson discovery to grant me superpowers. What did they say it does? The power to control gravity?
 
It doesn't do anything new. It exists.
 
I wonder which parts of @robot are biological.
 
2
Q: Practical matter of the Higgs-Mechanism

bamboonMy maybe very naive question is, of what practical importance will the discovery of the Higgs-Mechanism be for our technological advance in the near future?

 
@Neil They found the missing piece of the puzzle, and surprisingly the completed puzzle looks exactly like the picture on the box.
 
@RMartinhoFernandes That's what I've understood, but that's kinda lame don't you think?
 
4:15 PM
@Neil It is. Blame the media.
 
That's like discovering a foreign continent and thinking it's not China but it is, in fact, a new undiscovered continent. 100 years later, you actually prove it is.
Actually, not even you, one of your predecessors
 
@Neil predecessors? You mean decendants?
 
@MooingDuck Yes, that's what I said. *ahem*
 
> After all, remember that the World Wide Web was invented at Cern. (physics.stackexchange.com/a/31303)
say what now?
oh.
"In August, 1984 I wrote a proposal to the SW Group Leader, Les Robertson, for the establishment of a pilot project to install and evaluate TCP/IP protocols on some key non-Unix machines at CERN ...By 1990 CERN had become the largest Internet site in Europe and this fact...positively in Europe and elsewhere... A key result of all these happenings was that by 1989 CERN's Internet facility was ready to become the medium..."
the web versus the internet. Got it
 
it was CERN Wide Web
 
4:22 PM
@Abyx I bet the only IP it could connect to was 127.0.0.1
 
@Neil I like to compare it with Magellan's circumnavigation voyage: it was a magnificent achievement, but Erasthosthenes had already predicted it centuries before.
@MooingDuck Time machines > family trees.
 
@RMartinhoFernandes Though when you think about it, how much have we accomplished by assuming that theory to be true without knowing it for certain?
Tons of research poured into this field assuming the Higgs boson existed, and we've basically discovered everything we could hope to discover without actually having the Higgs boson particle to test
All that's left is ironically the Higgs boson
 
@MooingDuck The World Wide Web was invented in numerous places depending on who you ask.
it was an extension of DARPANET, the protocols were invented at the British Post Office, etc..
 
In the future will go to the past and invent it myself just to clear all that confusion.
 
@RMartinhoFernandes While you're at it, make the protocol not suck as hard
 
4:31 PM
@DeadMG several sources I just found say world wide web(aka hypertext over tcpip), started at cern
@DeadMG wheras DARPA got the hardware part, I'm not sure about tcp/ip
wikipedia says tcp/ip was DARPA, hardware was someone else. Shows what I know.
 
4:47 PM
Who can help me fill in the blanks? _____, singleton, pair, triplet, ____
 
@RMartinhoFernandes void, and tuple?
 
What do you call a tuple with four elements? That's the question.
 
@RMartinhoFernandes wait, I fail to see how singleton and pair go togeather
quad (let?)
 
@MooingDuck Tuple of one, tuple of two.
 
@RMartinhoFernandes usually a singleton has a completely different meaning
 
4:49 PM
In mathematics, a singleton, also known as a unit set, is a set with exactly one element. For example, the set {0} is a singleton. The term is also used for a 1-tuple (a sequence with one element). Properties Within the framework of Zermelo–Fraenkel set theory, the axiom of regularity guarantees that no set is an element of itself. This implies that a singleton is necessarily distinct from the element it contains, thus 1 and {1} are not the same thing, and the empty set is distinct from the set containing only the empty set. A set such as is a singleton as it contains a single element (...
 
the word we normally use for that idea is "value"
 
Note the second sentence.
 
@RMartinhoFernandes quadruple
 
@RMartinhoFernandes 4-tuple. duh.
 
@RMartinhoFernandes you are correct, but I hold by my statement: usually (in programming) a singleton has a completely different meaning.
 
4:53 PM
@MooingDuck Since we borrowed the name "tuple" from maths, I think it's okay to borrow the names of tuples too.
 
@RMartinhoFernandes sure, but singleton is taken. You're going to confuse people.
 
It's already overloaded and confusing.
 
Singleton is already used with several meanings.
 
I don't intent do be saying you can't, merely throwing out a warning (about something you're probably fully aware of already)
 
Programmers will overload.
 
4:55 PM
en.wikipedia.org/wiki/Tuple The term originated as an abstraction of the sequence: single, double, triple, quadruple, quintuple, sextuple, septuple, octuple, ..., ‑tuple, ..., where the prefixes are taken from the Latin names of the numerals.
 
@MooingDuck I'll make it a link to en.wikipedia.org/wiki/Singleton_(mathematics%29, just in case.
 
"The unique 0‑tuple is called the null tuple. A 1‑tuple is called a singleton, a 2‑tuple is called a pair and a 3‑tuple is a triple or triplet. "
 
room topic changed to Lounge<C++>: Now discussing sextuples. [c++] [c++11] [c++-faq]
 
@MooingDuck Ha, copy-paste fail.
 
Why did they TeX numbers?
 
4:57 PM
Because MATHS.
 

« first day (628 days earlier)      last day (4317 days later) »