Posts Tagged ‘C/C++’

  • C/C++ Refactoring – Clone detection

    on Nov 12, 10 • by Alen Zukich • with 1 Comment

    clone

    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 »
  • Top 5 C/C++ quality bugs

    on Jul 14, 09 • by Alen Zukich • with 1 Comment

    A recent article on the top five causes of poor software quality and top 5 non-technical mistakes inspired me to also provide a top five on software quality bugs.  Here is my top 5 list of bugs (with some simple examples) that I see time and time again looking at customer code: 1.    Null Pointer dereference This is far and beyond the most common issue that I see time and time again. void npd_gen_must() { int *p = 0; // NULL is assigned. *p = 1;  // pointer is dereferenced } Now this example is

    Read More »
Scroll to top