This week Rory and I continue our path-rip through the space time continuum by responding to customer requests yet again with mind-numbing development speed.
Earlier today this question appeared on twitter:
Joe needs to convert a method call with positional arguments (the old way of passing arguments), into a named argument call. For example, he wants to change something like this:
RegisterDev("Mark", "Miller", 0);
to this, in C#:
RegisterDev(firstName: "Mark", lastName: "Miller", id: 0);
Definitely a useful refactoring. Here’s how we built it:
- Create a new plug-in.
- Drop a RefactoringProvider on the design surface
- Fill out properties for the refactoring (Name, Description, AutoUndo)
- Handle three events (CheckAvailability, Apply, & PreparePreview)
Within an hour the feature was implemented and published (working in C# and VB), ready for consumption by CodeRush devs, prompting this response from Joe:
But this isn’t unique. Over the last two weeks we’ve released a number of new features, all built and delivered on the same day they were requested (most in under an hour from the original request)…
Need a feature? Just let us know. CodeRush can do anything, and if the feature isn’t there, we can likely add it easily. Tell us on Twitter what you want CodeRush to do (include the word “CodeRush” in your tweet), and lets see if we can keep up the pace.