« first day (348 days earlier)      last day (2832 days later) » 
00:00 - 23:0023:00 - 00:00

12:00 AM
What's the difference between a closure and an anonymous method?
Or are they the same thing with two different names?
 
RELOAD!
[Cardshifter/Cardshifter] 10 commits. 1 opened issue. 2 closed issues. 13 issue comments.
[retailcoder/Rubberduck] 15 commits. 4 opened issues. 7 closed issues. 16 issue comments.
3
 
O! Hai there @Duga!
Closed more than opened today??? Heh... That's different. =)
 
@RubberDuck A closure is pretty much an anonymous method. When using Groovy and Java together, you also have to write Java lambdas as closures. A closure is also a class though, each closure you create technically ends up being its own anonymous class behind the screens.
 
Ohhh. So, that is pretty different then.
Similar concept though.
 
> A closure in Groovy is an open, anonymous, block of code that can take arguments, return a value and be assigned to a variable.
 
12:04 AM
[retailcoder/Rubberduck] Hosch250 pushed commit 8344c6c0 to next: Click anywhere to refactor parameters - finally :)
\[[**retailcoder/Rubberduck**](https://github.com/retailcoder/Rubberduck)\] [**Hosch250**](https://github.com/Hosch250) pushed commit [**f50612a6**](https://github.com/retailcoder/Rubberduck/commit/f50612a6a8deaaa2cd9f3a29167818bc240fb95a) to [**next**](https://github.com/retailcoder/Rubberduck/tree/next): Merge pull request #528 from Hosch250/next

Click anywhere to refactor parameters - finally :)
 
That's pretty interesting. Now I'm wondering if C# anonymous classes can have delegate methods as members...
 
AFAIK, reordering parameters works perfectly (for the N'th time).
 
> Anonymous types contain one or more public read-only properties. No other kinds of class members, such as methods or events, are valid. The expression that is used to initialize a property cannot be null, an anonymous function, or a pointer type.
 
No caveats this time.
And of course, that reminds me.
I've never tested them with named parameters.
 
Lol.
 
12:08 AM
Lol.
 
Welcome to my world.
 
@Hosch250 worst case, it doesn't break the code if it doesn't work ;-)
 
Hmm, I have a feeling it messes them up, and doesn't break the code.
Supper is going on, bbl.
 
TTGTB is going on, bbtomorrow
 
@RubberDuck I'm not sure exactly what a closure is in the C# world, but I've seen R# warn about an implicitly captured closure involving an instance level field, or even this.
@SimonAndréForsberg night!
 
12:18 AM
Interestingly enough, this should be a fairly simple to fix.
If the parameter is named, I don't need to reorder it.
 
@Hosch250 yes but this will be a feature that looks like a bug ;-)
 
Lol, alright.
 
Lol @Mug.
Leave it to R#...
Anyway, I'm out guys. Gonna watch some Walking Dead.
 
12:41 AM
YES!!!
It works, and I don't have to change a single LOC.
That's a first.
I guess this is ready for CR.
 
@Hosch250 include before/after screenshots!
 
Sure.
I'm debating whether to drop everything and post, or to work on another bug.
Posting will probably take several minutes.
Oh, and I need to R# my changes.
You know, I really like R#, when I'm cleaning my code up.
It really suits me to just enable it and work with it after all the bugs are gone (AFAIK).
Whoa, I just realized I never removed my last buggy attempt at the selection thing.
 
