« first day (1077 days earlier)      last day (3864 days later) » 

12:18 AM
Darn -- they managed to close this question just as I was ready to post a cool (though probably quite un helpful) answer.
auto fgen = []{
static int x[3];
if (x[0] == 0) return x[0] = 1;
if (x[1] == 0) return x[1] = 1;
return x[x[2]++ & 1] = x[0] + x[1];
};

std::generate_n(std::back_inserter(fib), 10, fgen);
 
@JerryCoffin I just figured out what that did before seeing the name or question.
That's kind of cool.
 
@chris Maybe cool, definitely twisted.
 
@Jefffrey Oh, you're a terrible person, giving that to him with no warning that passing it in as-is will probably get him booted from school.
 
lol, you just warn him :P
49 secs ago, by Jefffrey
Permalink inception
 
12:23 AM
@Jefffrey Test failed. No signal received this station.
 
@JerryCoffin Woah, I did a permalink inception recursion. How cool am I?
 
@Jefffrey Pretty cool.
 
:7
 
Thinking about it, this would probably be better:
std::vector<int> x(3);

std::generate_n(std::back_inserter(fib), 10, [&x]{
if (x[0] == 0) return x[0] = 1;
if (x[1] == 0) return x[1] = 1;
return x[x[2]++ & 1] = x[0] + x[1];
});
 
12:39 AM
@JerryCoffin Actually I should probably delete that comment. Shouldn't I?
 
12:51 AM
Hello.
 
Hei
@Pawnguy7 Are you doing some SDL now?
 
Nope. Still got to finish Snake, though I haven't touched it in a few days.
Anyway, I was considering using, say, C# for whatever I make after, and it seems SDL and SFML both have a binding for it.
 
Are you on github?
 
For Snake?
 
Yup
 
12:53 AM
Ah, nope. Don't really have anything done. Plan to if I finish it though.
 
D'you have an account though?
 
Ok cool.
What is snake supposed to be built in?
SFML?
 
Yup, basically like the screensaver.
Maybe with sound if I can find some.
 
Are you Jacob?
 
12:56 AM
Who is that?
 
> C:\Jacob\Programming\C++\Libraries\SFML-VS\
 
Oh, right, the user. Old laptop somebody gave me :D
I wonder if VS would fit on my thumbstick.
You used C# before?
 
Nope.
I stupidly hate it because it is developed by Microsoft.
 
Probably either that or Java. Pick your poison.
 
Why not C++ again?
 
1:01 AM
Good question.
I don't know what is wrong :\
 
Microsoft is wrong probably.
 
Far as I can tell, none of the problem is my code... but this worked fine before.
I guess this is what happens when you don't run a project for a week.
 
Fine, I'll read a chapter of the Effective C++ book and go to bed.
See ya tomorrow :)
 
Night.
Not sure why, but I like how this looks.
 
1:34 AM
wait digit separators are standard now?
 
Too much manually RREFing matrices on my Linear Algebra assignment.
 
@Jefffrey I don't think it's a big deal either way.
 
@Rapptz Java-style?
 
Apparently it's '.
 
In C++14?
Sigh.
SFML built in font, I miss you.
 
1:55 AM
Still nagging about the most minor inconvenience?
 
Hm?
Cost me ten minutes trying to find out why my text wasn't being drawn.
 
:|
 
?
 
@Rapptz Not yet, but likely soon.
 
Am i the only one to absolutely not care about this feature?
 
2:03 AM
Victory.
Now I just need to figure out what owns the font.
 
..You're using pointers?
 
Not yet.
Static resource thingy still seems decent to me. What do you think?
 
when you say "static", I think "this code is going to give me cancer".
 
What do you propose?
 
1. Make an object. 2. Pass it around.
pretty much like normal
 
2:15 AM
So, a struct that loads everything in its constructor?
 
sure
 
At what point do you make a struct a class? I typically follow the idea of, if it is more than just members, do that, but I am not sure. I suppose it doesn't matter.
 
they're the same thing mate
 
