Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3737

Best practices: Refactoring?

$
0
0

Hi Folks:

Xojo Blog: " Clean Coding in Xojo: Best Practices for Writing Maintainable Code" states:
" 7. Refactor Regularly
Refactoring is the process of improving the structure of your code without changing its functionality. Regular refactoring helps keep your code clean and manageable. It involves restructuring your code to improve its internal structure while maintaining its external behavior."

The other “Best Practices” are excellent, but, Ouch! this “practice” guarantees employment for software developers as we track down obscure, but well-intentioned, bugs in routines that have been running problem-free for years.
For instance,

  1. in Xojo, adding or removing a local variable that has the same name as a global variable can produce nasty side-effects that are hard to trace…

  2. Code that has never been flagged by anti-virus checkers is suddenly reported as false-positive malware. Of course, we report the false-positive to the anti-virus publishers but some are slow to fix the problem or never do. Meanwhile we have to use trial-and-error to discover the suspected code segment. What a waste of time and effort.

  3. Surely you can add your own similar experience …

6 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 3737

Trending Articles