« first day (1374 days earlier)      last day (3800 days later) » 

00:19
Wait. Have you ever taken pills to improve your mental skills (adderall, etc...)?
Is that a lounge wide question?
@Borgleader yes
Well, I personally haven't. But I've read about it recently, it seems to be becoming increasingly common.
Which is scary in a way
@R.MartinhoFernandes No, I just apparently don't know C, like @Mysticial.
I'm telling you people, The Wolf Among Us is pretty cool.
00:29
But the fact that GCC only issues diagnostic about that not being valid ISO C code at -pedantic is about ultimately retarded.
You got owned by Vlad
Also being owned about C isn't something that will scar myself for life, you know.
C is somewhere at the very end of my list of things I care about.
53 secs ago, by Cat Plus Plus
You got owned by Vlad
3 mins ago, by Griwes
But the fact that GCC only issues diagnostic about that not being valid ISO C code at -pedantic is about ultimately retarded.
Seriously, C++ compilers are so much better at being strict.
You can't squirm your way out of this
:v
00:33
If you need -pedantic, not just -std=XXXXX to get an error (or just a warning) from the compiler about a piece of code being an extension, the compiler sucks donkey balls.
2 mins ago, by Griwes
Also being owned about C isn't something that will scar myself for life, you know.
Also I am drunk enough and am earning enough to not fucking care about being owned about a language I don't care about at all by an unemployed guy whose posts on std-proposals make absolutely no sense and who got trolled by me there to the point of saying everybody hates him personally.
Not a single comma was given that day.
Why would a drunk person not speaking English natively ever use commas? :D
@Jefffrey Comma couldn't make it... she's comatose in the bathroom, couldn't handle the alcohol /cc @ThePhD
<SpitZ> this sms was sent by a friend of mine
<SpitZ> Sally mr. pls,2wedding
<SpitZ> What's that supposed to mean?
<crazhee> i think it read as "Sally mist'er period. please comma to wedding"
00:47
TIL PHP people cannot count to 6.
> The main argument against this is that there was previously a project, which was abandoned in 2010, also called PHP 6.
TIL learn to fucking read
Yeah the case for skipping PHP 6 seems like a good one.
Am I missing something?
You're missing your memory of Jefffrey being a total retard (no offence)
It's a joke jeez.
> Java jumped from version 1.4 to version 5.0.
Impressive
00:51
s/from version 1.4 to version 5.0/the shark/
> Version 6 is generally associated with failure in the world of dynamic languages. PHP 6 was a failure; Perl 6 was a failure. It's actually associated with failure also outside the dynamic language world - MySQL 6 also existed but never released.
lol
that's actually true
So is it called PHP 6 or PHP 7?
It's also an unlucky number in Asian cultures, which is why there was a Psion Series 5 and then a Psion Series 7
plenty of precedent here
@Rapptz They cancelled the vote.
00:52
Why?
yeah so right now it's PHP Who The Fuck Knows
PHP 5++
@Rapptz Because they allowed people to edit the RFC document that displayed the pro and cons of both options and PHP7 people (or PHP6, I don't remember), decided to add few paragraphs to their option mid-poll and remove some paragraphs of the other one.
Pretty childish.
> The decimal system (or more accurately the infinite supply of numbers we have) makes it easy for us to skip a version, with plenty more left for future versions to come.
Oh yeah, a great argument.
@Rapptz here
It's stupid to allow last minute edits. That's all.
00:55
> 7 is perceived as a lucky number in both the Western world and Chinese culture. A little bit of luck never hurt anybody. en.wikipedia.org/wiki/Numbers_in_Chinese_culture
Yeah. Luck is about the only thing that keeps PHP above the surface.
Oh wait, it's not. It's human stupidity.
in PHP, 4 hours ago, by rdlowrey
I will continue to refer to the next major PHP version as "PHP6," regardless of the outcome of this current RFC.
That should make things easier.
Why do we even "care" about this?
Named parameter idiom is failing me
._.
@Griwes Just found it funny they were able to even screw that up.
return *this from the base class ruins everything
I could make it virtual but...
I'd have to copy paste everything again
01:04
what do people usually do if they want to use a library, but change a miniscule part of it? It would mess up dependencies to just go in and move it around
@Crow Pull request so that everybody can benefit from it.
If it's too stupid of a reason to propose it publicly, then don't do it.
but my programming is bad ._.
@Rapptz CRTP on the derived class?
@Rapptz Don't do named parameters -> problem solved
01:09
@Griwes Can't. Storing the base for polymorphism too.
@Jefffrey It's either named parameters or references to a lot of "temporaries" (not r-values).
@Rapptz What? Show an example.
@Jefffrey option<int>& stuff = parser.add<int>(...); stuff.required = true; vs parser.add<int>(...).required(true);
I like the latter better IMO
It'd be a lot nicer if we had kwargs for C++ though.
but this is close and idiomatic enough I guess
@Rapptz You want kwargs in C++? o.o
Yup.
@Rapptz So you basically want to do the exact same thing boost.programoptions does? :P
01:14
@Rapptz What does parser.add actually do?
Just look there, then :P
@Jefffrey Add an option and returns a reference to the added option.
@Griwes 1) C++98, 2) operator() abuse, etc.
@Rapptz Why can't I create an option outside and add it with parser.add(option)?
You can do that too.
I didn't say it was disallowed.
@Rapptz Oh to replace the ellipsis operator?
01:15
but I need a way to avoid keeping temporary references and make it saner(tm)
How do I do (tm) on Linux? :(
@Rapptz I don't really see what problem do you have there. Care to elaborate?
It's alt + 153 on Windows
@Rapptz Then that's fine. parser.add<int>(...).required(true) is just awful syntactic sugar.
@Rapptz Compose key+T+M, at least on KDE.
â„¢
@Rapptz uh... Alt+153 is Ö
01:17
@Borgleader Sucks.
It's Alt + 0153 on my machine
forgot the 0
0153 â„¢, 153 Ö
Yeah, the 0 can make a difference.
Which is extremely silly, imho.
Good morning.
Still, Compose+T+M is the sanest.
IIRC 0xxx is unicode.
01:18
@Jefffrey There are approximately 13 things you can initialise.
@MarkGarcia Is 3:20AM "morning"?
I don't think it's "awful" syntactic sugar.
@Griwes It is here (9:20 AM), especially with the bad weather.
So 3:20AM is not "morning".
@Rapptz So you think a 13 long call chain is good?
01:19
9:20AM is.
@Jefffrey For command line parsing interface?
@Griwes I'm pretty sure 6 is morning.
@Griwes I don't like doing ("add,a", "stuff", po::value<int>())("other,o", ....)(...) at all.
I dare you to create a better one.
@Rapptz Nah.
Doesn't hurt me that much.
@Jefffrey You don't have to. But good luck memorising a 13 element constructor.
option<int> opt;
opt.required = true;
opt.param2 = false;
...
parser.add(opt);
01:21
That's what I currently have.
It doesn't scale well
How so?
Imagine you have 10 options
You now have to create 10 option object
And that's only for basics
@Jefffrey That's absolutely verbose.
Add in subcommands etc
Why are you all putting EVERYTHING in parameters?!
01:22
@Jefffrey Good luck rewriting this in that style.
And that's just a tip of an iceberg.
@MarkGarcia I'm planning on removing them.
Only having the constructor for 3 elements (name, short name, description)
and then doing the rest through the fluent interface/named parameter idiom
@Rapptz Yes, to have 10 options you have to create 10 options objects. Who would have thought? As far as I can see you are still creating 10 option objects inside your parser. The only difference is horizontal length (opt.require(true).param1(false)...) vs vertical one.
1 min ago, by Griwes
@Jefffrey Good luck rewriting this in that style.
@Jefffrey Your way also creates copies for every object.
Mine creates them in-place and lets the parser handle the objects.
If that's a problem then move them. v0v
01:24
I say Boost.PO's version is waaaay more readable than any possible vertical variant of that.
It's not too bad.
I just don't like it.
I'd rather not abuse syntax
Otherwise I'd use kwargs :p
Which I did initially but realised it was pretty meh
Didn't feel very C++-like
parser.add<int>("stuff", 's', "descrip", required=true, metavar="obj", ...);
What is C++-like anyway? (Before anything else, that is a rhetorical question)
I'd like C99's designated initializers in C++.
@Griwes You and me both buddy.
They'd make implementing named parameters so much easier.
01:27
If we had it I wouldn't be having this issue at all lol
But "no, we don't need them, we have constructors!".
@Griwes Erm. That's vertical. You are just wrapping at the end of the line.
Silly idiots.
I'd like to be able to do:
Options opts({
    { "help", "h", "Displays help message", SOME_FLAGS },
    { ... },
});
I tried that syntax.
01:27
I am in the middle of inventing a way to write makefile-ish things in C++.
Didn't work very well as I hoped.
Right now I am thinking about making "named" arguments be of different types and just parse that with insane amounts of variadic templates and overloads, but I have no idea how that'll work out when I start implementing it.
I already have a kwarg implementation in C++
constexpr and all.
It just requires global objects
Someone else in here improved mine and used tagged structs
like struct width : kwarg<int> {}: and you'd do func(width{10}, ...);
Looks close-ish to what I want to get :P Do you have it somewhere online? I am almost sure you've linked to it on coliru one day.
01:44
Thanks.
01:58
buh other languages lack of list comprehensions bother me
02:19
http://pastebin.com/N59r20Qr
I think I'm just about done :D gotta change some of the regex thigns
and actually 'validate'
Hey guys
if i want to update code on code review do i just edit my question?
like a new revision of the code. or would i create a new question?
new question
02:54
two days to accept my own answer is torture :(
03:54
dead
04:10
@RaenirSalazar I don't usually accept answers for a day or two anyway.
05:12
Why is no warning given for this? coliru.stacked-crooked.com/a/b653eaca4d362182
It's exactly what I want but it feels weird
..?
The std::exit is supposed to be there
It's what I'm show casing.
A function that is supposed to return a value that uses std::exit offers no diagnostic if no return is given.
I know.
It's nice to know actually
but I don't know why it doesn't show a warning
I'm showing if(true) return 0; Without a "default" return.
@Rapptz Compiler gods.
05:29
yesterday, by Bartek Banachewicz
Guys ^
nah
> ROBOT ... #DIV/0!
lol
05:36
god
 
2 hours later…
user1804599
07:17
26
Q: Which is faster? while(1) {} or while(2) {}

Nikole This was an interview question asked by a senior manager. Which is faster? while(1) {} or while(2) {} I said both have same speed as the expression inside while should finally evaluate to true or false. In this case,both evaluates to true and there are no extra instructions inside the wh...

user1804599
Ugh.
Xeo
Xeo
@Rapptz [[noreturn]] attribute
Oh. Right.
Good to know.
user1804599
[[noreturn]] sucks, have a bottom type!
user1804599
Voted to close as too broad.
Xeo
Xeo
07:20
@rightfold whyyyy
1 is obviously less than 2, therefore it is faster. 0 would be the fastest as the code would be skipped. — this 24 hours ago
I like this comment lol
user1804599
It depends on way too many factors that aren't mentioned in the question. For example, the competence of the people who wrote the compiler.
> You voted to close this question 22 hours ago
Xeo
Xeo
@rightfold it's a stupid question in any case
ugh
fuck interviewers like those
user1804599
> Your explanation is correct. This seems to be a question that tests your self-confidence in addition to technical knowledge.
user1804599
07:23
I don't see it as a problem if that's the case.
user1804599
A decent C programmer should know the correct answer.
@rightfold lol
Xeo
Xeo
@rightfold No, that doesn't make the question any less stupid. They could've tested the self-confidence of the interviewee with code that is at least remotely important at all.
while(truth_constant){} is like the most irrelevant piece of code ever.
user1804599
I never had an interview.
I often ask more questions than the interviewer on interviews.
user1804599
07:32
@JohanLarsson Nice.
Many seem to forget it is a duplex thing, I want to find out as much about the job as possible.
In my country devs are considered shit unless they prove otherwise, and employers usually are very surprised when I ask about methodologies / tools / stuff
user1804599
@ParkYoung-Bae Nice.
It's different in my country. Devs are excellent, until you see their code...
user1804599
07:39
In my country devs are excellent when they wear a suit.
In my country you swim in devs.
@rightfold meta-devs
I am from texas.....One big dev
Wow.
Grooveshark's mobile site is actually amazing.
Nice.
std::string's constructor has caused me too much pain.
I always forget it's length, character not character, length
user1804599
08:10
Constructors gonna construct.
@Rapptz same as in vector
Yeah. I know.
Funny enough, despite knowing that and not messing up I still mess up std::string.
I also mess up std::string::append with characters.
Xeo
Xeo
Prolly thinking along the lines of 'x'*n
Probably.
Xeo
Xeo
narf
PSU is expected to arrive at their place on the 22nd
It was already expected on the 18th.
I wanna build my PC...
08:20
fill in the language poll while you are waiting
@R.MartinhoFernandes ¬_¬ What's with all the capitals?
is it considered better practice to place an extra new line between each function declaration and comment?

is
// this functionblah
functionblah();
// this functe
functe()

better then

// this functionblah
functionblah();

// this funte
functe();
Which one is better practice?
Xeo
Xeo
whichever
Kk :D thought the former may have gotten to ugly after a while.
@thecoshman Proper noun.
08:26
The php 5 MB single page HTML doc just made firefox hang. php, why are you so slow on everything?!
user1804599
@user2372903 The latter, duh.
user1804599
Nobody (except Puppy) likes looking at a giant blob of text without empty lines.
`LOL
Ok well, thanks, trying to make sure i don't stray on to the shit path again.
Xeo
Xeo
Btw @Rapptz, I ended up ordering this PSU: de.pcpartpicker.com/part/evga-power-supply-220g20750xr
looks good
but expensive
Xeo
Xeo
08:38
93 on another site
got increadible reviews though, from what I read
Not bad.
You could have gone for cheaper if you went with semi-modular though
Xeo
Xeo
maybe
user1804599
I'm having a case of the it works don't touch its.
microcenter.com/product/425477/… cheapest (good) one I found
so I guess it isn't too bad
Xeo
Xeo
08:44
damn rebate
mail-in rebates are never worth it
Xeo
Xeo
How exactly do those work?
they take too long and it's an archaic process just to make an item look cheaper
@Xeo You pay for the full price.
Then you send in a letter to the company saying you have a mail-in rebate
and then they will mail you a check for the amount stated that you can cash in
They can reject it in the process
And it's a limited time window
So if it's still 'processing' and the time window has passed then you get nothing
It's basically a loan and the company benefits from it.
Xeo
Xeo
eh
that's shitty

« first day (1374 days earlier)      last day (3800 days later) »