Aside from default access specifiers structs and classes are the same
 
just different default access
 
2:18 AM
Hence my last sentence.
How are buttons traditionally? Never really used function pointers or llambdas before.
 
Wtf this is still on the starboard?
 
I didn't star it. Might as well.
 
user1174868
I had a girl once
 
That is a lot of stars.
Error: Declaration does not declare anything.
 
eh
the only thing that video shows is that people are stupid, which we all already knew
 
2:26 AM
What video?
 
I second the question.
 
Woman's suffrage?
 
yeah, that video.
 
I couldn't finish it
I already knew from the first 10 seconds how retarded it'd be
 
well, honestly, the last four minutes are pretty much the first 20 seconds repeated over and over again.
 
2:27 AM
To be fair, the word suffrage is really unfortunate.
 
I agree somewhat
assuming that suffrage implies some kind of suffering isn't a terrible leap of judgement
on the other hand
if suffrage implies suffering then why say suffrage instead of suffering?
and secondly, the women clearly didn't actually know what it meant, they just kinda guessed, and then put their names down anyway instead of asking the guy
 
To be honest I don't think there's a -rage extension for actual suffering. Or well, can't think of it.
 
@DeadMG They clearly shouldn't be allowed to vote because they don't know an obscure English word you almost never hear these days :smug: or whatever that shitty video was about, I can't be bothered to watch this crap
 
yeah... them being allowed to vote or not wasn't the point at all
 
Comments were retarded as usual though
 
2:32 AM
Your fault for reading the comments?
 
Yeah
I'm not very good at Spelunky :<
 
That game's pretty cruel.
 
The only time I have seen YT comments that weren't terrible is on something with like 200 views.
 
And again I hit myself with my own rock
Urgh
Also the boulder from picking up idols ALWAYS angers shopkeepers.
 
Intellisense just randomly stops working just to spite me, I am pretty sure.
 
2:38 AM
@EtiennedeMartel Riot broke their pattern
 
Aand a snake pit
 
@Borgleader Looks.. weird.
 
What part?
 
I don't know, the whole thing.
 
3:02 AM
@Borgleader Yep.
 
Small boobs are awesome anyway. Ok she doesn't have any, but doesn't matter.
 
I didn't even stare at the breasts
I was looking at the face
 
1
Q: How do I improve my programming skills in terms of for loops in C++

PranayI will be posting a few puzzles that help beginner programmers in the community to improve their programming skills. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9...

 
@Pawnguy7 You and everybody else foolish enough to try to use VS without VA-X.
 
next door disappeared this morning - demolition to build a new building
 
3:07 AM
@JerryCoffin You mean R#.
 
@JerryCoffin I can't help but be somewhat disappointed with VA-X after trying R#.
 
weird - one day it was there, next, it is gone
 
@EtiennedeMartel No, I don't.
 
@Rapptz I was referring to the pattern. Riot has a big boob pattern on female champions.
 
People care about that?
Oh right, internet.
 
3:11 AM
@chris I've tried R# three of four different times. It certainly adds a lot more right-click menu entries and such, but none of it ever seemed to work quite right, and it never fit into things so well that I could ever just forget it was there and be more productive.
 
@chris You got access to R# with C++ support?
 
@JerryCoffin Well, I know it helps me with a lot less C# knowledge. I can't speak for professional development with it.
@Borgleader Nah, so yeah, I'm comparing apples and oranges until it's ready.
 
haha received 2 small deposits from paypal to verify my bank account
 
@chris Ok, so we learned you prefer apple juice to orange juice. Great :P
 
@Borgleader Well, I actually do.
 
3:23 AM
@Telkitty猫咪咪 They take them back out later.
 
oO :'(
but it's only 0.35 altogether, lol
 
@chris Yeah, I'll be a lot more impressed if R# for C++ is a wonderchild.
 
@DeadMG Same here. I hope it lives up to the C# version's reputation.
 
the probability is slim.
 
