FHIR Chat · understanding code base · android

Stream: android

Topic: understanding code base


view this post on Zulip anubhav (Mar 25 2021 at 23:03):

I am trying to contribute to the android-fhir but unable to understand the codebase. I have basic knowledge but I need to update it. Any suggestions.

view this post on Zulip Ayush Shrivastava (Mar 26 2021 at 09:57):

The codebase is pretty well documented. I'll tell you my way of destructuring and reading the codebase: First start with the application, see on which activity/fragment you are standing, read what functions/features that screen supports(in our case it is questionnaire and answers to 'em, cql functionalities), click 'em one by one and each of 'em will have at least a single mention of 'em in the corresponding activity/fragment's kotlin file, read that file, Ctrl + click to navigate to the definition of a particular function/feature you want to understand, you can definitely add log statements with custom tags and run the application to understand the call sequence, i.e., which method is called when and you can also print the variables in logs to get a more clear understanding.

You can follow this in general, it has rarely disappointed me. If you're stuck at some point, you can definitely search it over the internet or read docs or youtube(whatever you prefer) there a bunch of good resources to learn stuff.

view this post on Zulip anubhav (Mar 26 2021 at 10:05):

thank you @Ayush Shrivastava for your insights I will surely follow them.


Last updated: Apr 12 2022 at 19:14 UTC