« first day (387 days earlier)      last day (4562 days later) » 

11:00 PM
Oh, you mean IDE macros, not C++ macros?
 
Where
I do
Yeah sorry I should have made that clearer
 
People use those?
I could never think of a single reason to use them.
 
If you have code that's repeated but can't be encapsulated?
 
then get a new language which can encapsulate it
 
Er, automating DRY violations is not really something I'd like to do.
Like, ever.
 
11:02 PM
agreed
 
Here's an example
 
Go to "Edit > Violate DRY...". There a dialog that pops up and lets you pick how many times.
 
asyncSetup.DoWork += new DoWorkEventHandler(asyncSetup_DoWork);
asyncSetup.RunWorkerCompleted += new RunWorkerCompletedEventHandler(asyncSetup_RunWorkerCompleted);
 
Edit > Refuctor.
 
lol
 
11:03 PM
I know it's not in C+++ but the example still stands
 
@KianMayne So, two lines.
 
those are terrible lines, too
 
What's repeated?
 
the handler should be given a meaningful name, not the IDE-generated one
 
My eyes.
 
11:04 PM
But I have like 5 background workers each for different purposes
 
that's why they should have meaningful names, not IDE generated names
 
They're descriptive :L and it helps me follow the flow
 
Make a function that takes a background worker?
 
plus, in C#, if you're desperate, you can use reflection to do that
 
asyncSetup.DoWork += asyncSetup_DoWork;
asyncSetup.RunWorkerCompleted += asyncSetup_RunWorkerCompleted;
 
11:04 PM
Yeah but then you have to pass two delegates
 
You can do this, btw.
@KianMayne So, basically, you want: DoWhatIWant();?
 
I know but the original design was different and bad
 
your mother's different and bad
 
No I just don't want to have to initialise something with 3 lines which takes time
 
I'm lazy
 
DoTheThing(asyncSetup_DoWork, asyncSetup_RunWorkerCompleted); is a single line.
 
How many times do you repeat this code to need a prerecorded macro?
 
@CatPlusPlus 5, I know I know but it's the monotony
 
quick, guise!
some moron is recommending the Google C++ style guide
 
11:08 PM
can't you just hit M-/ and have it auto complete?
 
let's downvote ASAP
 
WHERE
 
Where? Where?
 
0
A: Unified coding style for Javascript, PHP, C, and C++

robI would suggest something like this, it seems the way most people are heading, at least on the non-microsoft side of things: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml Although that is for C++, it also applies to the c-like languages you mention. You can look at example cod...

 
:( I'm going to 23999 rep.
@awoodland Ugh, that an emacs command?
 
11:09 PM
@RMartinhoFernandes - yeah.
 
Meh I'm writing a snippet
 
it's actually really nice though
 
emacs nice? That's new.
 
Stay away from me. I'm a vimmer.
 
everything I could ever wish for all in one place
 
11:10 PM
I don't like torturing my hands.
 
as long as everyone here has downvoted the Google Style Guide recommender....?
 
Sorry, I don't think it's worth breaking my shiny exact 24000 rep.
 
I'm thinking the question might be "argumentative and subjective..."
 
I did upvote your comment.
 
Me too, upvotes are free!
 
11:12 PM
I was the third upvote
 
well, I guess that'll work
 
IDEone ads are great: STD Symptoms STD Chlamydia STD Diseases STD Testing - targeted advertising fail!
2
 
now I'll just hack your upvotes into upvoting my opinion on the google style guide
 
@awoodland Ouch.
 
lol
 
11:14 PM
(just noticed that on the last version of the sierpinski triangle thing I tried)
 
The one that's not at all extensible?
;)
 
I gave up trying to debug it at: ideone.com/1FXK1
which is actually extensible again and avoids UB
 
lol, you try to make it obfuscated and then can't debug it :)
 
but has a bug that I have no idea where it came from
and no amount of GDB fu will find
 
Wow a webcomic that sums my approach to life up: xkcd.com/974
 
11:19 PM
Wow, you're really simple.
2
 
rofl
 
Btw, if you take 20 minutes to figure out a system to pass arbitrary condiments (like say, grab it and pass it), you suck.
 
what is that XKCD actually about?
 
Making you aware of your tongue.
 
@DeadMG - I assumed it was a pisstake on movember
and all of those similar "time-period X is Y awareness"
 
11:21 PM
yeah, I got the movember part
but not the tongue part
 
I ONLY just got it
I saw it when it came out
Wow I feel silly
 
I'm already aware of my tongue
 
Black Hat Guy is an asshole. So he makes you aware of your tongue, which seems to be annoying to some people.
 
