« first day (1076 days earlier)      last day (3890 days later) » 

JBL
8:00 AM
@sehe There 'r' differences between badges and badgers. (Ho ho ho)
 
Xeo
@JBL Shiny gold.
 
@MarcClaesen You mean the OP has posted other drivel on other places?
 
yep, it was on SO before ... yesterday I think
 
JBL
@Xeo Maybe.
 
user1804599
@JBL It’s @sehe.
 
8:00 AM
makes quite an interesting read, but only once
and by interesting I mean ridiculous
 
Xeo
I still need Legendary and Electorate...
 
user1804599
I like how Z shell doesn't require do and done for one-line for-loops.
 
user1804599
E.g. for p in django south psycopg2; pip install $p.
 
@MarcClaesen Have a link? I need some entertainment today.
 
@Insilico impossible
 
8:01 AM
it just got removed
it will probably show up again at some point
 
@MarcClaesen Damn, I wanted to take advantage of my 10k "look at deleted questions" privilege.
 
look for "practical explanation of next life"
and hare hare krishna
 
^ there. a complete nutjob, right on the tin
 
one does not simply c# and c++
 
I'm sure it's a collation mishap
 
8:04 AM
@MarcClaesen Can't find it. I don't think deleted posts show up on search.
Oh well.
 
too bad :(
 
@Insilico Stack Exchange Data Explorer might help
 
@sehe Legendary tags are really hard to get
 
@sehe I thought SEDE queried against the every-two-months data dump. Or does it actually query the SO API?
 
user1804599
@sehe I read that as “collision hashmap.”
 
JBL
8:07 AM
@GamesBrainiac Unless you're Andy Prowl.
 
JBL
My only gold badge is "Fanatic". I don't even understand why that's a gold badge.
 
because it gives SE more guugle hits
it's the carrot on a stick
 
JBL
When you get it you realize there was just a stick and no carrot.
 
yeah
it's similar to the way dealers get you hooked on drugs, first you get some freebies
and before you realise it you just want MOAR
 
user1804599
8:11 AM
I wonder how many TB of incoming data Google saves each year because of the referer header not being the referrer header.
 
@GamesBrainiac I know, right. It was hard work :/
@not-rightfold I guess that was a hashmap collision
 
user1804599
Hahaha. :D
 
@Insilico Data dump. I'd have guessed higher frequency, though
those dealers never found me :(
oh wait
 
@sehe there there, atleast the SE maffia took good care of you!
 
8:19 AM
@not-rightfold that's so cool - we should have Nerd Triviant board game. You know, just so we can also win, once.
 
JBL
@MarcClaesen Exactly.
 
Idiot → RT @TheTweetOfGod: America, you were settled via the extermination of one race and the (cont) http://tl.gd/mnt5m0
^ that's an ugly cesspit of ... argumentative and unbalanced tweets
 
JBL
@sehe Argumenting on twitter is dumb. I mean... 140 chars :/
 
thats plenty to say you're wrong cause fuck you
 
nah ... you need to be concise & straight to the point :p
 
8:22 AM
> Idiot →
 
JBL
@MarcClaesen And that's not argumenting (Twitter is perfeclty fine for rants and insults :D)
 
that is the very essence of internet arguments!
 
argumentative != using arguments (sily English)
 
JBL
Yes, that's right.
Though that was a reaction to the fact, not directly to your words.
 
user1804599
@sehe You're reminding me of arguments in JavaScript. :(
 
user1804599
8:23 AM
arguments y u no array.
 
room topic changed to Lounge<C++>: Happy S. Yefgrafovitch Petrov Saves The World Day. It's a great day not to kill two hundred million people [c++] [c++11] [c++-faq] [no-questions]
Sorry I only now came around to accept/upvote your answer, I totally missed its presence until now... — Tobias Kienzler 2 mins ago
@not-rightfold Someone must have started our interwebs with the wrong initialization vector
 
JBL
@sehe Lol 2.5 years later.
 
user1804599
I want to write C++ code.
 
Xeo
I may just be overusing Parsec in my IRC bot now. But I don't care, it's fun.
 
@JBL Also: meh² answer
 
8:29 AM
I am sure you can write C++ code whenever you want to ...
but that's not what you meant, was it?
 
I don't think you're being rhetorical now.
 
user1804599
2375 Radek (1975 AA) is a main-belt asteroid discovered on January 8, 1975 by L. Kohoutek at Bergedorf. References External links *[http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=2375+Radek JPL Small-Body Database Browser on 2375 Radek]
 
Are there any other HTTP proxies than Squid that can do NTLM authentication of its clients?
 
JBL
Zzz
 
user1804599
Best object in the universe.
 
8:36 AM
I object
@wilx cntlm, I used that on windows, linux and AIX (also worked for tunneling ssh conntections)
An allocator != a pool. Therefore copying an allocator doesn't logically imply copying a pool. Your argument is invalid :) — sehe 12 secs ago
 
sbi
Hi!
Reviewing C++ code written by someone else I came across a class that sports encapsulation and member functions along public data.
I use two kinds of classes: One is a full-blown class with full encapsulation and all the bells and whistles. (For this I use the {{class}} keyword.) The other one is a mere aggregate of ({{public}}) data that might or might not include a few member functions. (For that I use the {{struct}} keyword.) This here is something in between the two, neither one nor the other. It provides public data along with member functions and encapsulated data.
My gut reaction is "Egad!", but other than "I have learned to shy away from such abominations" I cannot put my finger on why I think this is foul. What do you guys think about this?
 
encapsulated public data? sweet
do elaborate on how that works :P
 
sbi
Better understandable now?
 
@sbi If it can hold its invariants with some of the data public, that data looks just tacked on; SRP violation and all.
 
JBL
Wanted to say something but it boils down pretty much to what @R.MartinhoFernandes said.
 
sbi
8:48 AM
@R.MartinhoFernandes Well, the public data are a booleans called active and a static boolean named enabled. Both of them are never accessed within the class but only by its users.
 
 
JBL
@sbi What role do they fill in the class then ?
 
secretgeek.net/HotGuids <-- anyone with single women in the area, who share an interest in guids?
 
sbi
@JBL The class is a mere data aggregate for these two, a place to carry them around in.
 
user1804599
@sehe My favourite GUID is 00000000-0000-0000-0000-00000000002A.
 
8:50 AM
@sbi What {{sourcery}} is that :/ Did you start using an evil mix of Javadoc and LateX?
@not-rightfold See you at the restaurant!
 
JBL
@sbi So the booleans acts as some sort of "notes" pinned to the class available to the users ?
 
@Xeo in da house?
 
@TemplateRex lo
 
@sehe No, thanks. I don't need any more ways of drawing blank stares.
 
Xeo
8:51 AM
Yes
 
sbi
@sehe Oh, I copied that straight from my comment on Fisheye, where this is the equivalent of ` here. Sorry, I forgot to change this.
 
0
A: c++11: Create 0 to N constexpr array in c++

TemplateRexBased on @Xeo's excellent idea, here is an approach that lets you fill an array of contexpr auto a = { fun(0), fun(1), ..., fun(N-1) }; where auto is any literal type (not just int or other valid non-type template parameter types), but also double, or std::complex (from C++14 onward) where fun(...

want upboats ;-)
 
lol. admit it, that'd be cool :/
(also, it's always nice to have the shirt as an alibi for the blank stares)
 
"Hey, do you like guids?"
"What?"
"NIPPLE SALADS?"
 
@sbi Now I remember what I recognized the syntracs from .
@R.MartinhoFernandes boss!
 
sbi
8:53 AM
@JBL If it was for the two only, I'd say turn this thing into a struct and be done. However, there's fully encapsulated data alongside in the same class, accessed and manipulated only through a member function.
 
@TemplateRex Mmm. Can you sell me the extra lines of code? Also, needs better naming, I feel. constexpr auto a = generator(...) doesn't at all make it apparent that an array will be declared, let alone statically initialized.
 
Xeo
@sbi #define wtf class and retag it to wtf
 
@sbi (a) refactor or (b) mark // FIXME TODO split responsibilities
 
@sbi I'd prefer the separate bits to be separate and provide both sets as separate members of the struct.
 
> This and other disquieting aspects of human behaviour are covered in great detail in the book 'Thinking, Fast and Slow' written by Nobel prize winning psychologist, Daniel Kahneman. My wife received a free copy, which she gave to me. Now, thanks to the endowment effect, I would be unwilling to part with it for less than 2.5 times the market price. The Shape of Your Irrationality
 
8:58 AM
It's a book. Why would anyone be willing to part with it?
4
 
user1804599
Tepelsalade.
 
JBL
Mmh, just out of curiosity, in auto a = {1,2,3,4};, what becomes auto ?
 
initializer_list<int>
 
JBL
My guess is: not std::initializer_list<int>
Ah crap
 
Xeo
Hopefully nothing in the future.
 
JBL
9:02 AM
Wrong guess then.
Thanks.
 
Btw I heard C++14 will be some language niceties and a bunch of nothing libraries.
 
user1804599
Does anyone in the world use std::valarray?
 
Many people. Especially women.
 
@R.MartinhoFernandes Zing?!
 
sbi
@R.MartinhoFernandes It's not that easy. They all go together. This class is used to provide information on failures to be simulated in a simulator. Everything needed for this task is put into the class.
It's just that the mix of public data and encapsulation irks me. This feels wrong. Yet I can't bring myself to recommend to hide those booleans behind member functions, because that would gain us nothing.
@R.MartinhoFernandes What?
 
JBL
9:03 AM
Yay set() & get().
 
12 mins ago, by R. Martinho Fernandes
@sehe No, thanks. I don't need any more ways of drawing blank stares.
Jul 12 at 0:56, by R. Martinho Fernandes
@CatPlusPlus Original goes like "Who has never had a mycosis in the scrotum? Many people. Especially women. But that's not what brought us here. (...)"
Don't mind me.
 
I love it
 
Xeo
@sbi // TODO: scratch head harder at another time
 
sbi
@sehe The robot is an "it", then?
 
Yes
 
9:06 AM
Oh god there is a cookie clicker thread and it's 100 pages long.
 
@sbi Desiging in retrospect is always hard. Last year when I did that large reimplementation of Oracle code in C# I also settled for a "largish" ExecutionEngine with ditto ExecutionEngineContext. I made doubly sure, though, to group the different aspects of it in different interfaces and started to pass them around separately. However, the 'one big amalgamate' of prerequisites ("context") was hard to shed without getting more explicit uglyness in the API.
 
@sehe Hm, thanks?
 
@CatPlusPlus s/thread and it's 100 pages long.//
@R.MartinhoFernandes :) It's not a lie
 
Also I bought Spelunky
 
@sbi I suppose, when designed from the start, with a bit of SRP/CRC cards modelling all the "where should this be" complexity would magically vanish. Oh the joys of existing code
 
9:08 AM
@sehe What?
 
@sehe i changed generator into make_array, good point. But which extra lines are you referring to? I just renamed @Xeo's gen_seq and seq to make_integer_sequence and integer_sequence since they will be in C++14, so that I only would need to slap std:: on them in the future.
 
Puppy said they removed dynarray and optional from C++14 in Chicago.
 
Yeah, just read that.
 
Also I failed to notice my rechargeable batteries (of which I have 6 now) are 1.2V and XBox controller needs 1.5V.
It was kinda like "why are the LEDs blinking, it's fully charge- oh".
 
sbi
@sehe What do you mean, "designed from the start"? That's a small change in five source files, probably less than 200LoC, done in 1.5 days. There's no reason to not to put in another day if the resulting code becomes clearer. This is why we're doing code reviews, after all.
 
9:10 AM
@R.MartinhoFernandes, link?
 
Now I have to go to the shop again.
 
@CatPlusPlus That's fine.
 
@TemplateRex Hm.. I could have answered that.
 
@CatPlusPlus I think you will have a lot of work to find rechargeable batteries with 1.5V nominal voltage.
 
@R.MartinhoFernandes It thinks the charge is low and it blinks to warn me about it AND IT IS EXTREMELY ANNOYING.
 
9:10 AM
(Hint: the 1.5V in rechargeable ones is a lie)
 
It is a conspiracy to make me buy normal batteries, I know.
 
Xeo
@CatPlusPlus Disable LEDs, win-win
 
BUT THEN I WON'T KNOW WHICH PLAYER I AM
 
Rechargeable batteries maintain the nominal voltage for longer; the non-rechargeable ones drop down from 1.5V pretty quick.
 
@sbi So, clearly I don't mean that kind of 'clearerification'. I meant, designed from the start. Obviously there's a design debt, and it's not always feasible to fix it. Even if the debt looks deceptively small
 
sbi
9:12 AM
@sehe It is easy to change this. Hell, now that I've seen his code, I could probably rewrite the whole thing in a day. So this is not the issue.
 
I should've bought wired fucking controller.
 
@Rapptz :-)
 
Wireless shit always ends up being terrible.
 
@CatPlusPlus Sounds like the charge is low.
 
@R.MartinhoFernandes Straight from the recharger.
 
9:13 AM
@R.MartinhoFernandes Like I said. I love fact that sometimes I can't even follow what people mean. (Guess it must be something with the recognition/reflexivity ([tag:***-so-cryptography]?))
And I love the people in this room (well, some in particular). Is that so strange to say these days?
 
The status tool even says "battery full" so I have no idea why controller itself is blinking like mad.
 
@sbi I must have misunderstood then. Is there an issue?
 
I never used an XBox controller, but pretty much every device I used with 1.2V rechargeable batteries worked just fine.
 
But hey there's MS-licensed rechargeable battery kit, so probably that's why
It works, it's just those stupid LEDs.
 
@sehe I don't see how that relates to claiming I'm "it".
 
9:15 AM
@CatPlusPlus a small patch of plaster usually helps
@R.MartinhoFernandes Oh, I was just throwing the ape a bone.
 
sbi
@sehe Sigh. Again: I think this is wrong, but I cannot give a rational explanation for this, as it's only a feeling fueled by experience. I turned to you guys to give me a few rational arguments against it.
 
@sbi Oh. Aha. Without the sigh, completely understood :)
Now I feel bad for settling for a solution that kept a small part of the design debt last year. When it might have been easy enough to swat.
 
fuck yeah ! now I got a spinning blue wireframe cube with sound
 
(Hell no, I know why I kept it: I needed it to behave exactly the same way and that would have been too hard to prove if I changed it around)
@A.H. it's a wireframe with sound? That's a mighty annoying image IMM
 
@sehe And this is why I shy away from calling this crap "engineering".
 
sbi
9:19 AM
> Men who have an aversion to any talk of menstruation: You need to learn to go with the flow instead of getting so bloody irritated. Period. — Lilly Hale
2
 
@sbi what happens if the naked booleans are split off? would there be a lot of extra copying around?
 
Xeo
... why is this not in base :(
 
sbi
@TemplateRex I suppose so. As I said, this keeps everything need for that failure simulation in one place, and it's passed around a lot.
 
@R.MartinhoFernandes Yup. Sasd fact of life. On the bright side: my maths is too primitive to allow me to rigorously prove my programs correct :/
 
@sehe also seg fault when audio finishes
and no way to turn off sound , I closed the window and still playing
 
9:22 AM
@sbi Whoa. There's some vile in the responses there :{
 
@Xeo Maybe because unwrapping Either is not that commonly needed?
 
@A.H. Didn't you just say that it segfaults?
 
and wrapping into a failed() member is bad?
 
Cue either and its arrow-y friends.
 
@sehe yeah but after it finishes playing track for first time
 
Xeo
9:23 AM
@R.MartinhoFernandes Yeah, I'm going back and forth between either and explicit case-matching. The arrow version looks meh.
 
@sbi I'd go for the std::istream approach: members fail(), bad() or whatever, even if they don't encapsulate more than a single bit. At least it allows you some freedom in caching vs polling etc.
 
I'm quite confused why this was downvoted. — sehe 25 mins ago
 
Xeo
I'd need something like a whenRight now. I have a parse that I know will always succeed (it has an anyToken fallback), and I just want to remap the ParseError to return ().
 
catchError?
 
JBL
@A.H. What do you use for the audio part ?
 
9:27 AM
@JBL pulseaudio
 
> fake
Ooops, forgot to delete the test commit to trigger CI.
 
> IMO #Haskell could definitely use some more of #Pythonic zen: "There should be one—and preferably only one—obvious way to do it." sehetw on September 26, 2013 at 9:31 AM
 
Xeo
@R.MartinhoFernandes derp
 
oh man all the pulse audio example are filled with gotos
 
<<<<<<< HEAD
}
=======

}
>>>>>>> devel
Stupidest conflict ever.
@A.H. No one knows how to program.
 
9:38 AM
@R.MartinhoFernandes stupid C programmers
 
sbi
@sehe Yeah, saw that, too.
@TemplateRex I think I'd do that, too. But I don't think this will convince the guy to change the code.
 
@sbi if he won't listen to reason, why code review at all? :-)
 
sbi
@TemplateRex He will listen, but weigh the arguments. And "encapsulating" a boolean by a setter/getter pair is a very weak rational argument.
 
JBL
@A.H. goto also exists in C++ :/
 
@sbi for failed state there is precendent in the Holy Standard, even though the Iostreams are not a benchmark for clean design.
 
user1804599
9:48 AM
goto is good.
 
JBL
@not-rightfold Yes but programmers are bad.
 
user1804599
@CatPlusPlus Microsoft is bad at Xbox battery packs. Mine always fall out.
 
user1804599
Though they are good at giving away free controllers.
 
> Xbox
^ the elephant in the lounge
 
user1804599
@sehe ?
 
user1804599
9:52 AM
DualShock 3 ftw.
 
> note: ‘A’ is an ambiguous base class of ‘B’
class A : B {...};
GCC is gone bananas.
 
Xeo
wat
 
user1804599
lol
 

« first day (1076 days earlier)      last day (3890 days later) »