@DeadMG C++ is certainly a lot more painful to parse and manipulate in general. I believe they've said they're using Clang. Despite its (many) warts, it's undoubtedly a lot easier than parsing C++ on your own.
 
3:37 AM
 
@JerryCoffin Certainly.
 
@Mysticial No gold, and no rep either. Truly sad.
 
@JerryCoffin "Comedy gold, but no rep. Truly sad." FTFY
 
@Borgleader No. Comedy bronze at best -- and even that assumes there weren't very many other competitors.
 
These definitely weren't up there in the comedy ranking.
There are better ones.
 
3:50 AM
well, I was playing Mafia and managed to get myself killed in a horrendously embarrassing fashion
 
The same user just posted another similar game question on meta with a new account.
And insta-deleted.
 
fact: where there's people there's trolls and spammers
 
@Mysticial come back of the python troll?
 
@Borgleader Right. Did the Python troll disappear?
I haven't heard anything for a while.
 
I haven't either.
 
3:56 AM
Well that's sad. :(
But SE did say they were working on a new system to deal with trolls.
Especially after some incident in EE.se
 
What happened there?
 
I'm not sure. But there was a troll who came back with multiple accounts to personally attack and threaten a certain high-rep user.
The troll was apparently also careful enough not the cross the line into violating any laws.
The result, the high-rep user left.
 
 
damn XKCD
two jokes per comic.
 
I only got one of them =/
 
4:09 AM
the first is that his answer about tail recursion is tail recursive.
roughly.
the second is pissing on functional programming for being unintuitive
 
Oh (I got the first one)
 
obviously when he says "intuitive clarity of abstract mathematics", most people would not find abstract mathematics to be intuitively clear at all.
 
Hm. I thought you were being biased but I see it too.
 
and particularly
usually when people say that a thing combines two attributes, they're both supposed to be positive.
but in this case, the second is quite negative.
 
Abstract math isn't that bad.
 
4:15 AM
yes, it is
 
@DeadMG Though both negative isn't all the rare either (when being sarcastic), such as "Java: Combining the beautiful syntax of C with the blazing speed of Smalltalk".
 
yeah
 
Damn.. I had saved up the last drumstick ice cream for me and someone ate it
 
I got the most random language name idea in the bus today... C🐢 (C-Turtle)
 
I'm more disappointed than I should be.
 
4:18 AM
@Rapptz Hmm...that reminds me -- I didn't have any dessert tonight, and there's ice cream in the freezer.
 
or
"DeadMG: Combining the raw intellect of Albert Einstein with the health and constitution of Stephen Hawking"
 
And what's your contribution to science? Woof theory?
 
yeah
it's "Woof. Woof? Woof! Woof? Woof."
it's basically just Ook! but I renamed it.
 
I was expecting "Woof woof motherfucker", I'm disappoint :(
 
oh
damn
I don't really feel like "woof woof motherfucker"
I ate food today.
 
4:21 AM
> SPREAD THE WORD: Steven Harper calls on Presidents and Prime Ministers of 12 powerful countries to meet in a few days behind closed doors to seal an extreme Internet censorship plan called the Trans Pacific Partnership (TPP)
Canada confirmed for highest level of evil.
heheh.
 
@EtiennedeMartel ^
 
you know
I was hungry
and I walked into the kitchen
 
@Rapptz First Justin Bieber and now this... we're cursed
 
and every piece of tasty food I looked at, I was like, "Gonna make me sick."
I'mma be scarred off eating for life at this rate
 
4:52 AM
so who has the high score on the new Google page?
I got 159
 
I'm reading up on rust for the first time
looks okay so far
 
@Rapptz rust?
 
their pattern matching is neat.
 
@DeadMG 167
 
@JerryCoffin 175 now
 
5:03 AM
@DeadMG Cool -- but I think that's enough for me.
 
Hm.. overall.. Rust doesn't seem bad.
lol they got rid of -> in favour of just making it .
 
well, I don't understand why C has -> instead of .
 
The class method thing seems weird.
 
in Wide and C++ though there are types which have different semantics for those operators (smart pointers being an obvious example)
 
