DevK2S/Study_Partner

Put all the intents in one class

Closed this issue · 4 comments

This would reduce the recurring code.
Kindly allow me to do this as a part of GSSOC'21.

Hello, can you explain in detail what exactly is the issue and how would you go about it solving it?

Hello, can you explain in detail what exactly is the issue and how would you go about it solving it?

Yea sure.
Take any activity. Whenever the activity is switched, we use the intent class.
And the same statement is repeated again and again, whenever we need to switch the activity.

Hence, to reduce this recurring code, it's better to create a class for the same and just call the specific method for that particular class. It would help in managing the code in a better way as all the intents would lie in just one class and hence reduce the recurring code.

Hello, @iamvs-2002 although what you are suggesting might increase the performance a little bit, it reduces code readability. Right now we don't want that. Feel free to contribute to any other issue or create one if you find it necessary.

Hello, @iamvs-2002 although what you are suggesting might increase the performance a little bit, it reduces code readability. Right now we don't want that. Feel free to contribute to any other issue or create one if you find it necessary.

Ohh okay. I'll check out some other issue then. Thanks.