« first day (745 days earlier)      last day (4209 days later) » 

8:00 PM
@kbok Not what I did.
 
@DeadMG in fact I'm not sure what's the real difference between the purposes of the websites.
 
@kbok It wasn't offensive.
 
@kbok No fucking idea.
 
At least not what I saw.
 
-1
A: Combining template method with strategy

DeadMGLet's get down to brass tacks. There is absolutely no need for any Game interface, no design patterns, no abstract classes, and no UML. If you have a reasonable amount of support classes, like UI, simulation, and whatever, then basically all of your non-game-logic-specific code is re-used anyway...

 
8:00 PM
this isn't my first suspension, but I'm pretty sure that I had to call someone's mother a whore for the previous one.
 
So what the hell happened ?
 
It's been a while since I saw the Labrador from Michigan.
 
I also posted a comment saying that his lecturer was a moron, questioning the point of the exercise, and noting many places where the question lacked many relevant details.
 
Xeo
@R.MartinhoFernandes I thought YouTube wasn't allowed to serve adds in Germany.. guess I was wrong! :)
 
@StackedCrooked Sometimes he pops in to say he's hungry.
 
Xeo
8:01 PM
I never got them thanks to Adblock+, it seems.
 
@DeadMG You did a thorough job.
 
labrador from michigan/
 
Xeo
@DeadMG The other puppy.
 
oh yeah
 
So, wait, what's the point of Programmers, if SO already does the same thing?
 
8:02 PM
@StackedCrooked I only called the lecturer a moron, nothing worse than that, and my other points were wholly valid.
 
Xeo
@Serge It's not the same thing. Programmers is more about the experience of being a programmer and all the stuff around programming, while SO is specifically for problems you find while programming.
 
@Xeo Thank you for the clarification. Was wondering...
 
@DeadMG yeah, that's not ban-worthy
 
Oh, stupid design pattern made-up problem I hate problems specifically tailored for design patterns, I hate them because then solution is never design patterns they are so stupid
 
yeah, it really wasn't
I got a message from the moderator but like the other three didn't read em
 
8:03 PM
@Xeo So you could say that SO is the Rehab, while Programmers is the support group?
 
Xeo
@kbok They're not. Really, most design patterns are good at what they target. What's stupid is over-applying them.
 
@DeadMG You should probably read them.
 
@Serge SO is for a specific problem with code. Programmers is for being a programmer. CS is for general computing problems.
 
8:04 PM
@DeadMG you gonna get your rep back?
 
@LuchianGrigore In four days when the suspension ends.
 
What's worse, there are instances of design issues where some design patterns do a neat job. But I've yet to find an example where it works.
 
@kbok Design patterns are better than things that are worse.
 
@MooingDuck and asking about tools.
 
Yes, after a suspension is over, you get a rep-recalc.
 
8:04 PM
ah
good to know
 
@Xeo When I say "solution is never design patterns", I'm talking about those exercises
 
Xeo
Ah
 
@MooingDuck Ah. Well, I like SO best anyways =)
 
DP exercises are, in all instances I've seen, best solved without DP
 
Oh noes, DP.
 
8:05 PM
Which confuses people even more
 
The main advantage about design patterns isn't the problem they solve, but the fact that everyone knows them, so they make code easier to understand.
 
Tell me, what are some of the most common design patterns?
 
Because everytime you start with a DP and try to find a problem for it, it goes wrong
It's the other way around, obviously
@Serge Factory is so common it doesn't even deserve a name
 
@Serge Spaghetti code.
 
Xeo
@R.MartinhoFernandes I can't count the number of pages in there, really, since LibreOffice can't open it correctly and WordPad only opens it as one long site. :( Currently loading MS Office...
 
8:07 PM
factory is the most useful one
 
Xeo
And it's not much legal gibberish, but some stuff is unclear for me.
 
@StackedCrooked that's the best one, I use it wherever I can.
 
@kbok I know Factory, and Singleton by name. I probably could claim knowledge of the rest of them by design, but not by name. (Is dependancy injection a design pattern?)
 
@LuchianGrigore The big ball of mud is also powerful.
 
yeahm it's called "The pattern of being a moron".
 
8:08 PM
@Serge nope
 
Ok, let me clarify: not all the rest of them... but some of the others.
 
@Serge If the sw is even-driven, you can't really do it without observer.
 
and Singleton with "Being a really bad moron."
 
@kbok For a second, I was going to point to some examples, but then I realized you meant "design patterns", not "dynamic programming", which ruined my counterarguments.
 
Xeo
@StackedCrooked Don't forget Baklava code.
 
8:08 PM
@JerryCoffin :p
@JerryCoffin I'm glad you didn't, because I would have been really confused
 
Can we stop using the term "DP" please?
 
When I hear "DP" I think Pokemon Diamond/Pearl
 
Ok, we'll use MC now
Masque de Conception
 
What is DP?
 
@kbok Minecraft?
 
8:09 PM
Deutsche Politie
 
@StackedCrooked Design Pattern
 
@StackedCrooked Pokémon Diamond/Pearl
 
Diamond/Pearl, Double Penetration, Design Patterns, etc
 
@Xeo Ask them?
 
ok, really, am I the only one who watches porn around here?
@Rapptz ah, there we go... :D
 
8:10 PM
@Rapptz Choose one and seal your fate.
 
Depends on context.
 
@LuchianGrigore We have code to write. We dont have time to porn.
2
 
Xeo
@R.MartinhoFernandes That's the plan for tomorrow atleast. :P
 
yet somehow here I am sitting in a chat room saying I don't have the time...
 
@LuchianGrigore Just not around here.
 
8:11 PM
DP also stands for diet pepsi.
 
@Rapptz DePends on context. FTFY.
 
Donkey Pock
 
@LuchianGrigore you're the only one saying you watch porn around here.
 
FiFTY? FiFTY WHAT? Dollas?
 
Anyway, Design Patterns are useful, but don't overthink them. Write clear, concise code, think about your design. That's all.
 
8:11 PM
(kidding)
Does CRTP count as a design pattern?
 
@kbok Use my motto: don't stop thinking!
 
@Serge That's an idiom.
 
no
 
@Serge No, I don't think so (though it is commonly used to implement a few of what might arguably be design patterns).
 
Damn
 
8:12 PM
I don't know anything about design patterns except singleton and factory.
 
@Rapptz Same.
 
@Serge Design Pattern-the-shiny-buzzword is about Java.
Although the concept comes from good ol' architecture -- with buildings and stuff.
 
Design patterns are weak. What we really need is a good cup of TMP
 
Observer & strategy are very important
 
@Rapptz You haven't missed much. The biggest problem (IMO) is that design patterns are really useful for talking about code, but a lot of people (try to) translate that into actually using them as a way of doing coding, not just talking about it.
 
8:13 PM
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Code/Design_Patterns
http://sourcemaking.com/design_patterns
 
Is model-view-controller a design pattern?
 
yup
 
Okay so that's another one I know.
 
MVC, MVP, MVVM, MVYM
the last I invented, stands for Model-View-Your-Mom
 
Man Vs Model View Your Mom?
 
8:15 PM
I cracked my knuckles
 
** My Mom vs Your Mom **
Who would win?
 
@MooingDuck The author appears to have missed quite a bit. Describing CRTP as simply a mixin is misleading at best, and at least closely bordering on just plain wrong.
 
I feel like there is a gravitational your mom joke in there.
 
@Rapptz MVSM: Mom Vs. Stellar Mass.
 
MVC MVP MVVM MVYM MVMVYM MMVYM MVSM
Any more?
 
8:18 PM
Dead Pwns You, DPY
 
user142019
Design patterns: doing things for the sake of doing them since 1994. — Zoidberg'-- 23 hours ago
 
@DeadMG Why did you feel the need to announce that?
 
@R.MartinhoFernandes I often announce such things. Why do you suddenly feel the need to question it?
 
puppy, such a trouble maker. :-)
 
Did SO just die?
 
Xeo
8:20 PM
nope
 
@EtiennedeMartel Nope.
 
well, I did visit it, so
 
@DeadMG Ha ha.
 
@DeadMG No. You usually announce stuff like taking a piss, or similar.
 
8:20 PM
@R.MartinhoFernandes It's pretty much the same thing.
it's a random fact about my current circumstances with no relevance to anyone.
 
