« first day (848 days earlier)      last day (4098 days later) » 

10:00 PM
@Rapptz fuck printf
type unsafe pos
 
I'm still writing up a SSCCE, but it's got something to do with how methods of Shape are being called with instances of other subclasses of Shape dereferenced from Shape* vars.
Fairly certain...
 
@Borgleader Make type-safe printf
 
It's probably just some dumb thing that I'm doing wrong, like not including a keyword, or including files in the wrong order.
 
@Borgleader You can make type-safe printf with variadics now, yo.
 
@ThePhD You're telling me this?
 
10:01 PM
Fixed.
 
@Rapptz CBA, I prefer how ostreams work.
 
Still.
 
But the error has never come up until I started working with Shape pointers to instances of subclasses of shapes...
 
@ThePhD I know. I've seen Andrei Alexandrescu do it.
 
I've posted this same link like 4 times now.. Hm.
Yet chat search still makes it annoying to find
 
10:04 PM
I really prefer printf over std::cout
printf is a much more compact and visible form of printing.
 
it's neater
e.g. print("Hello\n") vs std::cout << "Hello\n"
 
It's also easier to do formatting, the way it's supposed to be done.
std::cout and ostream have a bunch of nonsense state that other people and their code can pollute.
There's a reason why C#'s String.Format and Boost.Format/FastFormat do it the way they do.
 
I don't like printf's %s %d %c %lf %f thing though
and I really want to learn how to do the print format like Python does it
 
@Rapptz Well, it localizes it into the string itself, which can be bad, which is why String.Format just allows you to pass in objects and apply other formatters to the argument rather than to the string (but you can do both).
 
user142019
Strings are terrible.
 
10:09 PM
I think C# has it too
 
If you listen to Stairway to Heaven backwards, you'll find a hidden monad tutorial
 
the one that goes like '{0} {0} {1} {2} {1}'.format(args here)
 
user142019
I prefer string interpolation.
 
user142019
"Hello, #{name}!"
 
@Zoidberg I used that in my Dialogue Engine.
 
10:11 PM
@Zoidberg That's what I'm talking about, lol
 
user142019
Compiler would translate that into something like "Hello, " ++ show name ++ "!".
 
user142019
@Rapptz no it's not.
 
Yeah it is
 
Using {} you could embed images and other such things and they'd be automatically formatted and displayed as characters.
 
@Rapptz It's not the python way. Rather it's the perl, ruby, php, bash, etc. wau
 
user142019
10:12 PM
You are talking about "Hello, {0}!".format(name).
 
Now, does anyone have any idea what I may be doing wrong to generate linker output similar to the following: pastebin.com/RkaNEiS7
 
"Hey there, Luigi{Textures/LuigiFace.png}!"
 
String interpolation is a form of Quasi-quotation, common in many programming languages which make heavy use of string representations of data, such as Ruby, PHP, Perl, etc. It means to insert a string or replace a variable with its value. It makes string formatting and specifying contents more intuitive. Examples PHP foo = 'Foo'; $this->bar = array('Bar1', 'Bar2', 'Bar3'); } } $foo = new foo(); $name = 'Jason'; echo foo. Now, I am printing some {$foo->bar[1]}. This should print a capital 'A': \x41 EOT; ?> The output will be: My name is "Jason". I am printing some Foo...
 
user142019
I'm talking about "Hello, #{name}! where name happens to be an expression.
 
user142019
You can also do "Hello, #{42 * 3.14}!".
 
10:13 PM
@ShotgunNinja You're using C++
 
@ShotgunNinja The symbols you have are not visible to the Linker.
 
And you probably forget to specify all *.cpp or include the respective *.o (or *.obj) files in the link
 
user142019
I just had a deja-vu.
 
This means that in some translation unit, you're not defining either the .obj/.o files that have those symbols defined or you never included the .cpp which defines those functions/symbols.
 
38
Q: What is an undefined reference/unresolved external symbol error and how do I fix it?

Luchian GrigoreWhat are undefined reference/unresolved external symbol errors? What are common causes and how to fix them? Feel free to edit/add your own.

That's for you
 
10:14 PM
sigh I know, I really don't have enough content there to provide useful background for the problem/.
Like, really.
 
4
Q: Why are my struct's members not properly initialised using `{}`?

Lightness Races in OrbitI had the following code: #include <iostream> struct T { int a, b, c; }; int main() { T t = {0}; std::cout << t.a << ',' << t.b << ',' << t.c << '\n'; } Output: 0,0,0 After many years of this code running happily in a critical production ...

why is this in the c++-faq tag?
o.o
 
@Ell Because the Clang API doesn't parse it, it requires me to parse it, and I couldn't be arsed.
 
@Rapptz because it's a recurring confusion with a canonical standard answer
c++-faq is for the 'reference' answers, IYAM
 
@sehe Yeppers
 
...
 
10:16 PM
there's a duplicate though and.. well... to be honest the other answer is better
 
WTF
My rep is enough to...
.... downvote?
I've spent too much time being useful. D:
 
@Rapptz wokay, I should find it. but no time right now
 
user142019
Haha. xD
 
It's right there on the top
24
Q: C and C++ : Partial initialization of automatic structure

testFor example, if somestruct has three integer members, I had always thought that it was OK to do this in C (or C++) function: somestruct s = {123,}; The first member would be initialized to 123 and the last two would be initialized to 0. I often do the same thing with automatic arrays, writing ...

 
@Zoidberg What the hell
 
user142019
10:18 PM
Don't you know that elevator video?
 
huh
 
user142019
 
check out the "Reputation" tab.
 
@Rapptz I don't see how it is a better answer. It is verbose, confusing. It doesn't even once mention the empty {} initializer and certainly doesn't debunk the omnipresent {0} idiom
 
That shows your email fyi
 
10:20 PM
@Rapptz Duh. He entered it. For years now.
 
@sehe Just warning
 
-16206 rep
@sehe No, I gave it out to quite a few users here.
 
Wait, was I the only one to know?
 
but I still prefer to keep it to myself as much as possible
wait, is it publicly visible on my profile?
 
10:21 PM
No
 
@DeadMG woah...
 
@DeadMG Wokay. I always assumed I had the same view of my own profile as anyone else (modulo the edit ability).
 
user142019
 
@DeadMG Rep recalc? Glitch? I mean, what's with 1256 responses too
 
no idea, I sure didn't just lose 16k rep
 
10:23 PM
@sehe Tomalak's answer is anecdotal though
"Don't use = {0} because it won't pass with my review team", okay, so what?
 
user142019
The fastest way to a woman's heart is with a reciprocating saw through the ribcage.
 
user142019
To try or not to try?
 
so
now I did some code cleanup, I need to remember wtf feature I was going to implement next.
 
@ThePhD Cool
 
@Rapptz Not at all. He's just to the point, debunks the classical myth with the proper standards quote.
 
user142019
10:25 PM
@DeadMG if-statements!
 
no
 
@Rapptz Also giving informal reasons is not the same as not giving good reasons at all
@DeadMG visit stackoverflow.com/reputation to see what happened for real
@Zoidberg That top comment seems like a dare you must have taken up on
 
@sehe Nothing interesting at all.
 
@DeadMG lol wut
 
user142019
@sehe So I went to 13horror.com.
 
user142019
10:28 PM
> To enjoy this site you'll need to update your Flash Player.
 
user142019
Need to install Flash? Okay, then I'll not visit ur site.
 
That's pretty meta type of horror!
 
user142019
 
user142019
lol
 
user142019
Nijntje++.
 
10:30 PM
Huh. That's confused. Nijntje != Kitty
 
user142019
//care they look similar. :P
 
user142019
But Nijntje is more awesome.
 
@Zoidberg PLONK
 
user142019
Er lag een dikke ronde appel
Midden in het groene gras.
Die dikke ronde appel huilde
Omdat hij maar een appel was.
 
@Crowz there's great tutorial arcynthesis.org/gltut
@user1690130 he posted titties, what's wrong with that
 
10:38 PM
@BartekBanachewicz Kittty v.s C++ is like Israel-Palenstine. Enough already. Don't talk to or about Kitty.
And Kitty should not bother with Zoid.
 
user142019
 
Ell
Doesn't work on my phone o.o
Opens up a video player then closes instantly
 
@Zoidberg Hmm... it's an SWF. Probably means I shouldn't click it :P
 
user142019
@Ell It's an SWF.
 
user142019
@Doorknob It's harmless.
 
10:46 PM
ok
I'll at least mute my computer before I click it
Woah O_o :P
 
user142019
@Doorknob :(
 
?
Big face thingy :O
 
user142019
It's funnier if you unmute. xd
 
@Doorknob my thought exactly
PLONK ZOIDBERG
 
@Zoid um okay
@user1690130 See this is why you're about to be plonked by me
Volume is VERY LOW :O
Oh wow that was loud
 
10:48 PM
@Doorknob why? Zoidberg always says Plonk? I thought that is like the buzz word here
 
... @user
 
You don't see me saying plonk elsewhere?
 
user142019
lol
 
user142019
Wild Rover of Hell by Volbeat is a good song.
 
user142019
I want to trip a sleepwalker.
 
Ell
10:56 PM
@deadmg in your source, why do you have lexer arguments instead of static data?
 
@Zoidberg Oh boy - you've sent me on the wrong part of YT again.
 
user142019
What happens if you kill somebody while sleepwalking?
 
> Most excellent soundtrack. I've enjoyed the mix quality here. And that is no insignificant aspect of this particular youtube posting... here
 
user142019
Juridically.
 
@Zoidberg He/she dies
@Zoidberg Oh.
 
user142019
10:58 PM
You couldn't do anything about it; you were asleep.
 
Manslaughter.
 
user142019
And there are known cases of this happening.
 
@Zoidberg You get sentenced to jail while asleep
 
user142019
@Rapptz Chuck Norris turns laughter into manslaughter.
 
user142019
@sehe xD
 
10:58 PM
@Zoidberg Not really. There are cases of this being (successfully) claimed
 
user142019
lol
 
Probably involuntary manslaughter
fits the bill anyway
I'm going to go watch a movie. Adios.
 
@Ell It's simpler to change the lexer that way.
 
user142019
Goodbye Rapptz.
 
Only **just** a little over the top
Maybe
 
11:00 PM
for example, I can run two lexers with different arguments in the same program.
 
user142019
@sehe Maybe HeartAttack
 
@BartekBanachewicz p²0p0 guy deserves your plonk. He's on the brown list for a solid reason.
 
Ell
But why would You want to do that? To me that sounds like introducing dependent specification compliancy within the same compiler
 
Anyone here have C4D installed?
 
user142019
Man.
 
user142019
11:06 PM
D'espairsRay are one of the best.
 
user142019
J-Rock! <3
 
-6
Q: I'am not a programmer, but this is a q for you programmers about bussiness

user2059775lets say: I'am an entrepreneur with a company about 3 mil $ worth, i have like 2 big flats around 2000 m2 empty, where i can place MUCH stuff for programmers, and i can easly buy and get any tipe of pc you need for programming... to be quick: i can get the "perfect" enviroment for programming.......

2
lol.
 
Ell
I have maths test tomorrow
 
@Ell Good luck!
 
@Ell on what?
 
user142019
11:10 PM
@Ell what's it about?
 
Ell
Edexcel c1. Core maths. Factor theorem, remainder theorem, differentiation, integration, coordinate geometry, sketching graphs, surds and indices
Also physics on mechanics and electricity
Hmm. I'm trying to think What else is on the maths
 
@Insi Haha that question
 
Ell
Linear inequalities
 
@Ell do you need help?
 
Ell
No thank you :)
 
11:14 PM
@Ell are you high school senior?
 
user142019
 