I've been reading it but I have no idea what's going on here.
struct Point {
    x: float,
    y: float
}

enum Shape {
    Circle(Point, float),
    Rectangle(Point, Point)
}

impl Shape {
    fn draw(&self) {
        match *self {
            Circle(p, f) => draw_circle(p, f),
            Rectangle(p1, p2) => draw_rectangle(p1, p2)
        }
    }
}

let s = Circle(Point { x: 1f, y: 2f }, 3f);
s.draw();
 
5:12 AM
inb4 the puppy bins it :)
 
It is a bit up there in terms of vertical space.
 
eh
I'm feeling too shitty to bother
 
Oh they solve the whole "no null pointer mess" by having no null pointers.. well.. okay.
 
Universally nullable pointers/references is a horrible idea.
 
5:15 AM
@Rapptz That's gonna make C interoperation fun!
 
I hope they at least have something akin to maybe, optional, nullable etc
 
@Rapptz They mentioned an Option<T>.
 
@DeadMG Have a separate type for C pointer (crappy_pointer or something), or just marshal it as optional<> stuff.
And no problem.
 
enum Option<T> {
    Some(T),
    None
}
ah yeah, here it is.
 
I wonder how easy it would be to implement yield return.
 
5:18 AM
iunno, I guess I'll see if I like it some other time.
it looks okay, aside from that impl thing.
also why is it that new languages are opting for the very short names?
 
what do you mean?
 
