« first day (1763 days earlier)      last day (3199 days later) » 

user1804599
9:00 PM
I wish I were your cat.
 
user3047181
@Darklighter how do your colleagues who use different envs take that?
 
AKA why singletons sometimes make your program crash during program shutdown.
 
@StackedCrooked Failbucket.
doesn't matter because they're Singletons
making your program crash during program shutdown is really the least of your concerns
 
But there can be only one!
And it's a design pattern.
You suck.
 
9:01 PM
@StackedCrooked I'l try.
 
@MeltyButter we have no official convention, so they have to live with it. actually nobody complained so far.
 
I never remember the pattern for Win32 save file dialog filters.
 
operator int&() const
Hmm
This makes no sense to me
 
user3047181
@Darklighter and what's the plan when someone does complain?
 
@ʎǝɹɟɟɟǝſ The state of the object is pointer to int.
The pointer value does not change.
 
user1804599
9:03 PM
@StackedCrooked that program is dangerous SIOF
 
it’s not like i’m inconsistent all the time
 
user1804599
cout may be destructed before Foo's dtor is called
 
@StackedCrooked Yeah, no. I mean why would you have that in your interface?
 
@elyse SIOF?
 
user1804599
static initialisation order fiasco
 
9:03 PM
i just have my preferred style and go with it
@MeltyButter how would that complaint look like? »i don’t like your style!«?
 
@ʎǝɹɟɟɟǝſ Good question. Feel free to research this. I expect your paper next week :)
 
user3047181
@Darklighter "i spend longer than i need to understanding any given code because I have a different arbitrary style"
 
user1804599
@StackedCrooked eh?
 
user1804599
it was a sidenote
 
user1804599
9:05 PM
not a solution
 
user3047181
"let's make a default arbitrary style"
 
user1804599
I did not do that.
 
@MeltyButter then i would say, that you have to learn to not be bothered by the style, because as mentioned before it has no meaning, only the name has
 
user1804599
woo only .85 GB to go
 
for what?
 
user1804599
9:07 PM
Windows 8 installer to USB stick
 
user3047181
@Darklighter styles matter for names. "ClassObject" != "class_object" but I might assume they do because of my "crazy" style
 
@StackedCrooked ...
Static initialization?
What?
 
I was just kdding.
 
@StackedCrooked I don't understand it anyways.
 
You don't see why the program crashes?
 
9:09 PM
Following how it works, I'd expect that the static variable is initialized, and then you return the int reference that it holds
 
The int reference is not the problem.
 
@StackedCrooked Yeah I still don't get it
But it appears...
That the int isn't even there when it's created
 
@VermillionAzure When is foo destroyed, and when is fLogger destroyed?
 
It crashes because the integer is being dereferenced after destruction. ~Foo() runs after ~Integer()
 