> 0:59 you got the instructions reversed. That was piece of cake. Now, Try to name the color, not the word, that's hard.
 
user142019
^ I want.
 
Ell
I'm sixth former
 
@Zoidberg save up
 
Ell
11:14 PM
Is that butter?
 
@Ell what does that mean?
 
Ell
Age 17
I don't know what that equates to in America
Or anywhere actually
 
@Ell high school senior in usa
Which country r you in?
 
user142019
@Ell yes.
 
Ell
Uk
 
user142019
11:19 PM
Boris Beer was awesome.
 
"Zeg Boris Beer, zei Barbara
Zeg weet je wat ik wou?
Ik wou zo graag een baby beer,
Een beer die lijkt op jou!"
You know what the best part is? I can quote the rest too, from memory ...
 
hi all
 
Ell
Hi
 
user142019
 
why the hell am I getting four downvotes?!
2
A: Explanation of how this works:

Konrad Rudolph= takes precedence over ,. So the first statement is a declaration and initialisation of i: int i = 1; … followed by lots of comma-separated expressions that do nothing. The second code, on the other hand, consists of one declaration followed by one initialisation expression. Then again, tha...

 
11:22 PM
@Zoidberg INF
 
user142019
@KonradRudolph huh?
 
user142019
Parentheses take precedence over = and , no matter what.
 
@Zoidberg Well, that was implied in the answer
 
fucking hell
the Clang semantic analysis tool is obscenely coupled to the Clang parser.
 
user142019
int i = (1,2,3,4,5);
 
11:23 PM
you can't do shit if you're not parsing a C++ source file
 
user142019
i == 5.
 
user142019
Not 1.
 
user142019
Ohh wait.
 
user142019
OP changed his code wat.
 
user142019
OP suddenly changed question -> downvote, close, delete and ban.
 
11:25 PM
@KonradRudolph I think they are saying that (a) that is initialization, not assignment (b) if {1,2,3,4,5,6} were correctly used, that would not have been operator,. Now, the initialization point is only half-moot, since the assignment operator is required to be accessible, even if it is actually elided. — sehe 1 min ago
 
@sehe I use neither “assignment” nor “operator,” in my answer though, and I fail to see the relevance of that comment
 
@Ell which unversity do you want to attend?
 
user142019
xmonad works so fucking well on laptops.
 
@sehe C++ defines operator precedence rules for lexemes, not for semantic operators. = has the same precedence, regardless of the context it appears in.
 
@KonradRudolph Also, the value of (x,void(),y) is y, not x
 
11:26 PM
@sehe No, it’s y of course
 
@KonradRudolph I agree.
 
Ell
Im not sure I want to attend to any. Imperial would be the best but we all know I won't go there
 
user142019
@sehe you agree to facts.
 
user142019
@Ell no. Imperial system sucks. Use metric units.
 
@KonradRudolph I got the impression that you implied otherwise in your answer (how else would (1,2,3,4,5) be 1?)
 
11:28 PM
@sehe It isn’t …
 
user142019
Hmm.
 
Wokay. I didn't know you were fixing it
 
@sehe Ah, I see. Read the initial question, not the edited version
 
user142019
Overloading , to behave like >>=. :D
 
@Zoidberg Yeah. It's deliciously bad. And confusing.
 
user142019
11:29 PM
Or... just overloading >>=. xD
 
user142019
So evil.
 
@KonradRudolph Oh. Damn. That's gonna explain a few downvotes too then. I mean, they see you implying things that aren't relevant (allthough, you are correct in thinking you didn't actually say anything about operators and overloading). aaaan they see the wrong outcome, so they assume you must be talking out of your neck. A case of bad luck.
 
user142019
Hurray we get SQL tomorrow at school!
 
user142019
How fun!
 
user142019
And R!
 
11:32 PM
@Zoidberg What brand?
@Zoidberg Oh no. You're going to beat me to it
 
user142019
@sehe Don't know, but not MySQL.
 
yar. So y'all said I need books? Someone recommend me a good book for C++, beginner in C++ but mid-college level programmer
 
@Zoidberg Postgress or berkeley, most likely
in Java, 3 mins ago, by Doorknob
Also I highly recommend Eclipse, it's an amazing IDE
 
user142019
SQL Server 2008 RC.
 
@sehe Okay why did you do that.
 
11:34 PM
@sehe why does everyone hate Eclipse? It's alright
 
user1357851
lol horse meat in beef lasagnes ... smh.com.au/world/… Would it be horse lasagnes then?
 
Now I have to get pummeled with disagreement. D:
 
user142019
IOW: not gonna happen.
 
user142019
I'm not gonna install Windows on my precious machine.
 
@Doorknob That's why :)
 
11:34 PM
:P
 
Hey all
 
hello @night
 
@Zoidberg WTF. Mmm. Maybe there is a TDS compatible server on *nix. And, no doubt, you'd be using yucky libtds based Jdbc anyway
 
user142019
Time to quit school before those innocent noobs in my new project team start depending on me.
 
user142019
Or I could just pwn them by not doing anything while still taking orders.
 
11:36 PM
Do you guys think I could apply for some 'reach-schools' like Harvard and MIT? I have straight A's on my list so far (except for one B for dutch), along with a 10 for math and computer science (in the dutch system we use 1-10, where 10 is perfection - it is only given in 0.1% of all tests on average).
 
user142019
zoidberg.enable_evil_troll_mode(); >:3
 
zoidberd.disable_evil_troll_mode(Status.FOREVER);
>:3
 
user142019
> zoidberd
 
user142019
noob
 
Darn it!
 
11:38 PM
Not to mention that despite being dutch I actually was born in the USA, so I have citizenship.
 
user142019
Also it's a private function.
 
Compiler, stop trowing exceptions at me. Ow.
 
user142019
And zoidberg is *this.
 
Ahh! Misspelled throwing now! :O
I can't type right now :P
 
user142019
@sehe no Java; we'll be using R.
 
user1357851
11:39 PM
bool status =
zoidberg.enable_evil_troll_mode(); cout << status <<endl; // 0: failed
 
user142019
(Thank God.)
 
user142019
R is less bad than Java.
 
user142019
Not that the inverse is possible.
 
@nightcracker try it
@Zoidberg R with database access. Interesting
 
user142019
I think I'll not go tomorrow.
 
user142019
11:41 PM
Instead I'll go buy Real World Haskell and read that.
 
@Doorknob Sorry, somehow I pasted the wrong message. Let me fix
 
noooo
 
user142019
FUCK ECLIPSE IT'S JUNK USE VIM
 
Here comes the disagreement
:O
 
or it stays absent.
 
11:42 PM
yay!
 
user142019
Also they want us to use Rstudio.
 
user142019
Ain't gonna happen either.
 
user142019
Vim all the way baby.
 
user142019
Nothing beats Vim.
 
user142019
I even do my non-programming-related homework in Vim.
 
11:43 PM
yesterday, by sehe
www.eclipse.org is down :(
I don't hate eclipse but nothing beats vim
 
user142019
I can't imagine how I could live without Vim.
 
user142019
And xmonad.
 
user142019
And Linux.
 
user142019
And Z shell.
 
user142019
However, I do plan on writing my own shell.
 
user142019
11:45 PM
One that doesn't have crappy syntax.
 
@Zoidberg O yes you can. Because, you know, you lived without it for the largest parts of your life. Even if you only count the relevant parts
 
user142019
Written in Python or Haskell or Erlang.
 
user142019
YEAH ERLANG DISTRIBUTED SHELL OMG.
 
@Zoidberg Prepare for immediate irrelevance and obsolescence
 
@sehe I prefer vim with C but I like eclipse with java... no idea why.
 
user1357851
11:45 PM
... aka super slow shell
 
@Zoidberg z/OMG/ZOMG/
May 30 '12 at 14:40, by sehe
I love R#'s Extend Selection/Shrink Selection combos (like Eclipse had it some years before) - I'd actually want to build myself something like that for Vim (based on libclang)
 
user142019
The hardest part of a shell is the UI I think.
 
user1357851
...
 
Jan 26 '12 at 12:42, by sehe
Huh. I don't follow. gcc is fine on it's own. vim + make, kinda nice. From there, you can easily just open the same with Eclipse CDT or Codeblocks. Both of them have some appeal but none of those ever convinced me to keep using them. MSVC++ on the other hand, actively enthuses me to close the IDE
 
user1357851
either you are drunk or an 'innocent newb'
 
user1357851
11:46 PM
so which one are you?
 
user142019
@Doorknob haha that avatar.
 
Okay, you got too high on my plonk list @Telkitty. 2 out of 3 people on potential plonk list plonked now.
 
@Doorknob You know, we're an eclectic bunch here. We don't do religion. We don't swear by OO, we don't swear by Endo-functionoids. We only have a "satan": PHP :)
 
@Zoid I just changed it :P
@sehe Lol xD
 
@Doorknob He has been on mine for ... quite some time
 
11:48 PM
Ok, let's see here.
Potential Plonk List (sorted by plonkness probability)

user1690130 (DONE)
Telkitty (DONE)
msangel
 
user142019
@sehe dafuq is an endo-functionoid?
 
ohai @Andr
 
@AndreiTita who? zoid = satan?
 
1 min ago, by sehe
@Doorknob You know, we're an eclectic bunch here. We don't do religion. We don't swear by OO, we don't swear by Endo-functionoids. We only have a "satan": PHP :)
 
