@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.
> 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.
@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.
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 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
Rubberduck 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...
Rubberduck 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...
Rubberduck 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...
#VBA "reorder parameters" #refactoring implementation is up for review on @StackCodeReview! #csharp #oss #codereview
http://codereview.stackexchange.com/q/91221/23788
Here'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 ...
@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..
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
In 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...
I 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...
@RubberDuck Actually, AdjustSignatures handles multiple signatures when applicable, such as getters/setters/letters combinations, as well as event handlers.
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
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!
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)
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
@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!
VBA 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'