i had no sleep last nite :(
couldn't stop sneezing
 
@GamesBrainiac Welcome to my "every night".
 
@DeadMG pub for public, mod for module, priv for private, fmt for format, etc
 
@Rapptz I suspect it's at least partly a reaction to the verbosity of C# and (especially) Java.
 
5:21 AM
in fact, I'm bone tired, but I'm really afraid to try to go to bed
 
it just makes things.. harder to read imo.
oh and mut for mutable.
 
and it's 6am here already.
 
@DeadMG why, why are you afraid of going to bed?
 
lying down makes gallstones way worse
as long as I stay unwaveringly at my machine, I'll only feel pretty bad.
 
@JerryCoffin meh, don't like it.
 
5:23 AM
@DeadMG Have you tried sleeping in something like a recliner that you can adjust so it's not horizontal?
 
@JerryCoffin Only if I can convince the government to pay for it.
and by that I mean "Even if they did pay for such a recliner, I actually don't see how the practicalities could work, since there is no room in my bedroom for such a thing".
 
@DeadMG That does make it a little tougher...
 
ah well
only another seven weeks until my consultation so that they can think about scheduling surgery.
what could possibly go wrong?
 
@DeadMG Probably better not even to think about that.
 
yeap.
at least the consultation is with a consultant instead of a GP, and if I ask him a question, I might get a real answer.
 
Xeo
5:53 AM
this is getting pretty darn bad, eh. no eating, no sleeping
 
yep
it's only gonna be so long before I start seeing vitamin deficiencies and stuff like that
 
Xeo
take supplements
 
I doubt I'd have any better reaction to them
 
Xeo
how bad are you with drinks and soup?
 
user1804599
@Rapptz because typing sucks.
 
user1804599
6:08 AM
Using std::sort. :v — not-rightfold 5 secs ago
 
@DeadMG Well, I'll be hoping for your recovery man. I'm sorry for your pain.
 
@Xeo Haven't tried any soups.
 
Xeo
perhaps you should
 
hmph
judging by my track record of what happens when I try thing, the only sane response is to not try
 
user1804599
Be sure to drink real soup, not a water–fat-emulsion aka Cup-a-Soup.
 
Xeo
6:20 AM
@DeadMG That's the insane response. If you don't try anything, how could you find something that doesn't fuck your stomach up?
 
you're starting from the premise that such a thing exists
whereas all experience points to the opposite conclusion.
the only remaining strategy with verified results is to eat absolutely nothing at all, and even that isn't very effective anymore
 
Xeo
@DeadMG So you've basically given up?
 
well, put it this way
ever since it started, the foods it's been safe for me to eat has been on an irreversible downwards trend.
even if I found some new food I could eat today
the reality is, it'll likely be inedible tomorrow.
finding something to eat today would only be a short-term fix at best
 
Xeo
so? at least you'll get some nutrients and vitamins into your body.
 
frankly, going without has proven to be less painful
 
Xeo
6:28 AM
for now, maybe
Welp, off to work for now.
 
man, that other link
> David Copperfield, unlike Pilgrim’s Progress, which had had 'had', had had 'had had'. 'Had had' had had TGC’s approval?
 
6:55 AM
-3
Q: Here is Practical Explanation about Next Life, Purpose of Human Life, philosophical/religious facts,-

Universal Knowledge nwerd Theories etc i Challenge you all So called intelligent Atheists Or So called Puffed up Rascal Cheaters ( If anyone have got guts then disprove this Practical Explanation or disprove Gravity ) Practical Explanation ( For Example ) :- `1st of all can you tell me every single seconds detail ...

 
JBL
Morning !
 
Oh wait... it looks familiar...
 
lol 1 favourite
 
7:37 AM
@Mysticial You have a screenshot of that :) ?
 
@FlorisVelleman It's the same as the one from a few days ago: i.stack.imgur.com/dHElR.png
 
@Mysticial Thanks !
 
@Mysticial Removed. Wasn't there a board for that?
One for atheists and another for religious folk?
 
user1804599
Not for trying to persuade people.
 
user1804599
8:43 AM
DON'T SILENCE.
I KILL YOU.
 
JBL
Hey Dunham.
 
@Xeo Took a long time. I have 200 answers with 1920 score now. Almost twice as needed.
 
@ScottW elo elo
BTW got my 1st gold badge, lol
almost 1k now
 
Xeo
268 answers with 2016 score
 
9:01 AM
@not-rightfold but if you kill everyone this lounge will be more silent
yes ... didn't jog yesterday though, came back too late
but generally yes, going for a long run today
 
Can't sleep.
 
9:17 AM
you know
I would make a truly terrible father.
I don't know why it just occurred to me, or why it took so long.
 
JBL
Well, don't become a father then. Unless you'd find satisfaction in being a terrible father.
 
user1804599
Meh.
 
user1804599
Argument-taking decorators in Python are ugly.
 
@DeadMG That reminded me of something depressing.
 
@Rapptz What, you'd make a terrible father too, and your girlfriend is pregnant?
 
9:23 AM
Nah. My ex-girlfriend once told me I'd make a great dad. So it basically triggered memories.
 
Xeo
@R.MartinhoFernandes isn't that a perfect duplicate?
 
Xeo
Oh, he even linked it himself.
whatever, voted to close
 
@DeadMG highscore 168 now :-)
 
Xeo
155 :<
 
9:31 AM
I think you need to hit it on the top right point
 
I did 162 before I stopped being interested.
 
What you playing?
 
the google pinata game
 
Oh, you're bored.
 
yeah.. story of my life I guess.
I was bored enough to read the entire rust tutorial thing
 
9:34 AM
167, and my space bar is getting stuck :-)
169 :)
 
@not-rightfold
 
was posted by feeds earlier
 
and now it's been posted again
 
user1804599
And I have been pinged for no reason.
 
last time I try to brighten your day, then, dickwad
 
user1804599
9:35 AM
Good.
 
plonkasaurus
 
dickwad , is that hte opposite of douchebag? :-)
 
@TemplateRex no, it's similar
 
> You can't lock a door with a credit card.
 
You can unlock a door with a credit card though.
 
9:41 AM
@R.MartinhoFernandes sure you can, you pay a locksmith with your cc
 
user1804599
@Rapptz It depends on the lock.
 
user1804599
Also, you can't unlock a door with a credit card if the door isn't locked.
 
user1804599
9:59 AM
# I want a []= operator in Python:
xs = 42
xs []= # xs is now [42]
 

« first day (1077 days earlier)      last day (3864 days later) »