Mark Miller
  • Upcoming CodeRush Webinars

    Join us every Tuesday at 12:00pm Pacific time for an in-depth dive into CodeRush with Mark Miller and Rory Becker. Here's what we have coming up:

     

    4 Jan 2011
    Navigation with CodeRush
    Mark Miller and Rory Becker reveal powerful CodeRush features that help you get to where you want to be, featuring Quick Nav, Recent Files, Bookmarks, Markers, Structural Navigation, Tab to Next Reference, Jumping to Member Overrides, Base Types, Interface Implementers, Camel Case navigation and more.

     

    11 Jan 2011
    Consume-first Declaration with CodeRush
    Mark Miller and Rory Becker show how to write consumption code first (which can improve the quality of your API), and then use CodeRush to generate and fill in the missing pieces.

     

    18 Jan 2011
    Declaring and Refactoring Properties with CodeRush
    Mark Miller and Rory Becker reveal everything you need to know about working with properties in CodeRush.

     

    25 Jan 2011
    Declaring and Refactoring Events with CodeRush
    Mark Miller and Rory Becker reveal everything you need to know about working with events in CodeRush.

     

     

  • Visual Studio’s Greatest Test Runner? Take a Look at CodeRush 10.2

    CodeRush 10.2 was released last week and the Test Runner that ships inside appears to be the greatest Test Runner available for .NET development.

    So before I show you why the CodeRush Test Runner is the best, let’s first consider the criteria by which we might judge greatness. I suggest greatness can be measured in one or more of the following:

  • Native support for your test frameworks
  • Ability to run unit tests quickly
  • A user interface prioritizing clarity over noise
  • Ability to run and debug a single test
  • If you can think of important criteria that isn’t listed above please let me know in a comment below. However, if your criteria for greatness is listed above, we have really good news for you: The CodeRush Test Runner is going to impress you.

     

    Native Test Framework Support

    The CodeRush Test Runner natively supports NUnit, MSTest, xUnit, MbUnit and Silverlight. Native support means CodeRush fully supports each framework, so new extensions and new features added to the framework can be exploited immediately without needing an update from DevExpress. No other test runner out there has built-in native support for all these testing frameworks.

     

    Performance

    The CodeRush Test Runner is the fastest test runner available for .NET. With our new multi-threaded run option, you can run tests in multiple assemblies in separate threads, resulting in a test run that is up to three times as fast as the competition.

    TestRunCompareTime3

    Like waiting? You don’t have to. CodeRush finishes your multi-assembly test run up to three times faster.

     

    Run & Debug a Single Test

    Seems like a simple request, but being able to run and debug a single test is important, especially to Silverlight developers. CodeRush is currently the only unit test framework that lets you run or debug a single test in all frameworks supported, including Silverlight. Not even Visual Studio’s built-in test runner can do this.

     

    Clarity in the User Interface

    The CodeRush Test Runner user interface delivers more clarity and less noise than any of the competing test runners, helping you see essential information quickly.

    Here’s the output of a failed test in CodeRush:

    CodeRushTestRunnerResultsLineView

    Differences between expected and actual values are highlighted automatically.

    Redundant details (e.g., “String lengths are both 28. Strings differ at index 4.”) are removed to reduce noise and enhance clarity. CodeRush is the only test runner that visually highlights differences between expected and actual results like this.

    If you right-click the debug output…

    TestRunnerMenu

    you can change the call stack display from line view to tree view, which groups methods by parenting class, like this:

    CodeRushTestRunnerResultsTreeView

    You may find this call stack view more interesting as methods are grouped by owning class.

    You can change the syntax highlight colors in the DevExpress Options dialog on the Unit Testing\Test Runner Window options page:

    OptionsUnitTesting

    Note: If you don’t see this options page, change the Level combo box from "New User” to “Advanced”.

    AdvancedLevel

     

    Compare Results with the Competition

    Compare the readability of the CodeRush Test Runner results with similar results from competing test runners.

    Competitor #1:

    TestDrivenDotNetResults2

    This competing test runner (shown above) does not ship a test result tool window for Visual Studio, so test results can only be viewed through the Output window (the CodeRush Test Runner can send output here as well if needed). Note that only the first change is shown (the letter “f” in “fox”). Subsequent differences (e.g., “dog” vs. “log”) are much harder to see and must be determined by visually scanning and comparing the results.

     

    Competitor #2:

    resharperResult2 

    This competitor makes the most important information harder to read by including redundant details (e.g., “String lengths are both 28”) in the results. Paradoxically, the essential information is rendered in black text on a gray background. Contrast for important information needs to be higher so it’s easy to see. And just like competitor #1, only the first difference is shown.

     

    Competitor #3:
    JustCodeResults2

    This competitor shows the results in a variable-width font, so the difference indicator actually points to the wrong character (e.g., the “h” in “The” – but there’s no difference there). Also, this competitor wraps the results in the window, which can make reading the call stack more challenging.

     

    Here is the result from CodeRush Test Runner again:

    CodeRushTestRunnerResultsLineView

    Which presentation do you prefer to read?

     

    In-source Test Result Icons

    CodeRush also makes it easier to work with tests in the source code, with test result icons appearing next to each test case. In the screenshot below, the first test has not run yet (TestTube), however the next two tests have run, one passing (TestPassed) and the other failing (TestFailed):

    TestMethodIcons

     

    If your hand is on the mouse, you can click the icon to bring up a test case menu, which allows you to run or debug that test.

    TestCaseMenu

     

    Test fixtures & namespaces containing unit tests have icons summarizing the run results of their contents. For example, the namespace below and the test fixture both have a red “X” (TestFailed), indicating they contain at least one test which has failed:

    TestCaseParents

     

    If you hover the mouse over one of these test fixture icons, you can see a summary of results for unit tests in this class.

    TestRunSummary

     

    If you click one of these test fixture or test namespace icons, a popup menu appears that allows you to run or debug all tests contained within.

    RunAllContainedTests

     

    If your hands are on the keyboard, don’t worry – CodeRush gives you powerful commands to run test cases without reaching for the mouse.

     

    Full Keyboard Control

    CodeRush offers full keyboard control over your test runs from inside Visual Studio. The keyboard shortcuts for running tests that ship with 10.2:

    Shortcut   Behavior
    Ctrl+T, S   Run all tests in the solution
    Ctrl+T, P   Run all tests in the active project
    Ctrl+T, F   Run all tests in the active file
    Ctrl+T, R   Run active test
    Ctrl+T, D   Debug active test
    Ctrl+T, T   Show the CodeRush Test Runner

    If you prefer the Visual Studio shortcuts, CodeRush ships an alternate collection of bindings reflecting those commands. You can change the bindings for any of these commands if you like.

     

    What’s Coming in 2011

    OK, so we just shipped 10.2, so it seems a bit crazy to tell you what’s coming in 11.1. But, you know, things get a little crazy over here at DevExpress from time to time. Our intention is to continue to maintain test runner dominance among all .NET alternatives, including Visual Studio. With that in mind, we will add support for even more testing frameworks, add more commands for controlling which test cases to run, and we’re working on improving visualization of code coverage, as well as a bigger feature we are going to save for later discussions.

  • Minority Report Meets Visual Studio

    One of the cool things I get to do here at DevExpress is explore new technologies to interface humans with machines, and more specifically, developers with their code. In the past you’ve seen us write code with chopsticks, super models, guitars, and our minds. With the release of Microsoft’s Kinect, we knew it wouldn’t be long before we’d be working on an interface for Visual Studio to let you write code with your hands, Minority Report style.

    SelectPreview

    Navigating, coding, declaring, refactoring, testing – you’ll do it all with your hands. As with everything else we build here at DevExpress, our intention is to craft a great user interface around this technology. An experience that's as efficient at writing code as using the keyboard and mouse. And we expect to make the source code available so you’ll be able to play with it yourself.

    Don't be surprised if you see this at a major developer conference in the very near future. Stay tuned.

  • Science of Great UI & Windows Phone 7

    The Windows Phone 7 release is imminent. Here are screenshots of two versions of the start page tiles:

    Originals

    When I first saw this screenshot I noticed a few variances from the guidelines presented in my Science of Great UI talk.

    One of the things I mention in my talk is that everything presented onscreen is information (everything – data, background, borders, etc.), and not all information has the same relevance. Since our eyes are attracted to great contrast, relevant information should be rendered in a higher contrast than less important information.

    When I look at the screenshots above, my eyes are primarily attracted to the large black “+” sign formed by the proximity of the top four tiles (in bright amber or blue) over the black background. The sharp edges of the borders attract my eyes. After that the bright tiles themselves attract my eyes. However the data that varies inside the tiles (presumably the important information), is rendered in a much lower contrast – white on a highly saturated light background.

    Here’s my redesign of the front page, using the guidelines from the Science of Great UI session:

    Redesign

    Here you can see I’m placing a higher emphasis on the actual data inside the tiles, and a lower emphasis on the tile background itself. Also, I’ve softened the edges of the tiles with a subtle gradient to lower their contrast against the black background. I’ve increased the size of the time – an important piece of information that is now easier to see. And since we’re showing the time, I added the day and date as well near the top. The final change was a redesign of the high-contrast button (the arrow pointing to the right).

    Here are the original (on the left) and the redesign (on the right):

    SideBySide

    What do you think?

  • CodeRush Screenshot of the Week – Rotate 90 Degrees

    You may have noticed this entry showing up in the Code menu and wondered “What does Rotate 90 Degrees do?”. This code provider is useful when you are working in a two-dimensional space, and you’ve written code to work in one dimension and you want to create similar code to work in the other dimension.

    Here I’ve taken the first method, CalculateHorizontalPosition that works on the x-axis, copied it, and now I’m converting it into a functionally similar method that works on the y-axis:

    Rotate90Degrees

    So DeltaX becomes DeltaY, _HorizontalPosition becomes _VerticalPosition, Left becomes Top, StrongRight becomes StrongBottom (hmmm… maybe I should rename that), etc..

    Seen something cool in CodeRush? Take a screenshot and send it to me (markm at the DevExpress domain). If we use your image we’ll send you one of these highly coveted CodeRush Nation t-shirts.

    CodeRush Nation t-shirt

  • CodeRush Template Deep Dive Wrap Up

    Here's the source code and an export of the templates folder Rory and I created today for the CodeRush Template Deep Dive. The session was indeed deep and intense. We hope you enjoyed it and found the information useful.

  • CodeRush Template Deep Dive - Thursday 10am PDT, 17:00 GMT

    This webinar will provide a brief overview of existing CodeRush template technology followed by a deep dive behind-the-scenes look at how CodeRush templates are built. Rory and I will show how to position the caret, select text, call templates from templates, create alternate expansions, and use fields, linked identifiers, context, dynamic lists, TextCommands, and StringProviders -- everything you need to know about exploiting the power of CodeRush templates.

    To register for this session, click here: https://www3.gotomeeting.com/register/582260542

    If you have a common code sample you would like to see us turn into a template, send it to me at markm at the DevExpress domain and we may discuss it in this session.

  • CodeRush Screenshot of the Week – Test Runner Goodness

    This week’s screenshot, submitted by CodeRush customer Casey Kramer, who likes the CodeRush Test Runner:

    Unit Test Window in Happy TDD Land_CaseyKramer

    Casey says: "I dig the unit test runner, and I do TDD whenever I can….here is a view in the “Red” stage of the Red-Green-Refactor cycle.  The graphic elements on the tests themselves are nice too."

    Congratulations, Casey. Your t-shirt is in the mail!

    Seen something cool in CodeRush? Take a screenshot and send it to me (markm at the DevExpress domain). If we use your image we’ll send you one of these highly coveted CodeRush Nation t-shirts.

    CodeRush Nation t-shirt

  • CodeRush Screenshot of the Week – Adding Contracts to Methods

    This week’s screenshot, submitted by CodeRush customer Jeff Forrett, who’s a big fan of adding method contracts quickly:

    Generating Null Exceptions in CodeRush

    Jeff says: "Saving time by generating null exceptions, I like it."

    Congratulations, Jeff. Your t-shirt is in the mail!

    Jeff’s screenshot has inspired us to reveal a sneak preview of more chunky goodness, support for .NET 4.0 contracts, coming in CodeRush 10.2:

    CodeRush_Add_Contract

    Seen something cool in CodeRush? Take a screenshot and send it to me (markm at the DevExpress domain). If we use your image we’ll send you one of these highly coveted CodeRush Nation t-shirts.

    CodeRush Nation t-shirt

  • CodeRush Screenshot of the Week

    One of the things I love about CodeRush is there’s so much depth that sometimes even I forget what we put in there. Here’s an example of a feature I discussed with the devs a while back, but didn’t need until moments ago: Create Event Trigger

    With the caret on an event declaration, press the CodeRush/Refactor! key (Ctrl+` by default).

    CreateEventTrigger

    I love it when a plan comes together. :-)

    Seen something amazing in CodeRush? Take a screenshot and send it to me (markm at the DevExpress domain). If we use your photo we’ll send you a killer CodeRush Nation t-shirt.

    CodeRush Nation t-shirt

1 2 3 4 5
6
7 8 9 10
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners