« first day (1860 days earlier)      last day (1320 days later) » 

12:00 AM
RELOAD!
[rubberduck-vba/Rubberduck] 4 issue comments.
[Minesweeper] Games Played: 89, Bombs Used: 65, Moves Performed: 11932, New Users: 8
 
 
2 hours later…
2:00 AM
@IvenBach no, not that but something similar
it was a fancy word pant with a hyphen
but I'm coming up blank
 
2:15 AM
 
 
2 hours later…
4:05 AM
[rubberduck203/VBEX] lsq starred us
2
[rubberduck203/VBEX] lsq forked us into lsq/VBEX
2
 
fork & star; Woot.
 
 
2 hours later…
5:54 AM
> If there is any truth in product development, it would be that a good product fulfills a need, even if that need is entirely made up and supplied to the consumer. Advertising creates a hole, then a product fills it. Want to feel pretty? Buy shampoo. Dead-end job got you down? Eat at Chili’s. Trapped in a loveless marriage? Buy a bow-wrapped BMW.
Does this also apply to RD?
> Crappy code with bad indentation? Unqualified cell references abound? Implicit member access got you in the dumps? We’ll fret no more friend because #Ducky has got your back. No more will these problems plague you and your team. Properly indent without worry. Appropriately qualify Range object with their respective Worksheets. And these unsightly implicit method calls will be highlighted by AvalonEdit. #ComingEventually
 
 
3 hours later…
8:56 AM
0
Q: This cde generates an ID number for each new row of text that is pasted into the worksheet, how can I make it better and more consistent?

SanderJensenThis code checks if "B2" and so on is filled in and if it is then it will generate a new ID number for the row of data that was transferred to the worksheet on the next empty row, I know this code creates opportunities for bugs so I want to make it better but I don't really know how I could do it...

 
 
1 hour later…
9:59 AM
@this Dunning-Kruger. The tendency of incompetent people to overestimate their competence, due to their incompetence in estimating ability.
from the wiki:
> In 2011, David Dunning wrote about his observations that people with substantial, measurable deficits in their knowledge or expertise lack the ability to recognize those deficits and, therefore, despite potentially making error after error, tend to think they are performing competently when they are not: "In short, those who are incompetent, for lack of a better term, should have little insight into their incompetence—an assertion that has come to be known as the Dunning–Kruger effect".
dealing with one of those was my life until recently...
 
10:27 AM
Yes, that
 
@IvenBach of course it also applies to RD. We're building a product in a sense.
it's just that the product fills a real need instead of a created one
 
 
2 hours later…
12:30 PM
@IvenBach You work with some seriously unobservant people.
 
1:19 PM
@IvenBach I think you mean "fork & join; Woot." Don't you?
 
2:07 PM
@Vogel612 except, if the VBA "but I'm not a programmer" folks don't know they need a ducky, we still have to create the need =)
 
@QuackExchange coughSTOPTRYINGTOUSEEXCELASADATABASEcough
 
2:32 PM
What's using these ID values, and what happens when a row is deleted? — Mathieu Guindon 10 secs ago
 
Work just did a small company party (they are doing several small ones, instead of a half-day one), and gave out hot/cold mugs.
They are hand-wash only, do not soak or submerge...
 
@FreeMan just one woefully derpily unobservant Pineapple really...
 
@Hosch250 That is, by definition, almost a white elephant!
@IvenBach really? It's the same guy??? Please tell me this person does not drive. #HappyToNotLiveInCA
Would it be reasonable to filter XLSX files out of the CE? Or, at the very least, default them to showing up collapsed.
 
2:49 PM
 
I love that RD recognizes that I've open a new Excel file and kicks off a parse, but if it's an XLSX that I've just opened, there will be no code in it (by definition) and there's no real need to parse it.
If I'm adding code to an existing XLSX and I want it to parse, I should Save As first so that it's an XLSM, then let RD do its thing.
I often have an XLSM open, then have to open a bunch of XLSX files for other fires before getting back to my code. The frequent reparses slow things down, and sometimes I'm jumping from code to XLSX and back, and it takes time to find my code amidst all the non-code files that are opened
Maybe group XLSX at the bottom of the CE so they're there, but out of the way?
 
@FreeMan there’s a reason I want to stay home all the time. Fermented Pineapples, earthquakes, entitlement seeking snowflakes, and so many more.
 
@FreeMan XLSX and XLSM are exactly the same as far as the VBE can tell
 