But cracking your knuckles does not mark your territory.
@EtiennedeMartel Oh, ffs
 
nor does taking a piss
I take a piss in the same place everyone else does, the toilet
 
@EtiennedeMartel They might actually do a decent job of it.
 
8:21 PM
@EtiennedeMartel This was supposedly 'great news'?
 
@EtiennedeMartel what, is that a joke?
 
Reuters tweeted it, do I doubt it.
 
@EtiennedeMartel Oh God, more retconning to EU.
 
@R.MartinhoFernandes So I don't get about the marking territory thing.
 
George Lucas actually sold it?
 
8:23 PM
I mean, the Lounge is my territory because I said so, so :P
 
I find that more impressive than anything else actually.
 
@DeadMG You're a puppy. Marking territory comes with the pissing.
 
@Rapptz well, he makes money from it as long as he can
 
naw
that's more alpha males of packs
 
If it's serious, I hope they will just pick something that's already in EU, not create something new... phew.
 
8:23 PM
and I'm not really a pack animal, despite my genetic heritage
 
@DeadMG what do you know? I have a genetic heritage too!
 
@Griwes The problem with that is that they'd need new actors for a lot of the primary cast.
 
@Griwes Haha, so naïve: Lucas will be a creative consultant. Guess what will happen.
 
@R.MartinhoFernandes Yeah. More retconning.
 
I mean, last I checked, Mark Hamill doesn't exactly look young and spry anymore
 
8:25 PM
Probably people will just have to stick to EU and what's already there.
 
As long as Lucas has any say in anything, I don't expect a lot of good to come from Star Wars.
 
I mean, a bit retconned vision of Clone Wars isn't that bad.
Except the fact it's retconned.
 
Chrome's built-in developer tools are damn convenient when doing web stuff. Esp the JavaScript console.
 
@R.MartinhoFernandes Except, as Yahtzee put it, "dodgy CG and laughable angst".
 
There is too much already in EU for them to retcon something close (chronologically) to old trilogy.
 
8:26 PM
It's Lucas.
 
lol
 
The only sane options are: take Old Republic era (and produce Episode 0, rofl), or take ~130 ABY era to make ep7.
 
what's EU?
 
The man is famous for fucking up.
@bamboon Expanded Universe.
 
Europe, obviously
 
8:27 PM
@bamboon The most epic part of SW.
 
@DeadMG Anyway, Mark Hamill is a terrible actor.
 
ok, what's Expanded Universe?
 
@bamboon Books, comics, games.
 
But it's not like SW films are known for the good acting in them.
 
EU stuff has dubious canonicity already, so...
 
8:28 PM
All that built pretty expanded (lol) universe around basis from movies.
But the problem is that stuff from that Clone Wars tv series is more canon than books (ROFL).
 
@R.MartinhoFernandes Wouldn't really know.
 
Haskell doesn't have implicit conversions, right?
 
@DeadMG "Nooooooooooo!"
@EtiennedeMartel Right.
 
Good.
@R.MartinhoFernandes He does make a very good Joker, though.
 
Anyway, going EVE. As a fan of EU, I can just sit here and laugh at them trying to retcon something heavily rooted in universe :D
 
8:30 PM
 
WTF is that.
 
@kbok Jesus!
 
I was curious about dolan since I discovered an easter egg in baconit
 
user142019
@kbok Dat quality.
 
(the WP7 reddit client)
Context: gooby (nearly) always dies
 
8:32 PM
@kbok wut
 
Oh, I repcapped with the max_size() Q
 
man
I opened up my website to check something and I've completely forgotten dafuq it is
 
@DeadMG us obviouslly
 
@DeadMG I do that with the fridge
 
I'm fine btw
 
8:34 PM
@kbok What ^.
 
@EtiennedeMartel old
 
@kbok I also do that with cupboards and stuff.
 
@humourdedroite, Paris
Si vous n'êtes pas contents, vous n'avez qu'à aller en Corée du Nord.
23.1k tweets, 146k followers, following 0 users
 
Aaaaaah.
 
It's a group of journalists making fun of the right wing
 
8:35 PM
Finding Nimoy. #DisneyStarWars #Oops #WrongFranchise
 
