Imagine user complains about some bug in UI and sends you a screenshot.
- Your application has UI language different from English.
- This part of application was developed before you joined your team.
- You need to fix the bug
How I usually do: either guess how related classes might have been named in english or ask someone who knows this application. Both ways can give some general directions but doesn't point me close enough. Either the wrong guessing or Thr answer is usually short 'look among XXXX classes.'
Second step is a search for the string containing the text from the screen. After element's initialization code is located standard 'Find Ussages' allows to navigate to ViewModels or EventHandlers.
The more levels of indirection exist the more difficult it is to move in the reverse direction.
Are there any best practices to lessen the pain of such tasks?
Aucun commentaire:
Enregistrer un commentaire