3:06 PM
@MathieuGuindon :(
so, it would be reasonable to do so, but not possible. sigh...
 
I'd argue it would not be reasonable. Every single (Excel) VBA project starts as a .xlsx file, until it's first saved.
What we could do, is enhance the CE with greater flexibility regarding what projects show up and in what order
Just not on the basis of some host document's file extension
right-click project node, "ignore this project"
woopsie not that one.. bring up a list of opened ignored projects, untick, done
#UX
 
Just thinking things through...
If Apple can make iStuff popular, could we make dStuff popular?
And then we'd have dUX.
2
 
FWIW, though a XLSX will never open with code, there's no guarantee that once opened, it won't get code added.
I usually do this for scratchpads
 
3:38 PM
@MathieuGuindon That'll work!
 
@MathieuGuindon or... select the (new) "Show all" CE toolbar item, ignored projects show up as ghosted-icon nodes. Right-click the relevant one -> Unignore.
#VS-UX :-)
 
From this discussion UX is hard to get right.
 
^
"right" is subjective too, and changes over time.
1998 sure did love it's wizards...
 
Shifting requirements are a wonderful thing.
 
@this Which I mentioned in my ramblings that once it's saved as an XLSM it would need to be parsed.
 
3:48 PM
@FreeMan but scratchpads don't get saved....
Granted, that's an edge case, though.
 
scratchpad.xlsm <-- done
:)
 
that's not really a scratchpad anymore, is it?
 
sure - it's just a more durable scratchpad. ;)
 
@TweetingDuck Totally agreed. Intermittently borked is the worst thing to fix
 
3:59 PM
@TweetingDuck at the very least broken under identifiable conditions (or sorta identifiable conditions). But yeah, 100%!
 
Customer: My engine does this noise only some times.
Mechanic: Any pattern to when it occurs?
Customer: Uh... No.
Mechanic: It's going to take a lot longer than you think to diagnose.
^ Had that several times at a previous place I worked.
 
only when it's running.
 
Only sometimes when it's running.
Mechanics testing for 3 days couldn't find anything. Called and told customer who came and took a mechanic for a 30 min drive. Nothing. They said they'd bring it back next time it happened and left. ~10 mins later "You already knew it'd happen when I left and stop just before I got back." "Yep. We'll look at it again."
Those kinds of issues put the FU in fun.
 
Yeah, nothing more less fun than intermittent issues. :( At least with mechanical stuff, you can grab your phone and get a video including any dash indications and capturing (somewhat) the noises. Not so much for buggy software...
 
 
2 hours later…
5:41 PM
What are the odds? Logging into MFA the code I got was 911420. #EmergencyWeed?
 
quickly attempts to hack Iven's login.
realizes he has no clue what Iven is logging in to
 
Thwarted.
 
Would somebody remind me what the difference is betwixt the black and grey text in the Library References section indicate?
also, no idea why I've got Rubberduck listed twice there.
 
I think the grey can be removed while the black can't.
 
@IvenBach doesn't seem an unreasonable assumption. It seems backwards, however, since grey usually indicates disabled...
Unfortunately, I can't test out the theory since I can't get the RD-A/RR dialogue to open. :/
 
5:47 PM
@IvenBach makes no sense. I'm testing on a new WB and none of which can be removed.
 
> @Inarion You are correct, I am _not_ getting the dialogue opening behind other windows. (Just ran into this again today and thought to search for the issue instead of blindly opening a new one.)

Additionally, I'm actually getting an error in the log in reference to the 'AddRemoveReferencesPresenter', so it seems that it's an actual issue, more than an annoyance (which opening behind everything else certainly is).
 
@FreeMan that might have something to do with RD TLB listed twice
why is the RD TLB referenced anyway?
IIRC this does cause problems
...it's also why we spliced the unit testing API into its own TLB
ok this is driving me nuts. why the hell would =INDEX(NamedRange,1) work fine, but =INDEX(INDIRECT("NamedRange"),1) not work at all and yield a #REF! error?
like, I've been doing this for ages, and just now, suddenly, it refuses to work
named range is workbook-scoped
 
mkaaaaay.... Y'all saw that screen shot I posted of the References for this project, right?
I just went to the VBE's default Reference tool to remove the RD TLB as Mug recommended, and...
missing check marks and a different order!!!?!?!??!??!!??!?
Excel has been open the whole time. I've not actually made any changes to any code or workbooks (other than moving the cursor about some).
 
6:03 PM
@Vogel612 When a repo branch is deleted I know you can run git remote prune -n remoteName to do a dry-run and list what will be pruned. I've already done that and actually ran the command. I still have the local branch FileDialogExamples. Is it that the local branch remains and isn't removed as well?
 
whew! closing everything & reopening the XLSM reveals that they're all still selected.
 
@IvenBach stackoverflow.com/questions/4950725/… specifically using git branch -v or git branch -vv it will show the repo is "gone".
 
methinks the VBE is showing its age and gaining in senility
 
Just like old things reboot it.
Can't really do that with people though.
 
well... oh, no, that won't work...
removed the RD TLB via the VBE's References dialogue and this is what the CE shows me now:
I still have 1 instance of the RD TLB and all of them are grey.
close and open Excel again and:
Yay! removing RD TLB again gets rid of the 2nd instance of it in the CE.
I would think that all the library references showing up grey in the CE after removing one via the VBE's Reference dialogue would be a bit buggy, no?
 
6:27 PM
Are we caching the project refs?
 
> @SmileyFtW : I with you on this one.

@Vogel612 & @retailcoder : (as a reference) in mzTool there is properties helper.
[https://www.mztools.com/v8/onlinehelp/MZTools8Help.html?new_method_property_assistant.htm](https://www.mztools.com/v8/onlinehelp/MZTools8Help.html?new_method_property_assistant.htm)
We declare property name, type and private property name, pick GET/SET/LET'ers.
It works nice for a single property per step. It produce code like this.

```
Private _fooBar As String
 
6:44 PM
@Duga that code is all kinds of wrong
 
TirNoPer360 = Opt(sum)? Your question is extremely unclear / hard to understand. I second @BigBen in requesting that you edit your post to clarify how Opt relates to the other function, since right now it reads essentially like "I have an apple and a banana, how do I get a banana-flavored orange by eating an apple". — Mathieu Guindon 44 secs ago
@MathieuGuindon hahahaha another great comment
but spot on, I'm pretty confused
 
@BigBen so. much. confusion.
 
7:05 PM
@FreeMan but wait, tolerance is never assigned, so that's 0.
 
@MathieuGuindon Guess he wants negative zero?
 
another freakin dupe:
slightly annoying when OP doesn't actually read the dupe target:
Not duplicate because im testing it in a sheet that only has the value that im looking for. And already tried the If Not Rango is nothing And since here the find will always be succesful i didnt need to add that. Also for some reason its adding numbers in certain cells idk why. — Armas.Chuy 14 mins ago
@FreeMan think I should rollback the edit to the unqualified Cells?
cause since OP edited it's effectively a new question, with a problem of "it's not working"
 
7:21 PM
was going to ask, where are the unqualified Cells calls
 
OP finally read the dupe target
 
<~ confused. what's the problem then?
 
I'm not sure now. It's one of those questions that OP has fixed the original problem by editing, so all we've got is "it's not working"
It will never be in column A simply because the format on the original code will be always at least on column B. Right now im doing it on column D on the test sheet. Btw now the 1004 error is not appearing but its still not working :( — Armas.Chuy 8 mins ago
maybe optimally it should be deleted and a new question asked.
 
voted "unclear what you're asking"
 
that works too
 
7:36 PM
@BigBen another case of missing Option Explicit
 
yep saw that too
 
@BigBen meh. This question is such a mess, it's hard to tell what he's really after.
Guess he got his answer.
 
yeah. I've moved on.
I was not a fan of the multiple edits that fixed the multiple problems along the way.
 
7:56 PM
yeah. chameleon questions with an entitled OP that doesn't understand their own code but knows what's right and what's wrong with it (geez why are you even asking then?), are the worst.
 
0
Q: Store subranges from contiguous range into array based on criteria

lifeuhfindsawayMy code parses through a contiguous range of data in a spreadsheet (orng) and creates subranges from orng that contain the same string value (lot number) in the 6th column of orng. orng has 42 rows and 38 columns and each subrange has 1-15 rows and 38 columns. As far as I know, I can't create a n...

 
8:08 PM
Stay within the walls of CR. Far fewer Pineapples.
 
8:48 PM
@IvenBach yes, that's pruning remote branches only removes the "remote ref"
local branches are stored separately and fetch does not change them
 
After I asked my question then tested with the -v and -vv flag it became self evident. :blush:
I'm still learning as I go.
 
@QuackExchange yes, yes. But are the cells in orng orange?
 
> @SmileyFtW : I with you on this one.

@Vogel612 & @retailcoder : (as a reference) in mzTool there is a [properties helper.](https://www.mztools.com/v8/onlinehelp/MZTools8Help.html?new_method_property_assistant.htm)
We declare property name, type and private property name, pick GET/SET/LET'ers.

It works nice for a single property per step. It produces code like this.

```
Private _fooBar As String '_ is default prefix

Public Property Get FooBar() As String
FooBar = this.F
 
@mansellan vowels are forbidden, except in Systems Hungarian prefixes. It is known.
 
@Duga yea yea, just fixing the damn formatting
 
8:53 PM
@Duga am I the only one thinking the MZ dialog approach is rather.. heavy-handed?
like, I'd much rather have a more R#-like approach, as suggested in the OP. the private type has all the metadata we need, if we assume generating Property Get and Property Let/Set for all UDT members is good-enough.
 
also... this._fooBar doesn't work like that in VBA, does it?
 
nope.
does this even exist in VB.NET?
 
> @daFreeMan that error is unfortunately not available in the log that you already attached... Do you have a copy of that error for us? Thanks!
 
@MathieuGuindon dunno, honestly...
 
in any case, _ (or any other prefix) + this is redundant and RD wouldn't be doing that. NOT UNDER MY WATCH.
 
8:59 PM
 
either way, I'm off for tonight.
 
'night!
@Duga -16
 
9:11 PM
Is git add Foo\ bar\ escaping\ spaces/ an example of using `\` to escape space characters to add an entire directory?
@MathieuGuindon _ should be reserved only for use via the Implements keyword for event handlers.
 
@IvenBach yeah. in VBA anyway.
 
@MathieuGuindon I think it's Me
 
Me too
@this wait that's ambiguous
:)
 
this Is Me
 
Is this me
 
9:18 PM
it's-a-me, Mario
 
class Foo : Bar { }
vs
class Foo { private Bar _bar; }
 
The C# corner won had a nasty sinful example of newing something up instead of using dependency injection... That wasn't something I liked seeing.
Jeez Mug. You really know how to cut it down to the most basic level.
 
Look up the template method and strategy patterns and compare them.
 
Makes me feel silly with it represented like that.
 
9:23 PM
@IvenBach you know how telling a VBA dev they should adopt OOP? the looks you get? DI/IoC gets you the very same looks in many C# places.
 
~.~
But why? Why is there so much resistance to improvement?
 
when improvement is seen as additional complexity...
 
In a sense, it is actually more complex... However, each part becomes so much less complex.
 
I find it exposes the complexity
 
What I menat is that it is more complex because it is harder to see what is goning on when starting in some concrete place.
 
9:27 PM
yeah
 
Without DI, you can always go down the chains of constructors to find out wat your stuff does in total.
With DI, you know what you do with what is handed down to you, but you have no idea what that stuff really does, as it should be.
 
9:39 PM
and for those starting out that can be very disorienting
too black-magic-y, even.
I remember feeling that way when I first encountered it
Also, it can go against the grain if your mentality is "I know everything about my program and I am in total control of what my program must do"
 
#ControlFreak
 
Looking back, the concept of Public vs. Private was intuitive enough but I was used to simply peeking inside various internals that it was an hindrance in properly groking the abstraction.
 
10:07 PM
@M.Doerner I've reviewed the strategy pattern before. Hadn't read the template before.
 
> This will be a very very helpful addition. :)
 
 
1 hour later…
11:20 PM
Hey just a heads up, there’s a small reddit thread going on about Rubberduck right now, some users bringing up some feature requests: reddit.com/r/vba/comments/cbh8s6/…
 
@IvenBach The guy I'm in contact with turned it over to someone else in CA. I expect you'll be contacted before the week is over.
@MathieuGuindon That's KySoto there :)
 
11:37 PM
Someone with a reddit account can tell that "it messes up hotkeys" guy that hotkeys are all configurable?
 
IKR?
Unless he's referring to CTRL-Z with the self-closing pairs.
 
might have been an old build, remember the Ctrl+C mishap
 
That was funny, in a way :)
 
the startup time is a legit gripe though
 
I've agreed for a long time :)
 
11:41 PM
and the person saying only the indenter is useful and nothing does anything is... missing out.
2
> Seems like overkill for a language which is incredibly simple to learn, use and debug.
So you think, buddy. So you think.
> It feels like Rubber Duck is in a weird place, since once you start needing an addon like that you're probably at the point where you should be moving away from Excel/Access into a more Robust Language.
There's that.
 
need to consider hte fact that it can't move until it's been refactored.
most of time, those with legacy 20K+ LoC monolithic VBA "application"s are saying "No way we can't afford to risk it! Our business depend on this!"
Refactoring is pretty much only way to amortize the cost.
 

« first day (1860 days earlier)      last day (1320 days later) »