@StackedCrooked Ah... There we go, scoped destruction.
Scope and order.
I thought it had to do with the class structure :(
 
9:11 PM
Lifetime of function-local-static vs lifetime of globals.
 
user1804599
@StackedCrooked then why does main crash?
 
user1804599
main is called before either's dtor
 
@StackedCrooked Aren't globals always destroyed last anyways?
I thought it goes:
 
@elyse main causes the Integer to be instantiated.
 
global -> main -> objs -> ~obj -> ~main -> ~global
 
user1804599
9:12 PM
@StackedCrooked ohh XD
 
@MeltyButter i don’t think i understand the problem. additionally you need to understand the context around a particular entity anyway
 
user1804599
Hmm.
 
user1804599
Local statics are created atomically.
 
user1804599
Is it possible to form a deadlock that way?
 
user1804599
how is deadllock formed
 
9:13 PM
Yay, it compiles with clang but fails with gcc. NNNNNNN >:[
 
@StackedCrooked what?
 
@VermillionAzure main does the first getInstance
 
guys check me out I'm gandalf
 
@melak47 Whaaaaaaaaaaaaaaaaat?
wait what
WHy
 
user1804599
getInstance gonna get instance.
 
9:14 PM
Why does static initialize after main?
 
user1804599
no
 
@VermillionAzure ~Foo is not used for initialization...
 
Oh wait
 
user1804599
it initialises in main
 
9:14 PM
@VermillionAzure Yeah. But function-local-statics are destroyed in reverse order relative to other function-local-statics. And they are usually destroyed before globals. Unless the globals instantiated them in their constructor (so before their own construction was complete).
 
user1804599
oh that code
 
user3047181
@Darklighter i just think ClassA ClassA(ClassB); is less complicated than ClassA class_a(class_b);
 
user1804599
@StackedCrooked I like Go's initialisation order.
 
@MeltyButter maybe
 
user1804599
Globals can't depend on eachother, and are initialised such that their dependencies are always initialised before themselves, then in lexical order.
 
9:15 PM
@StackedCrooked I still don't understand what you're talking about. I get that main() runs first, so that's where Integer is constructed, where as ~Foo comes at the end
 
@MeltyButter uhhh..what?
 
Oh wait
 
user3047181
@melak47 exactly. it's too complicated.
 
@MeltyButter no, I can't parse your first "less complicated" example
 
@StackedCrooked Soooo, if I init in main, main captures the scope, so it destroys Integer, and then when we get to ~Foo, it can't fine Integer, right?
YESSS!
 
9:16 PM
@melak47 Internal Melak Error
 
@MeltyButter No, that's just confusing.
It's as if I named somebody Human Human.
 
@MeltyButter we do have some strange names in our codebase, but i’m not bothered enough to change them, whereas i’m bothered about other things which are actually ambiguous to read which i then change
 
@Darklighter What is strange?
 
user1804599
wtf
 
@elyse wut rightfold
 
user1804599
9:18 PM
I'm doing cat windows.img > /dev/disk2.
 
user1804599
The file is 4GB.
 
user3047181
@Darklighter ugggh I'm not saying go back and change everything ever, I'm saying set a standard from now on
 
user1804599
Activity Monitor says that cat has already read 7GB of data from disk.
 
@elyse ???
 
user1804599
why would it do that
 
9:18 PM
@MeltyButter I think they're both pretty broken because the variables are not named after what they actually mean.
which is fine in short contexts.
 
@Darklighter What language?
@Puppy Yup, only good for examples.
 
@Nooble :D
is it just me or is boost...boosting in size?
 
@VermillionAzure UI_addSkeletonNode
@VermillionAzure c++
 
@melak47 Uhhhh yeah it's Boost
@Darklighter Libraries?
Qt?
 
@VermillionAzure why?
 
9:20 PM
@Darklighter idk. But that isn't even a strange name
 
-1
Q: How can I get a specific assignment solution from a PHP guru (free or paid)?

bg17awI know Stackoverflow questions that seem to try to get an answer to an assignment/test are usually closed. However, sometimes they might be very valid attempts to enhance one's knowledge. I heard something about "bounties" but not sure how they work. So my question is, if I have an assignment/...

 
How about, rw = matrix data, sg = enum of sample group
 
^^ "Where do I go to cheat on my homework?"
 
user3047181
@Puppy okay then: ClassA OooohItsAnAClass(ClassB OooohItsMoreOfABClass); is more complicated than ClassA oooooh_its_an_a_class(ClassB ooooh_its_more_of_a_b_class;
 
@VermillionAzure it’s about the under_score and casing argument
 
user3047181
9:21 PM
aliright?
 
@MeltyButter i don’t think so
 
@Darklighter Yeah it's pretty terrible but at least it gives you information.
 
3.36GB for just the static multithreaded debug,release,x86,x64,static-runtime,shared-runtime combinations
 
@VermillionAzure which is my point
 
@Mysticial It's soo obvious b/c he used assignment
 
9:22 PM
and i think puppys too
 
@melak47 There's a lot in Boost, now. Think about it.
 
Ell
@melak > static
 
@Ell I don't want no dlls kthx
 
Alternate implementations of shared_ptr, unique_ptr, Boost::Karma, Boost.Any, Boost.Variant, template meta programming lbiraries, Boost.Python, etc. etc. etc.
 
@melak47 Why would you build all of the combinations?
 
9:23 PM
I mean, it's a freaking workshop.
 
@melak47 Welcome to the club.
 
user3047181
@Darklighter you won't instantly know OooohItsAnAClass is an object rather than a type
 
This is stupid. Every single time I work with one compiler for awhile I get a whole fuck ton of errors with the other compiler and I have to spend hours refactoring. Now I'm going to have spend the rest of the day to get my shit to compile with gcc. So fucking dumb
 
user3047181
you're winding me up if you don't think that's important
 
mouse over job done
 
9:24 PM
@Puppy which combinations would you drop? debug? x86? shared-runtime?
 
@MeltyButter but you have so little places where you could put both
 
also
good luck passing a type as a constructor argument.
 
I should make my project compile with both gcc and clang every single time
 
@Prismatic Uhhh what?
 
@melak47 Drop all of the ones you aren't using right now (and shared runtime because fuck that)
 
9:25 PM
@Prismatic Yeah isn't that what most projects do anyways?
@Puppy std::unique_ptr<T>?
 
does not accept a type as a constructor argument.
 
user3047181
@Prismatic wait what? how could any code that compiles with gcc not compile with clang?
 
There shouldn't be so much variation in what compilers accept. I shouldn't have to build with both every time
 
@MeltyButter They're different compilers?
 
@MeltyButter Its vice-versa but it happens both ways
 
9:26 PM
@Prismatic What exactly is the problem? GCC and Clang are supposed to be mostly compatible with each other.
 
There's open ended behaviour in the spec too so compilrs do different things sometimes
 
user3047181
I've set it up so that I compile via clang first, then gcc if there are no errors in clang
 
@VermillionAzure They're mostly compatible but not entirely.
 
user3047181
then I get the lovely clang compile errors first
 
user3047181
and the lovely gcc machine code otherwise
 
9:27 PM
GCC's compile errors are quite competitive now I believe.
 
user3047181
aren't i smart?
 
@Prismatic Yes... But what is making it fail?
 
@Prismatic use -pedantic-errors
 
@Puppy They changed it a little bit back so they're very similar now. Clang's nicer but they're similar
 
user1804599
-W{all,extra,error,pedantic} or GTFO
 
user1804599
9:28 PM
@MeltyButter no
 
@elyse aw don't be mean spider lady
 
hmm
 
user1804599
OMG cat is done
 
> aren't i
 
jbsmooth1012@gmail.com is an email posted in an Arqade question.
let's see how many fetish porn websites I can sign him up for
 
9:29 PM
@elyse i used -Wpedantic before but then realised that -std=c++xx is not enough to get portable rejection, because of that i use -pedantic-errors no which disables gcc extensions
 
user3047181
we never get to the bottom of any issues here in lounge.
 
-Werror is a bit too much for our codebase
 
you know
 
user3047181
we always end up getting distracted with new problems
 
there's this frustrating feeling when fighting a bug
'why isn't this fucking working?!'
but then there's the even worse feeling
the onset of total paranoia
 
user3047181
9:30 PM
shouldn't we vote, whats better: camelcase or _stuff?
 
-Werror should be enabled for development builds. On build servers it's better disabled.
 
'why is this fucking working?!'
 
This is specifically whats failing in gcc, but works in clang
 
'how the fuck does this even work?!'
 
Beat you to it, ha!
 
9:31 PM
and then there's me
 
@MeltyButter I vote for camel_case and Stroustrup_Case
 
I spent three hours building custom SD card reader driver kernels
 
But apparently gcc is right in failing on this point. Though the standard says what I did shouldn't be allowed, it doesn't say the compiler has to fail to compile it. So clang compiles it, gcc doesn.t
 
> Stroustrap
 
then I finally pushed in the SD card into the reader all the way :D
 
@VermillionAzure *Bjarne_case
 
Ell
The mosg annoying werror is unused variable
 
Why_would_anyone_do_this
 
I propose lISP-cASE
 
user3047181
@Nooble to_separate_similar_sounding_words what start with the same letter
 
9:32 PM
@Nooble it's like the text is running away from you, getting smaller and smaller....
 
@MeltyButter That makes no sense.
 
Ell
@orlp lol ouch
I've done similar stuff before
 
Are you still on this jesus christ
 
@Nooble because it ends up with stuff like URLListener? UrlListener? URLlistener?
Or should we just go with URL_Listener?
 
user3047181
@VermillionAzure yes that
 
9:34 PM
@VermillionAzure You should just go with URLListener.
or url_listener
 
user3047181
@Nooble ewwww!!!!
 
user3047181
yes, url_listener, that doesn't make me sick
 
@Nooble which is why I use Stroustrup_Case or camel_case
 
@elyse The error I ran into with gcc doesn't show up as a warning in clang
 
@MeltyButter Ok Katy t3h PeNgU1N oF d00m.
 
9:34 PM
Should I file a clang bug?
 
Stroustup_Case for classes and camel_case for everything else
 
Ell
Lol you nub
 
user3047181
@VermillionAzure strousup case is pointless, why bother capitalizing each word? I already know it's a new word because of the _
 
I'm actually really disappointed at how difficult it was for me to find hardcore pornography newsletters to sign you up for. — DeadMG 9 secs ago
 
Ell
camelCase
 
9:35 PM
I'm gonna get so banned.
 
Ell
Because camels have humps
 
@VermillionAzure should be UrlIistener combined with a crappy font so you can't tell l and I apart
 
@AlexM. Whasdat
 
@MeltyButter Or basic ability to read English
 
@CatPlusPlus ff xiv
 
Ell
9:35 PM
snake_case because apparently snakes look like that
 
@Ell oh sorry
@MeltyButter Because Classes
 
15
Q: typedef changes meaning

foxcubWhen I compile the following snippet with g++ template<class T> class A {}; template<class T> class B { public: typedef A<T> A; }; the compiler tells me error: declaration of ‘typedef class A<T> B<T>::A’ error: changes meaning of ‘A’ from ‘class A<T>’ On the othe...

huh
 
user3047181
@Puppy most people don't have that ability, I'm all about diversity and inclusion, are you?
 
I guess its just a gcc quirk
 
@AlexM. On scale of shitty MMO to slightly shitty MMO how bad is it
 
9:37 PM
@MeltyButter Not a chance. We can't write enough accurate documentation and that's only in English. If we tried to localize code and documentation into non-English, it would be ridiculously expensive and the output quality would be crap.
 
@CatPlusPlus it's like world of warcraft pre-wotlk but it's final fantasy
only played 7 hrs so far and I like it
 
having everything in one language is long-term beneficial for the field in general, even if not great for new users starting out in another.
 
So, grindy and boring?
 
wotlk made WoW a lot better really.
 
user3047181
@Puppy ?? i didn't say we should translate it, I said we should separate words with _, because all romanized alphabets can recognize, unlike capitalized letters
 
9:38 PM
yes there's grinding but there are lots of quests all over the place and you use those to level most of the time
I'd say there are... 30% kill N things quests, and the rest involve going somewhere and interacting with things
 
@MeltyButter I guess that you're not diverse enough to include Chinese people?
 
Are they fetch quests
 
up to level 14 at least
 
there are some fetch quests
 
user3047181
9:39 PM
@Puppy chineses already program in romanized alphabets anyway
 
and separating the words is not going to help you if you don't speak English, since you don't know what the words mean and can't read the docs (if there are any lol)
 
Lounge is MMO and the boss is stupid discussions about code style that last for hours
 
@DeadMG Probably because the won't let you create multiple accounts on the same email. — Nooble 2 mins ago
 
the game also has voice acted cutscenes and scripted boss battles at the end of "main" quests that advance the story
 
GW2 has those in Living Story
I hated every single one of them
 
9:40 PM
Hey
I have a noob question
 
@KPath001 Hi.
 
and some weird thing where if you are overleveled in special events your level is auto-decreased for that event
 
Nothing like "repeat this dumb gimmick N times" style of battle
 
can anyone answer it real quick
 
@KPath001 Maybe if you actually ask the question...
 
9:40 PM
no.
 
I like the fact that you don't need multiple characters to try out classes
 
@KPath001 Yes. You're welcome. See you.
 
you can switch between classes with the same character
but you seem to level each class separately
 
GW2 does autoscaling too, it lets you play with people who haven't poopsocked for weeks yet and not be 1000x more powerful than them
 
@StackedCrooked Whaaaat :)
 
9:41 PM
@KPath001 Also, there goes your question limit for the day.
Please come back tomorrow.
 
user3047181
@Puppy but thats exactly the point! if you don't know what the words mean then having diffent symbols separated by _ will make them stick out easier, instead of relying on a native english speaker's ability to pick out AClassCalledCarrie vs a_class_called_carrie
 
while(i <= tempMax) {
cout << "Enter the your input from sample "<<i <<":";
cin >> temp[i];
//TempInput(temp[i], i);
i++;
}
 
@Nooble lol
 
my program runs this while loop
and then just stops spitting out anything code after it
 
@KPath001 Why are you not on Stack Overflow?
 
9:42 PM
Like a basic cout<< code
 
@Puppy actually... it might
 
@ʎǝɹɟɟɟǝſ
because it's too basic for stackoverflow
 
In Japanese classes, they separate words even though they don't have spaces in Japanese, usually.
 
and it's too advanced for us. sorry
 
@KPath001 Where does it say that basic questions are not accepted on Stack Overflow?
 
9:43 PM
true
 
@KPath001 Would you please SSCCE and desired behavior.
 
I tried playing the game with the gamepad to see how the PS guys play it :D
after 5 hours I switched to mouse and keyboard
 
@ʎǝɹɟɟɟǝſ To be fair, he'll probably write a bad question and then it'll get shot down
 
@AlexM. Heresy.
 
@KPath001 Also how can you decide whether it's basic or not if you don't know the solution or what the actual problem is?
 
9:43 PM
@AlexM. wut game
 
it's really difficult to do emotes with the gamepad, and I like to pet people when seeing them around
by the time I get it done with the gamepad they leave
 
This is a true fact
 
@VermillionAzure Still 10x better than asking on chat, don't you think?
 
@KPath001 What's temp_max?
 
I just thought asking it in this chat group was fair
 
9:44 PM
@ʎǝɹɟɟɟǝſ No, because it's better than getting question banned like @Cinch
 
@VermillionAzure Waiting to downvote now
 
It's a constant integer value holding 7
@VermillionAzure
 
@KPath001 You haven't asked anything.
 
"why doesn't it work" :)
 
@VermillionAzure You know, you don't get question banned for 1 question. And if you can't learn in 1 question than maybe you deserve to be question banned?
 
9:45 PM
@KPath001 Full code please
 
^
And desired behavior.
 
Coliru is very good for Short, Self-Contained, Compilable Examples (SSCCE)
 
It's called MVCE now
Or something
 
Model View Controller Example
 
9:46 PM
@ʎǝɹɟɟɟǝſ You don't get it, do you? I didn't know enough back then to even make a good question.
 
@VermillionAzure
 
@KPath001 FFS.
Use coliru or Stacked Crooked will be sad.
 
What's FFS?
 
@KPath001 Final Fantasy S.
 
@KPath001 FOR FUCKS SAKE
Yeah sorry but that's what it means
 
9:47 PM
@VermillionAzure Wait, now we are talking about you? Also to make a good question you don't need to learn a lot. You just have to be able to prepare an SSCCE and explain the expected behaviour. Things that you can learn in 1 or 2 questions shot down on SO.
 
Oh sorry
My bad
 
user3047181
i meant to ask actually, is there a quick way of calling the function inside this shared_ptr<std::function<>>? coliru.stacked-crooked.com/a/24cfaa3e4eb0ad08
 
Making a SSCCE is arguably the hardest part, but it's something you gotta learn.
You gotta take the code you have working in your environment and make it work on another environment.
 
@MeltyButter ->operator()(stuff)
very pretty
 
40% of the times, you find out what the problem is just by doing that step.
@MeltyButter Maybe operator->*
Not sure
 
user3047181
9:49 PM
@melak47 coliru.stacked-crooked.com/a/2feb4f69044fc7e3 -- weird invalid pointer error
 
@KPath001 That's nice
@Nooble That one is actually better /cc @StackedCrooked
 
@MeltyButter my work here is done
 
Can we have that dynamic shell thing too?
 
@ʎǝɹɟɟɟǝſ yes, give us fancy compiler version buttons!
 
user3047181
@melak47 no its not. im still confused
 
9:51 PM
@KPath001 Very weird.
@VermillionAzure Do you see the problem?
I sure as hell don't.
 
Same
But if you comment out the while loop it works properly
which is why I am confused
 
std::cout << "The average heat capacity for this material was "; isn't happening.
 
Ask VermillanAzooray
He knows everything.
 
@VermillionAzure
Anything from looking at the code?
 
9:53 PM
Seriously dude, ask on Stack Overflow
 
Alright
 
Yeah.
I'm actually interested.
 
@KPath001 Why are you using static vectors
 
user3047181
@VermillionAzure yay thanks! lick
 
@VermillionAzure
 
9:55 PM
@MeltyButter Also, you had to use std::make_shared<T>
 
where?
 
@KPath001 EVERYWHERE
 
@KPath001 Arrays.
 
@MeltyButter your shared_ptr was taking ownership of func, probably calling delete on its address.
 
user3047181
@VermillionAzure not in c++11 though, right?
 
9:56 PM
Am I not using it properly
to store the user input?
 
@MeltyButter yess in C++11
@KPath001 No, it's a terrible design problem.
 
Wait is there a better way to store the user input?
 
@KPath001 use std::vector<float>
 
There I fixed it.
 
woah cpp.sh
thats new
 
9:59 PM
@KPath001 Also, why do you do float temperature[] = {};
I can't even see the actual size of the vector; for all we know, it could collide with anything
 
I don't know
That was just sloppy of me
 

« first day (1763 days earlier)      last day (3199 days later) »