it's just the same as it was before I read the comic
 
Doesn't work with me though.
 
11:23 PM
if anything, mine seems to be a little too large
but apart from that, I'm totally fine with it
 
That one's not that great of a comic if you ask me
 
See, it's working!
 
no, I don't see at all
 
@DeadMG For me it works with blinking awareness.
 
oh, blinking awareness I get
whenever you try not to blink you just can't not blink
 
11:26 PM
And now I screwed up.
 
self-owned!
 
and I just lost the game too
 
lol
 
What's this election stuff?
 
You know about moderators?
 
11:36 PM
you can vote for moderators
 
Four of them are community elected.
 
Is anyone here a mod?
 
No, mods are blue on the chat.
 
Oh, that's cool. I don't have to do any work lmao
 
11:38 PM
To nominate
It is a pity, I'm sure some of you guys would be great mods.
 
hahaha
        struct bug_workaround_type {
            int Identifier;
        };
        bug_workaround_type bug;
        bug_workaround_type* __this = &bug;
epic fix
it actually worked, too
 
@LewsTherin Not me, I'm sure.
@DeadMG What?
 
@RMartinhoFernandes ! Had you in mind AAMOF.
 
it makes my project compile
 
I threw my cards in the ring: stackoverflow.com/election/2#post-8044210
 
11:41 PM
I think I voted for Welbog in the first elections.
 
@CatPlusPlus lol
@DeadMG I got that part (I saw the question), but it's really silly.
 
yeah
 
probably won't get it since 10K is low and I don't move in trendy tags
 
you got me too
 
@awoodland Did you get votes?
 
11:43 PM
There are no votes yet.
Voting starts next week I think.
 
How does it work anyways? You comment I nominate or something?
 
Do you have Deputy?
 
@LewsTherin - only in nomination phase for the next 7 days
 
@LewsTherin Ok, I'm flattered. But being a mod takes time and patience I don't really have. I'd rather walk away than solve the kind of things mods have to deal with.
 
@awoodland Ah right, so people just read your statement for now.
 
11:43 PM
@CatPlusPlus I've got Marshal+Deputy
 
In nomination phase you introduce yourself, and then get rejected because you have too low rep.
 
lol
or because people allege that you're an asshole
which was totally and absolutely unfounded, I'd like to note
 
Your mother is an asshole.
 
@LewsTherin - yeah, there's two rounds of voting after that
 
I've noticed
 
11:44 PM
@RMartinhoFernandes I don't believe that, I refuse to!
@awoodland Two rounds! Reminds me exactly why I hate politics :(
 
@DeadMG You've nominated yourself last time? I must've missed that.
 
I just lost interest
 
yeah
 
@LewsTherin - not quite sure why they run it like that rather than say "single transferable vote" - looks very American with primaries etc.
 
I don't know how to find the old nominations, but someone dragged it up a couple weeks ago
 
11:46 PM
@CatPlusPlus His statement was like "I nominate myself because the guys in C++ chat room wanted someone to uphold the interests of C++" or something.
 
I was thinking about promising to remove all the comments.
 
@awoodland Maybe to keep things interesting..
 
yeah
 
Really, take a guess at who dug up the old nominations.
 
11:47 PM
Pray tell.
 
27
Q: Election primaries appear to perpetually check the candidate reputation

Grace NoteIt's been 7 months since the 2011 Stack Overflow election, and it's been a fun ride, hasn't it? A few of us were just reviewing the entries, when we noticed that Tim Post, one of the elected moderators, is not present in the primaries phase. Clearly, he was in the primaries since he got elected....

 
They're really clever about naming those elections, aren't they.
 
Ok, I'm going to hit the hay
 
We had 2011 Elections, and now we have 2011 Elections.
 
Goodnight
 
11:48 PM
lol
night night
 
Huh, it's only a second election on the new system.
@awoodland I'll vote for you, because you're participating in the most awesome part of SO!
 
I think you can cast three votes.
 
@CatPlusPlus - thanks! I'm not even sure I'll make it past primaries though given the rep of the other candidates so far
 
Or maybe this time you can cast four, given that this time four mods will be elected.
 
@RMartinhoFernandes - apparently current mods don't need re-election either: meta.stackoverflow.com/questions/984/…
 
11:53 PM
Maybe. I'll choose other three randomly, because I couldn't care less anyway.
I mean, seriously, who are those people?
Okay, time to sleep. Byeh.
 
@awoodland Oh.
 
Bye :)
 
bb
 
Well, then I think I'll have to vote like the Cat.
Or not vote at all. It's not mandatory.
 

« first day (387 days earlier)      last day (4562 days later) »