@kbok That's so easy to do. They should look for more difficult targets. Like unions.
(I'm kidding, unions aren't hard)
 
There's less potential for funny. Unions are downright pathetic.
 
Yeah.
Well, in France at least. Ha.
 
Sure
 
I wonder, what's hard to make fun of in France?
 
user142019
8:37 PM
Security cameras y u no superhigh quality.
 
@Zoidberg'-- Because space.
 
@R.MartinhoFernandes I've always wondered why they don't just ditch boring frames and save as lowrez for uninteresting frames.
 
guys guys is extern class X{} x; valid? It is, right?
 
@LuchianGrigore I don't think so. Can't instantiate without the class being fully defined.
 
@EtiennedeMartel Jean-Marie Bigard.
 
8:39 PM
extern class X {} x; ?
 
Why would you want that to be valid?
 
@MooingDuck ideone likes it ideone.com/clone/rMNJsw
 
@kbok Who's that guy?
 
@StackedCrooked I don't... just askin...
 
8:40 PM
@LuchianGrigore Aw man, if you need to ask, it shouldn't be in the code.
 
@EtiennedeMartel An unfunny humorist.
 
@LuchianGrigore I was just noticing that. Is the extern keyword doing anything there? I can't define it again. (even identical)
 
@R.MartinhoFernandes it isn't.
 
0
Q: I want to make the execution order of threads sequentially one after another

Hello#include <windows.h> #include <iostream> using namespace std; int count = 0; DWORD WINAPI Tf1 ( LPVOID n ) { HANDLE hEvent = OpenEvent ( EVENT_ALL_ACCESS , false, (LPCWSTR)"MyEvent" ); if ( !hEvent ) { return -1; } // Loop through and wait for an event to occur for (...

What. The. Fuck.
No, the title is not misleading.
 
user142019
@LuchianGrigore Note that Ideone uses GCC and GCC is one big language extension.
 
8:40 PM
@MooingDuck ideone.com/70jwGx
 
user142019
I am not sure about that case, though.
 
@kbok He seems to be a close friend to Sarkozy, so it's to be expected.
 
I came from stackoverflow.com/a/13147165/673730 and was thinking you don't have to break it into 2 parts...
 
@MooingDuck Quite a few do something roughly like MPEG -- transmit a full frame, and from there only differences (which, as long as nothing happens, are essentially nothing at all).
 
@MooingDuck you missunderstood.
 
8:41 PM
@LuchianGrigore I completely misunderstood
 
@R.MartinhoFernandes for(int i = 0; i < 3; ++i) switch(i) { case 0: ... case 1: ... case 2: ... }
 
The extern applies to the variable, not the class itself.
 
@R.MartinhoFernandes the exact same question popped up some days ago
 
Xeo
Ugh, MS Office 2013 so looks like Win8 design...
 
@Zoidberg'-- FWIW (not much, but well...) it compiles on 4.7.2 in standard-compliant mode with full warnings as errors.
@Xeo Do you find that surprising?
 
8:42 PM
@Zoidberg'-- people keep saying that but the only extension I'm aware of is VLA.
 
@MooingDuck Computed goto.
 
Xeo
@R.MartinhoFernandes: Alright, I can now tell you that my contract has 9 pages
 
@R.MartinhoFernandes Yeah, sequentialize that concurrent shit!
 
and I'm not even a GCC user
blocks, I think
 
oh, and another with the last member being a zero length array
 
8:43 PM
and zero-length array
and attributes
 
Xeo
With the NDA stuff embedded.
 
@Xeo "A foolish consistency is the hobgoblin of small minds." I dare you to (try to) name somebody with a smaller mind than Steve Ballmer.
 
user142019
lolwat
 
user142019
GCC has min and max operators. a <? b yields the minimum value of a and b.
 
8:44 PM
@JerryCoffin Baby Steve Ballmer?
 
@Zoidberg'-- oh nice
 
The infamous char* myClass1.getArg2(); ... you're looking for stackoverflow.com/questions/388242/…Luchian Grigore 24 secs ago
 
WTF is going on today...
0
Q: C++ new object every time function is called?

Dhiego MagalhãesWhat I want is a function that makes a new different instance every time i call it (with a different name...) Just like this: void person::new_person(){ person *(id+index) = new person(name_temp, age_temp, quote_temp); } But it doesn't work... I don't know how should i do that... (index i...

 
user142019
@StackedCrooked Hmm. Maybe it was introduced in a later GCC.
 
8:45 PM
Who broke Stackoverflow ?
 
@Zoidberg'-- Try one that's remotely up to date.
 
@Zoidberg'-- lol 3.3.6.
 
Xeo
Ahaha, daknok's was from GCC 3.3.6, wow.
 
Learn 2 google.
 
user142019
No, Google learn to find the latest version.
 
8:46 PM
In the short term, you need a container, ideally something like std::vector. In the long term, you need a good book. — Etienne de Martel 7 secs ago
 
@R.MartinhoFernandes If he reproduced asexually, yes. Any other DNA would have to help though.
 
-3
A: C++ new object every time function is called?

sampson-chenUse an ArrayList to do this instead: ArrayList<*person> person_list; ... void person::new_person(){ this.person_list.add(new person(name_temp, age_temp, quote_temp)); } Also, I'm not exactly sure if you want new_person() to be a void member function of person. Does it logically make ...

 
@kbok You seem to have just written it in your question (though, of course, many have before as well).
 
Man, so much nonsense today.
 
user142019
How would browsers handle about twelve <video> tags all playing simultaneously of about 0.5MB/video?
 
Xeo
8:48 PM
@R.MartinhoFernandes: Office seems to like to change the displayed number for the pages. It's 7, with one being basically empty except for 1 line and another begin half-empty. So I guess it can be considered small.
 
@Zoidberg'-- My guess would be "poorly if at all."
 
user142019
Hehe.
 
@Zoidberg'-- Don't get any ideas.
 
lol the downvotes
 
@R.MartinhoFernandes downvote hell
 
Xeo
8:50 PM
5
A: C++ new object every time function is called?

nogardYou can use std::vector<person*> as a storage. Every time you add a new person just add new element to the container by calling push_back() method: std::vector<person*> persons; persons.push_back(new person());

So, why is this one getting so many upvotes?
 
Wait...
> It compiles, but freezes while running(I supose its getting memmory thats not allowed), so that "person *(id+index)" may not work too. What do you think?
It what?
 
@Xeo Not anymore, the Lounge descended upon him :)
 
@Xeo lol, three downvotes now.
 
Xeo
Maybe he has a cast he's not showing us? :P
 
user142019
@Xeo because idiots.
 
@Xeo Oh, maybe he means the bit with the *(p+1) = 5.
 
> It compiles, but freezes while running(I supose its getting memmory thats not allowed), so that "person *(id+index)" may not work too. What do you think?
 
Xeo
Well, why would he say "maybe the other one also won't work" if he didn't mean that?
 
@Stacked unique_ptr<person>*?
 
Whoah.
 
8:53 PM
> std::unique_ptr<person> *
dude
 
Anyway, person, man.
 
user142019
This week I lost more rep on downvoting than I earned from upvotes.
 
I don't want to see smart pointers everywhere.
@Zoidberg'-- You suck.
 
Xeo
Reminds me, I wanted to edit my pointer answer with a notice that you may not necessarily need pointers.
 
8:54 PM
+1, finally an answer without pointers. — juanchopanza 56 secs ago
@Zoidberg'--: Which might confuse OP even more, but would also be even more right... — Xeo 1 min ago
@EtiennedeMartel's comment is the best answer.
 
@R.MartinhoFernandes I don't like rep, so, yeah.
 
I wish comments auto-loaded. @Zoidberg'-- beat my comment by a whole minute, but I didn't know until after submitting it
@Robᵩ You should leave it as pass by value, then std::move it and call vector::emplace_back. That would be the least confusing option :P — Praetorian 1 min ago
 
I mean, many times, I just leave comments instead of answering. I also refrain from leaving answers on "easy question" that are begging to be closed.
I'm as much as the anti-repwhore as you can get.
 
Xeo
@Praetorian It says "1 more comment"
 
@Xeo voting to close
 
8:59 PM
Who here can comment on the ease and documentation of programming CUDA?
 

« first day (745 days earlier)      last day (4209 days later) »