Telerik blogs
  • Productivity

    When Should You Profile Your Application?

    At Raleigh Code Camp, I had an unfortunately familiar conversation with another developer. Me: How often do you profile your application for performance or memory issues? Him: I don’t. Me: Really? How do you know if your app has any issues? Him: Because I write good code.
    December 06, 2012
  • Productivity

    The Changing Visuals of the Visual Aid

    Visual Studio received a facelift in 2012, and our tools changed to match its look and feel. It wasn't without some controversy, but there’s nearly universal agreement that the new theming support is cool. If you haven’t experienced it yet, install the Visual Studio 2012 Color Theme Editor. It’s from Microsoft, and it’s free. We modified JustCode well before the official release of Visual Studio 2012 to support the new theming capabilities. Since you use Visual Studio for your development environment, we want to ensure our tools integrate for a seamless experience.
    December 05, 2012
  • Productivity

    Future Mocking

    Mocking legacy code is hard. Especially, if it’s a third-party library and you have little control over how it’s written. It is even more difficult to unit test a type that is instantiated internally. One can argue that it should be refactored to accept dependencies via constructor injection.  However, constraints such as time, budget, experience with the offending code, or even access to the source often prevent paying down the technical debt accumulated in these legacy systems.   This post will show you how to mock an external library (concept) where it calls a login service class that cannot be sent...
    November 21, 2012
  • Productivity

    JustCode Code Style Settings for C#, Part 1

    In our previous blog posts on the JustCode Formatter, we’ve showed you what it is and how it works. If you haven’t read those yet, please see our post on "Introducing the Formatter" and "Comparing the JustCode Formatter to the Visual Studio Formatter". One of our design goals was to make sure the Formatter is much more customizable than Visual Studio’s, and in this post, we will show you how easy it is to customize it. What are the Code Style settings? When you utilize JustCode’s refactorings, expand code templates, format and/or clean your code, or make other changes to your code, JustCode...
    November 16, 2012
  • Productivity Testing

    Automocking with JustMock

    Auto mocking containers are designed to reduce the friction of keeping unit test beds in sync with the code being tested as systems are updated and evolve over time. Background The Dependency Inversion Principle states: High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details should depend upon abstractions. As more developers follow this and the rest of Robert Martin’s SOLID principles, methods and classes become much smaller with dependent objects injected into them, typically through constructor injection. As additional dependencies are needed (or the code is refactored to improve dependency isolation), the signatures of...
    November 07, 2012