user142019
11:49 PM
Do you mean an endofunctor?
 
122
Q: A monad is just a monoid in the category of endofunctors, what's the problem?

Roman A. TaycherWho first said A monad is just a monoid in the category of endofunctors, what's the problem? and on a less important note is this true and if so could you give an explanation (hopefully one that can be understood by someone who doesn't have much haskell experience).

^ //care for misnomer
 
user142019
A functor isn't a functionoid.
 
user142019
Functionoid are C++ functors.
 
user142019
They're not related to functors from category theory at all.
 
@Doorknob actually, I don't know who's on my list. There's two small avatars at the moment. Most of the time, I let my patience do the ignoring. Too much confusion from actual plinks
 
11:51 PM
@sehe Oh my god... I see now. Haskell is a conspiracy to bring math into general purpose programming. Kill it! KILL IT WITH FIRE!!!
 
@sehe There's a plonk list
 
user142019
Functors in categories are just mappings between categories.
 
user142019
Hence fmap in Haskell. :)
 
@sehe You can go to your chat profile and to the tab "Prefs"
 
@Doorknob Like I said, I dunno. Maybe I should add: I don't care :)
@Doorknob //effort
 
11:51 PM
:effort:
 
Lol ok :P
 
ohai, back home from Berlin :)
 
user142019
YEAH I GET IT YOU SUCK AT SPELLING
 
11:52 PM
@Zoidberg :)
 
user142019
:P
 
@TonyTheLion You lived?
 
I can confirm @R.MartinhoFernandes is indeed a robot :)
7
 
user142019
@TonyTheLion is the toilet dry?
 
@sehe Yes, I survived :)
@Zoidberg hmmm, lemme think...
 
user142019
11:53 PM
When I come back home from vacation, at least, the toilet is always fdry.
 
You know, I should either sleep or code, yet I find myself here...
Sigh.
 
Sleeping is better than coding
 
@TonyTheLion How so? Is he part prothese?
 
@CatPlusPlus Yes.
 
@AndreiTita that's what you get with this this place, you find yourself here whether you like it or not.
 
11:54 PM
@AndreiTita Neither sleeping nor coding
 
user142019
An endofunctor, that is a functor from a category C to C right?
 
@sehe lol
 
@Zoidberg I'm sure someone knows
 
can someone give me an example of a problem a junior in college should be able to program? What is at the right level?
 
11:59 PM
"Junior in college" is a useless classification
 

« first day (848 days earlier)      last day (4098 days later) »