VBA Rubberducking

This chat has moved to Discord: https://discord.gg/MYX9RECenJ
889d ago – Mathieu Guindon
284

export all events for this room

Starred posts

Nov 12, 2014 16:40
That way reviewers don't pick on stupid things like indentation and naming. The way to get a great review is to get it so spotless that people have to address what the code does, not what it looks like.
Nov 12, 2014 16:13
@vba4all wait, you're @mehow?
Nov 12, 2014 15:04
noticed that answer was all lonely and missing a checkmark
Nov 12, 2014 14:52
13
Q: Extensible logging

Mat's MugWhenever I need logging functionality in .net, I use a logging framework, such as NLog. Obviously there's no logging framework for vba, at least none that I know of. As much as I love using NLog, the way it works, with targets, rules and loggers, was going to be way too heavy and complex for my ...

Nov 10, 2014 21:54
I just got access to the SO low quality queue.... It's scary in there.
Nov 10, 2014 21:30
And VBA needs unambiguous bitwise operators
Nov 10, 2014 21:12
I've been doing it several years and know not how most stuff works
Nov 10, 2014 21:08
> I've been doing VBA for about 2 months, I know how most stuff works.
Nov 10, 2014 20:30
Nov 10, 2014 19:38
Eh, I will just give them more reasons to hate VBA
Nov 10, 2014 19:36
IteratableSet
Nov 10, 2014 19:35
MySet
Nov 10, 2014 19:34
It's a set..... ugh...... ummmm...........
Nov 10, 2014 19:18
@RubberDuck except when it's LinqEnumerable.Select(Delegate) ;)
Nov 10, 2014 19:15
Everytime someone uses .Select in Santa kills a puppy.
Nov 10, 2014 19:13
> My code is so bad that I should fell bad about it? jk (I already know its bad)
Nov 10, 2014 19:03
that upgrade isn't coming soon enough
Nov 10, 2014 18:48
MZ-Tools: deprecated
Nov 10, 2014 18:46
the cherry on top would be a "Post on Code Review" button, with a feature that implements Simon's CR post builder, for VBA.
Nov 10, 2014 18:44
select the 3rd nested If..Else block in a procedure, right-click, "Refactor", "Extract Method", a dialog pops up; enter new method name, verify parameters (automagically detected already) and return type (also automagically detected) and procedure kind (guess what, automagically detected also), click Ok ~> done.
Nov 10, 2014 18:31
I'd really want to think of it as some "ReSharper for VBA"
Nov 10, 2014 18:23
oh wait, it's actually about encoding
Nov 10, 2014 17:01
and yeah, it's a "what's this veelookup?" user ;)
Nov 10, 2014 16:08
@enderland that Workplace.SE answer of yours was awesome... almost made me create an account there ;)
Nov 10, 2014 15:59
so that's why I started backing off questions that are too broad to start off with...
Nov 10, 2014 15:20
I'm redesigning the DeclarationSyntax, I had it wrong. I need to consider it as a "HasChildNodes" syntax - so Dim a, b, c can produce a DeclarationNode with 3 child VariableNode nodes.
Nov 9, 2014 22:09
now one too many in the Const regex.. I think I'm starting to regret using regex.
Nov 9, 2014 20:17
you need a panel
Nov 9, 2014 19:52
@RubberDuck if you make an options window/dialog, make it have tabs, or another mechanism for having "pages" - the refactorings will need options too, and perhaps the test module/method templates can be configurable too.
Nov 9, 2014 01:25
REVERT REVERT!!!
Nov 7, 2014 22:47
Nov 7, 2014 19:42
> Probably, but you're annoying now, I bet you haven't upvoted my answer as of yet, and I have work to do. Google it.
Nov 7, 2014 17:47
actually the VBE add-in, featuring an automagic unit testing functionality
Nov 6, 2014 21:37
Unfortunately Stack Overflow isn't a "here are my specs, please write this code for me" service. We can/will gladly help you when you get stuck on a specific issue though. Good luck! — retailcoder 17 secs ago
Nov 6, 2014 20:34
wow, first SO checkmark in.... ages!
Nov 6, 2014 16:47
can't imagine that in a real life situation .. like on humans haha
Nov 6, 2014 16:46
found something... circullar reference in the database
Nov 6, 2014 16:37
and good grief give it a better name........
Nov 6, 2014 16:05
closes connection and breaks calling code
Nov 6, 2014 16:04
passes an ADODB connection to Mat
Nov 6, 2014 15:56
@vba4all reboot! reboot! reboot!
Nov 6, 2014 15:53
@enderland I don't see a use for such code... even if it worked. If you have an Outlook.Application instance declared WithEvents I suppose you could.... .... ....
Nov 6, 2014 15:16
@ticker easy: uninstall damn annoying stupid plugin
Nov 6, 2014 15:07
(there's no concept of a default property in C#)
Nov 6, 2014 15:01
This is not my code it's code that was previously written, and Me is used everywhere in the programming. — marion 1 min ago
Nov 6, 2014 13:48
That's a good point. But I honestly don't mind debugging broken code when I'm getting paid to do it.
Nov 6, 2014 13:24
> Retailcoder's answer as a general approach is top notch.
Nov 5, 2014 21:07
If only there was an tag
Nov 5, 2014 20:22
If only stars resulted in rep. =)