Loading, please wait ...
Open its course - Software Construction

Short Questions for Refactoring

  • ×

    Hidden Questions!

    Some short questions are not visible. Usually teachers hides their visibility if they are few in number. Subject Expert recommends them to have more than 70+ questions against the topic and make them public.

  • 1 Write and briefly explain the guidelines for refactoring.

    Answer
    we must consider following guidelines during refactoring our code: 

    1. Refactor when you add a routine: 
      • When you add a routine, check whether related routines are well organized. If not, refactor them. 
    2. Refactor when you add a class: 
      • Adding a class often brings issues with existing code to the fore. 
      • Use this time as an opportunity to refactor related to the class you’re adding.
    3. Refactor when you fix a defect:
      • Use the understanding you gain from fixing a bug to improve other code that might be prone to similar defects.


Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert