Posts Tagged ‘Code Refactoring’

  • Top 5 time wasters for developers

    on Dec 1, 10 • in Agile Development • with 6 Comments

    Top 5 time wasters for developers

    Time’s a precious resource, so the saying goes. Don’t waste it. That’s particularly true for developers, who live in the critical path lane. And if there’s someone who knows a lot about time management, it’s Russ Sherk, an intermediate developer here at Klocwork, and the father of three young ‘uns. Russ works on our Klocwork Review and Klocwork Inspect products and handles licensing. For Russ, these are lessons learned over his six-year tenure at Klocwork. “These are things you need to think about or you won’t progress as a developer,” he says. Here’s what to

    Read More »
  • C/C++ Refactoring – Clone detection

    on Nov 12, 10 • in Code Refactoring • with 1 Comment

    C/C++ Refactoring – Clone detection

    As we have posted in the past, refactoring is a very useful technology to help developers become more productive.  I wanted to take a deeper look at how certain refactorings such as “Extract Function/Method” and “Introduce Variable” can be further enhanced with clone detection.   For the focus of this post I will concentrate just on Extract Function/Method.  Say I create some code that I know I will use frequently.  It would make more sense to create a reusable function/method.  Of course I can add a function to my file then pass the proper parameters

    Read More »
  • C/C++ Refactoring – optimize headers

    on Nov 2, 10 • in Code Refactoring • with No Comments

    C/C++ Refactoring – optimize headers

    Today I wanted to talk about new kinds of benefits you can get from Refactoring.  Everyone knows that refactoring is the process of simplifying and clarifying code without changing the program’s behavior.  The benefits include making the developer more productive by providing tools to automatically clean up the code.  Some of you may be aware of the common refactoring such as “Rename” to rename a variable, parameter or function in your code. Or Extract Function to create a function call and body based on some selected code. These are great and provide important value but

    Read More »
  • Refactoring – if it ain’t broken, don’t fix it

    on Oct 14, 10 • in Code Refactoring • with 1 Comment

    Refactoring – if it ain’t broken, don’t fix it

    I recently read a book by Peter Ritchie called “Refactoring with Microsoft Visual Studio 2010” and thought I would give my review. Great book to really help you get started with Refactoring.  Ritchie first goes into an introduction of refactoring and some of the tools available in Visual Studio 2010.  He then provides techniques to help you identify code that might need to be refactored along with examples and step by step procedures to refactor the code. The focus of this book is not necessarily with Visual Studio 2010, as many of the refactoring examples

    Read More »
  • Refactoring vs. Rewriting: Why it matters

    on Aug 31, 10 • in Code Refactoring • with 3 Comments

    Refactoring vs. Rewriting: Why it matters

    As new words and concepts diffuse in to wider use, their definitions become simpler or broaden to cover more scope.  Like the kid’s telephone game, each time the concept is passed to another developer, the information gets a little more muddled. In software development, declaration, macros, syntax and other programming constructs have to be exact or the compilers will fail.  Yet, when developers discuss concepts about programming, most of the time, that precision of language is lost. The telephone game  seems to have happened to refactoring.  I subscribe to what would be consider the  ”classic” definition of  refactoring

    Read More »
  • Refactoring vs. Refuctoring

    on Feb 2, 10 • in Code Refactoring • with 2 Comments

    Refactoring vs. Refuctoring

    Refactoring is a vital component for software developers, helping to prevent their projects from becoming unusable, and unmaintainable spaghetti code. Equally important to some developers, is the notion of refuctoring…check out this tongue in cheek look at Refactoring vs. Refuctoring. Be sure to check out the slide deck at the end. Refuctoring describes the process of making your code unmaintainable by anybody but yourself.  I love some of the examples of Refuctoring such as “Pig Latin”, “Treasure Hunt” and my personal favorite “Stating the Bleeding Obvious”: For example: //initialize a to 1 int a=1; Not

    Read More »
  • ESC Boston Day 1 Recap

    on Sep 22, 09 • in Embedded Software • with No Comments

    Good first day at ESC Boston2009. Gwyn and Alen presented a well attended talk on using source code analysis (SCA) to improve developer productivity. Key takeaways from the presentation: How SCA will impact your development velocity Quick history on SCA – talked about lint and the general evolution of the technology How the information generated by static code analysis can be used to solve a variety of development challenge Demo of where SCA fits from a code review, refactoring and bug detection standpoint Interesting change from past presentations where most people now understand the basics

    Read More »
Scroll to top