[retailcoder/Rubberduck] Hosch250 pushed commit 0ea0e631 to next: Remove dead code, R#erize
\[[**retailcoder/Rubberduck**](https://github.com/retailcoder/Rubberduck)\] [**Hosch250**](https://github.com/Hosch250) pushed commit [**c0240bc2**](https://github.com/retailcoder/Rubberduck/commit/c0240bc215148e729a5cb0bb4f68f1ce5b9f4272) to [**next**](https://github.com/retailcoder/Rubberduck/tree/next): Merge pull request #529 from Hosch250/next

Remove dead code, R#erize
 
I just don't understand why you're turning it off. You're missing out on the IntelliSense brainboost, the ability to work with identifiers and methods that aren't even written yet, etcetera, etcetera
 
I don't like how long it takes to open VS.
Because, when VS takes that long to open, I start chatting, and forget to write code.
Because I can't see when the window pops up because I have my browser covering it, usually.
I suppose I could open VS and turn it on...
The other thing, I don't like how it changes the UI.
Like the scroll bar gets absolutely huge, a yellow banner pops up telling me what method I'm in...
 
12:55 AM
Gimme a shot of that yellow banner, I have no idea what that is
 
See, I scrolled past the top, so it thinks I don't know what the signature is.
It does the same for loops and stuff.
 
Huh, that's not native VS?
 
No, not at all.
 
I'm pretty sure you can turn that feature off if you don't like it
 
That is vanilla VS.
 
12:59 AM
I find it pretty handy actually. Besides if your methods are short enough to fit the screen, you shouldn't see it all that often - and when you see it and you don't want to because you mean to be in the next method, well then just click inside method you mean to be in...
And it only ever shows if you're on the scope closing brace IIRC
 
I like to work at the top of the screen, and sometimes I need to check callers/callees so I know exactly what validation I need to do.
Yeah, I have a habit of putting my cursor there so it isn't blinking where I'm reading.
Anyway, CRQ coming up!
 
Hello
World?
 
Hi!
 
Hello! Any web developers here?
 
I'm 100% desktop dev, did you try The 2nd Monitor?
 
1:09 AM
Oh,alright.Apologies,I'll try the 2nd Monitor.
 
np
 
1:25 AM
IE is running terribly slow.
No it isn't, SE is running terribly slow.
0
Q: Reorder parameters in VBA

Hosch250Rubberduck now has a reorder parameters refactoring, since version 1.4 (uncompleted at the time of writing this). Before: After: Dialog: This is the IDialogView implementation: interface IReorderParametersView : IDialogView { Declaration Target { get; set; } List<Parameter> Par...

Boy, SE really is running slow.
Moreover, it is pretty fast.
 
1
Q: Reorder parameters in VBA

Hosch250Rubberduck now has a reorder parameters refactoring, since version 1.4 (uncompleted at the time of writing this). Before: After: Dialog: This is the IDialogView implementation: interface IReorderParametersView : IDialogView { Declaration Target { get; set; } List<Parameter> Par...

 
Oh, I didn't know you had a feed for questions. Makes sense though.
 
I'd try to find a way to avoid "VBA" in the title - lots of C# reviewers are scared to look at anything that involves VB, even more so VBA ;-)
 
Lol, OK.
1
Q: Reordering method parameters

Hosch250Rubberduck now has a reorder parameters refactoring, since version 1.4 (uncompleted at the time of writing this). Before: After: Dialog: This is the IDialogView implementation: interface IReorderParametersView : IDialogView { Declaration Target { get; set; } List<Parameter> Par...

in Tavern on the Meta on Meta Stack Exchange Chat, Mar 19 at 18:43, by Undo
oh, right. So I guess I'm apprentice idiot.
 
1:42 AM
mind if I make a shot that combines the 3 pictures into one?
 
No.
 
actually, I'm still in the GrammarIsFun branch, not pushing into Next just yet - feel free to do it :)
 
Do what?
 
the 3-in-1 shot
 
Not sure how I would do that.
Was seen yesterday:
 
1:47 AM
ok I'm pulling Next
 
1.2k commits in Next.
 
@Hosch250 edited
 
\[[**retailcoder/Rubberduck**](https://github.com/retailcoder/Rubberduck)\] [**Hosch250**](https://github.com/Hosch250) pushed commit [**13218094**](https://github.com/retailcoder/Rubberduck/commit/13218094fb833f3499e89f0694457de4ca744040) to [**next**](https://github.com/retailcoder/Rubberduck/tree/next): Merge pull request #530 from Hosch250/next

Add documentation
 
Oh, like that.
Still two images.
 
one's gone
 
Yeah, I thought you meant one image.
 
2:13 AM
I could, but then it would be too small to see
> This is the IDialogView implementation:
^^ not a true statement...
it's an interface that extends IDialogView that you're showing there
the code-behind is the implementation
 
OK.
I'm the last Top RD answerer.
 
I like the drag-and-drop :)
 
You mean the code, or the feature?
 
the feature, didn't look at the code yet ;-)
 
2:43 AM
#VBA "reorder parameters" #refactoring implementation is up for review on @StackCodeReview! #csharp #oss #codereview http://codereview.stackexchange.com/q/91221/23788
 
@Mat'sMug I flagged as VLQ, I believe.
 
which?
 
Yep, VLQ. It seemed clear enough and specific enough.
The one that just came in in the ticker.
 
oh
 
-1
Q: Suggestion for MS Office 2013 VBA App Architecture Please

Kenneth BergHere's an outline of what I have to work with and need to accomplish: Once a day triggered by time or receipt of an email with csv attachments kick off this process. The couple of .csv files that open fine in excel 2013, apx 50 rows of data each. I need to take each csv file content and paste ...

Anyway, bye.
 
2:54 AM
later!
I think I fucked something up
I merged Next into GrammarIsFun and lost some resources for the refactoring
 
3:17 AM
[retailcoder/Rubberduck] retailcoder pushed commit c2ac92ca to GrammarIsFun: merged from next
 
 
2 hours later…
5:34 AM
Ooh this is getting exciting! #Navigation works now, ...only the icons need a kick in the teeth! #VBA #ComingSoon http://t.co/G0TITVMbt2
 
[retailcoder/Rubberduck] retailcoder pushed commit 74133096 to GrammarIsFun: re-added icon
[retailcoder/Rubberduck] retailcoder pushed commit 7971aab9 to GrammarIsFun: MakeTransparent gave icons an ugly gray background. I think we may need to use png's instead.
[retailcoder/Rubberduck] retailcoder pushed commit cd2c8604 to GrammarIsFun: GoToAnything search and navigation implemented
 
I think I'll add a column to the DataTemplate, to display the DeclarationType.... although the icon should do that.
hmm
time to sleep anyway
 
 
5 hours later…
 
2 hours later…
12:49 PM
@RubberDuck sorry I "kicked" you out of the "GoTo Anything" feature... I had to work on something more encouraging than identifier resolution for a few days..
 
@Mat'sMug It's okay buddy. Totally understand.
I had to walk away and play with that calculator a few weeks ago. =)
T -70 min
I think I'll just go puke up my breakfast now...
lol
 
(sends positive waves)
 
Thanks bud.
 
Deep breath. It'll be OK. When one door closes, another one opens.
 
1:10 PM
Just make sure you keep your toes out of the way!
 
1:22 PM
I remember someone here saying something about the difference between:
Dim XLObj As New Excel.Application and
Dim XLObj As Excel.Application
Set XLObj = New Excel.application
and one being preferable to the other, but I don't remember which was recommended, or why. Anyone care to chime in?
 
@FreeMan The second is better because it will produce fewer surprises.
It also let's you check for xlObj Is Nothing.
You can't do that with the first one.
 
Cool, thanks!
What kind of surprises can pop up?
 
One sec.
    Public Sub test()

        Dim coll As New Collection

        Set coll = Nothing

        coll.Add "hello!"

        Debug.Print coll.Item(1)

    End Sub
Looks like it should raise an error, right?
Nope!
 
oh, that's awkward...
I'll keep that in mind.
 
Isn't it?
 
1:38 PM
And we need an inspection for that
Rubberduck.1.22.Setup.x64.exe(2.86MB) - Downloaded 102 times.
Last updated on 2015-04-01
Rubberduck.1.22.Setup.x86.exe(3.21MB) - Downloaded 186 times.
Last updated on 2015-03-31
288 downloads!
2
 
2:13 PM
 
Yay!!!! (I presume)
 
@RubberDuck congrats!
 
at the very least it's not "you're fired"! Is it also an improvement, or just a lateral for you?
It does appear to indicate that you're now a Senior, so enjoy your last year of high school! ;)
 
2:28 PM
@FreeMan It's a lateral, but I'll be in IT, so it'll be good for my resume.
 
reviewed:
0
A: Reordering method parameters

Mat's MugIn the Show() method, this condition could be reversed into a positive one: if (_view.Target != null) { ... } ...which would reduce nesting because if the _view.Target is null, then there's nothing to act upon and the method can return early: if (_view.Target == null) { return; } Th...

merely a naming and superficial review though
 
2:44 PM
@RubberDuck :thumbsup: ! ;)
 
2:58 PM
@Mat'sMug mine wasn't much different.
> Extract some methods blah blah blah
 
let's hope @Heslacher or @Jeroen (or anyone else actually) chimes in!
 
I'm kind of hoping.
I hate this pattern, but I don't know how to rightly fix it.
    private void OkButtonClick(object sender, EventArgs e)
    {
        OnOkButtonClicked();
    }

    public event EventHandler OkButtonClicked;
    public void OnOkButtonClicked()
    {
        var handler = OkButtonClicked;
        if (handler != null)
        {
            handler(this, EventArgs.Empty);
        }
    }
 
that's just how WinForms works IMO
 
Doesn't it feel like you should just be able to register a delegate somehow?
 
you want an ICommand
you want WPF
 
3:01 PM
Oh yeah?
 
lol
 
Maybe I should spend some more time playing with WPF later this year.
 
well it turns out I've introduced some WPF interop into Rubberduck with that little "goto anything" feature ;-)
 
It good to know that it works okay. Might be worth using for stuff that doesn't need to be dockable.
 
we can't have an actual WPF Window though
has to be an embedded user control
that dropdown was literally asking for it
OTOH...
the dockable stuff needs to be user controls anyway
makes me wonder
 
3:04 PM
Could be worth prototyping.
 
we could seriously improve the looks
like, get the UI to actually look the way it does in the designer
 
it's not magic though: WPF would default to the WinForms-like rendering.
but we could take full control over everything, and make our buttons shiny and all
 
Bonjour
 
hi!
 
3:15 PM
@Mat'sMug +1 for shiny. +eleventy-bajillion for full control mwaa ha ha ha haaaaa
 
3:43 PM
lets!
 
0
Q: Inserting row into named range code

Meringue90I am writing a macro for an inventory management document. The point of the User Form is to allow the user to add a new item to each of 5 sheets (Daily Sales, Total Inventory, Deliveries, Income Statement, Profits), directly into a dynamic named range. The user provides Item Name, category (Coo...

 
4:42 PM
\o/
@RubberDuck How did the meeting go?
 
3 hours ago, by RubberDuck
user image
 
@Phrancis that ^ =)
 
\o/ \0/ \./
cheers from a crowd with different length arms
 
LOL
It's nice to have an appetite again. I can tell ya that much.
 
@RubberDuck Sweet!
 
4:59 PM
@Phrancis Thanks.
 
22 hours ago, by RubberDuck
And it also doesn't help that "I'm not IT"
 
3 hours ago, by RubberDuck
@FreeMan It's a lateral, but I'll be in IT, so it'll be good for my resume.
=;)-
 
Really happy for you dude :)
 
It's definitely a weight off my shoulders.
Not quite out of the woods yet though. I have the HR guy confirming that I'm not required to move back to PA.
Cuz that ain't happenin'.
 
we can vouch that you're really good at communicating over chat and in Git!
 
5:04 PM
@RubberDuck Actually, AdjustSignatures handles multiple signatures when applicable, such as getters/setters/letters combinations, as well as event handlers.
 
@Hosch250 huh?
 
When you adjust the signature for a getter, AdjustSignatures handles the letter/setter too, and it handles event handlers for events.
So, it can't be AdjustSignature.
 
I don't know what we're talking about.
 
Your answer.
 
And I still have no idea what we're talking about. I never mentioned AdjustSignatures...
 
5:09 PM
Whoops, that was @Mat'sMug. Sorry.
 
LOL. Oh!
 
good point
 
5:35 PM
Oh, you mean other people's tweets.
 
Almost used #Jamalizer hashtag there ;-)
2
 
[retailcoder/Rubberduck] Hosch250 pushed commit 8ec5cf03 to next: Changes in response to review, and bug fix
\[[**retailcoder/Rubberduck**](https://github.com/retailcoder/Rubberduck)\] [**Hosch250**](https://github.com/Hosch250) pushed commit [**67d3e14b**](https://github.com/retailcoder/Rubberduck/commit/67d3e14b2a71c9c576fd3482c1537a9c6a8b013e) to [**next**](https://github.com/retailcoder/Rubberduck/tree/next): Merge pull request #531 from Hosch250/next

Changes in response to review, and bug fix
 
KK_
6:04 PM
Hi Mat's Mug - I just wanted to say thanks again for helping with my VBA question. I appreciate it a great deal.
 
Hi, @KK_
 
KK_
Hi - sorry I realise the comment was a little off topic - I hope no offence taken
 
No, not really off topic.
 
hey @KK_ you're welcome!
thanks for the checkmark!
just saw this
Thank you @mats-mug. Is it possible to see the properties in the Watches window when debugging? They are accessible in code and the Immediate window. — KK_ 2 hours ago
You can certainly set up a watch for it
if you have an instance of the class called foo, then you should be able to have a watch for foo.Length and foo.Height
as long as foo is in scope, the watch should give you its value
the "Locals" window is also pretty useful
 
After we get 1.4 out, I want to implement a bunch of refactorings, if you don't mind. I like them.
I can get all those feature request refactorings done by the end of summer, maybe.
 
6:14 PM
sure! what's next? remove parameter?
 
Yeah.
Unless you have a different one...
But first I've got to figure out this undo problem.
 
like, just to get the parameter ones out of the way ;-)
promote variable should be up next after that
select a local variable, promote to parameter or to module scope
encapsulate field should be easy, too. select a field, ensure it's Private and expose a property for it.
 
KK_
Thanks @mats-mug. That works nicely - I was originally trying to do it the low-tech way - by clicking on the small "+" sign and expanding.
 
@Hosch250 I wouldn't go out of my way for that one. it's more of a "nice to have/fix" than a showstopper
@KK_ have you tried yet? :)
 
But I assigned it to myself!
 
6:20 PM
@Hosch250 it's all yours! ..just saying, it might have implications beyond the scope of the reorder parameters refactoring
 
KK_
I haven't - can RubberDeck connect code in other languages to excel? In particular, could I connect code written in D to excel vba?
 
nah, it's just an add-in for the VBA IDE
 
KK_
RubberDuck* (not the worst typo, i guess ;) )
 
Maybe in the far future.
 
@Hosch250 inline method is overdue, too. it's essentially the opposite of extract method which shipped with 1.2
 
6:23 PM
Yeah.
 
KK_
OK - I have to admit, I probably will not properly grasp the full functionality of RubberDuck, but I will look at link provided. Thank you for sharing it!
 
@KK_ ever used Visual Studio?
 
KK_
yes, I am using it just now to mess around with vb.net
 
so you know you can write unit tests to automatically test your .net code right? well Rubberduck lets you write unit tests in VBA
@RubberDuck is working on integrating GitHub source control into the VBA IDE
 
KK_
oh sorry, wrong Visual*. I used Visual Studio to install quantlib
 
6:25 PM
@Hosch250 has just implemented a Reorder Parameters refactoring
I did the Extract Method and Rename refactorings
 
@Mat'sMug "working on" might be a strong term for what I've been doing for the last 6 weeks...
 
lol
 
I did start to upgrade to the newest version of LibGit2Sharp this morning though.
 
then there's code inspections that find unused declarations (albeit with some occasional annoying false positives), missing Option Explicit, implicitly typed variables and functions, etc.
better navigation (I'm working on a GoTo Anything feature)
browse and navigate to TODO: comments, etc..
 
Man, if only GoTo (sleep) could be used on the child processes living in my house...
2
 
6:29 PM
^^ oh yeah
lol it was pretty late when I took that shot yesterday
 
KK_
That is pretty awesome! I am looking through Code Review now - looks really cool
 
we're basically turning the VBE into an actual IDE
 
^Yay!
 
and yeah quite a lot of the source code is up on CR
 
KK_
Damn, that is a great idea
 
6:31 PM
thanks!
if you have a GitHub account, feel free to follow and/or star us :)
 
@Mat'sMug What's with the bright pink BG on those icons?
 
they're .bmp's
and it's fuschia ;-)
 
Ah. No transparency eh
 
Yeah, maybe that's why Goto (Sleep) doesn't work on the child processes...
 
@Mat'sMug trying to at least. =)
@Phrancis the magenta color is a special one that gets read as "transparent" in some situations.
 
6:35 PM
@Phrancis yeah. I think I'll just edit them all into .png's, will be simpler than doing that programmatically.
 
Obviously, that is not one of them.
 
WPF doesn't like .bmp's.
@RubberDuck fuschia
lol
 
@Mat'sMug My wife tells me I'm color blind...
 
@Mat'sMug I have PS Elements, which has a feature for doing that.
 
{255,0,255} is unambiguous
 
6:36 PM
I ask her why she's always wearing brown....
 
Oh, you are going to write a program to convert it?
 
er, I was going to edit them in MSPaint Paint.NET
 
@RubberDuck don't all wives say that about their husbands? Especially if said husband worked hard to pick out an "outfit" as a gift...
 
My wife tells me I'm color blind
 
Dude.... giftcards..
 
6:38 PM
OK, I'm leaving.
 
@Mat'sMug remind her, you picked her! (unless, of course, the selection was based entirely on braille... :)
 
More bird chasing, see you.
 
Shouldn't you be chasing bugs?
lol
 
Does this seem like some incredibly ambitious qualifications to anyone else?
> Qualifications
-Bachelor's degree from accredited four-year university or college; or equivalent combination of coursework and job experience
-5 plus years of information systems development experience; minimum two years of project design activities
-5 - 7 years of system analysis and programming experience
-Logistics system and operations support experience
-Production support experience in information systems department with comparable systems
-Strong communication skills
-Working knowledge of PCs including software and hardware
 
@Mat'sMug Nothing likes BMPs
 
6:42 PM
does having the original Final Fantasy on my Android phone count as experience with RPG's?
2
 
@RubberDuck Maybe they're going to hire Joe, but HR is making them go through an official interview process. Write the requirements so specifically that only Joe meets them, then it's easy to hire him no matter who applies.
wouldn't be the first time...
-AS400, RPG and SQL programming experience required. Eeeeek!
 
SQL IS NOT PROGRAMMING
 
^^that
 
Java or SAP ABAP??? wtf
 
Not if you're doing it right.
@FreeMan that's certainly possible.
 
6:51 PM
0
A: Why I cannot check the MS word paragraph style in Visual Studio?

Mat's MugVBA is doing implicit conversions for you. .NET simply isn't as forgiving (although I'm not sure to what extent VB.NET allows or forbids those). From MSDN it looks like you're passing an Object to the Prompt parameter of the MsgBox function, which wants a String. You'll want to cast the style i...

Why I hate how VB culture does everything implicitly
 
Hey duckies, what do you think of Simon's Groovy-based DSL:
card('JADE EMPEROR') {
    creature "Chinese"
    flavor "The Great Grandfather, Emperor of all Deities, Vanquiser of Evil."
    // info: en.wikipedia.org/wiki/Jade_Emperor
    // image: upload.wikimedia.org/wikipedia/commons/2/24/…
    // License: Public Domain
    health 10
    sickness 1
    manaCost 30
    attack 3
    whilePresent {
        change HEALTH by 3 withPriority 1 onCards {
            creatureType 'Chinese'
            ownedBy 'you'
            zone 'Battlefield'
 
Makes me want to play!
 
7:07 PM
IKR
 
@Phrancis oh hey... s/Vanquiser/Vanquisher
 
Oh, nice catch
 
Spell check that flavor text. XD
 
You're welcome to jump in if you want to try making some cards! We have 2 unclaimed Pantheons
 
8:02 PM
Eh. I'm too busy already!
 
8:15 PM
> FileStatus Enum changes aren't in the pre-release. Will need to keep an eye on this when LibGit2Sharp v0.22 officially releases.
[retailcoder/Rubberduck] ckuhn203 pushed commit 0a789da4 to sourcecontrol: Updated to LibGit2Sharp 0.22-pre; closes #485
 
8:58 PM
> Add a constructor overload to GitProvider that takes in an ICredential in addition to username & password strings.
> Pretty self explanatory. Expose the plain jane Credentials class to COM interop so it can be used in VBA code.
[retailcoder/Rubberduck] ckuhn203 pushed commit 319afa93 to sourcecontrol: added credentials class
 
9:36 PM
@Mat'sMug I got one tick.
The rest of my family got 8.
 
10:19 PM
Huh?
 
10:33 PM
Ticks.
Make that 9 - they caught another.
 
10:59 PM
card('MONKING') {
    creature "Chinese"
    flavor "Monkey King Warrior of Immense Strength."
    health 5
    sickness 0
    manaCost 15
    attack 5
    denyCounterAttack true
    onEndOfTurn {
        change ATTACK by 1 onCards {
            card(this)
        }
    }
}
 
00:00 - 23:0023:00 - 00:00

« first day (348 days earlier)      last day (2832 days later) »