Skip to content

Instantly share code, notes, and snippets.

@yesnik
Last active January 25, 2021 18:11
Show Gist options
  • Save yesnik/dece79fc6da58dd025755a8d29165961 to your computer and use it in GitHub Desktop.
Save yesnik/dece79fc6da58dd025755a8d29165961 to your computer and use it in GitHub Desktop.
How to modify logic of software

How to modify logic of software

You have a client with a website. Client wants to add new feature or fix some bug.

Initial analysis

  • Listen carefully what client needs

  • Describe current logic that we need to modify. If logic is complex draw scheme on the sheet of paper. Don't describe details yet, forget about table names, class' names on this step.

  • Describe new logic. Also you could draw a scheme.

  • Ensure that you and client understand the final state of software.

Technical analysis

  • Find places in code that will be modified by you during feature implementation.

  • Draw detailed scheme of current logic. Don't hesitate to use names of classes, methods, variables there, draw connections between classes.

  • Look at the scheme and try to split it into independent blocks. This will help you to create independent code modules.

Coding

  • Implement feature in code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment