Resonate icon indicating copy to clipboard operation
Resonate copied to clipboard

System for Less Redundant Initialisation of Variables

Open Aarush-Acharya opened this issue 1 year ago • 16 comments

🚀 The feature

Currently many redundant variables are being initialised in different files. A system should be established which initialises variables only once and other files just use the reference of that variables initialised in that file

Take example of the Explore Controller written and initialised only once globally in the explore_controller.dart and the profile_screen.dart and explore_screen.dart just use that reference after importing explore_controller.dart in them

Get rid of all redundant initialisations and achieve the as explained desired state

Motivation, pitch

Having less to no redundant initialisations would avoid the extra use of memory required why running the app thus boosting its performance

Aarush-Acharya avatar Oct 08 '24 00:10 Aarush-Acharya

Hey, I can work on this. I have previously worked on similar stuff, please assign

M4dhav avatar Oct 08 '24 03:10 M4dhav

Hey @M4dhav, reduce as much redundancy in initializations as you can. Make sure to write clean and organised thinking at each step what code be made better to the system you design to add a better value to the project.

Aarush-Acharya avatar Oct 08 '24 04:10 Aarush-Acharya

Hey I have merged a PR please pull before working further and make sure to work on the dev branch

Aarush-Acharya avatar Oct 08 '24 12:10 Aarush-Acharya

Hey new PR merged please pull before moving forward

Aarush-Acharya avatar Oct 09 '24 19:10 Aarush-Acharya

hey!!! is the isssue open ? i would love to work on it

vanshambansal avatar Nov 09 '24 16:11 vanshambansal

@vanshambansal I am working on the issue

M4dhav avatar Nov 10 '24 02:11 M4dhav

@Aarush-Acharya can you assign this issue to me???

dikshantbhangala avatar Jan 08 '25 07:01 dikshantbhangala

@dikshantbhangala I am currently working on this issue

M4dhav avatar Jan 08 '25 10:01 M4dhav

@M4dhav are you on it?

rohhann12 avatar Jan 09 '25 12:01 rohhann12

@rohhann12 yes, I am on it

M4dhav avatar Jan 09 '25 12:01 M4dhav

@M4dhav I just think you are focusing on a lot of issues, do you mind if I take on this one?

rohhann12 avatar Jan 09 '25 16:01 rohhann12

@rohhann12 I'm currently working on this and #359 only and since both require extensively going through the codebase, the workflow for both overlaps and is similar. Moreover I've already done work on both of the issues. So i apologise but i cannot give you this issue.

M4dhav avatar Jan 09 '25 20:01 M4dhav

No problem,all the best 🙂

rohhann12 avatar Jan 09 '25 22:01 rohhann12

Hey @M4dhav, any update on this once done please raise the PR

Aarush-Acharya avatar Feb 14 '25 20:02 Aarush-Acharya

@Aarush-Acharya will raise PR soon

M4dhav avatar Feb 16 '25 06:02 M4dhav

@M4dhav have you done with it?

puneethkumar18 avatar Mar 20 '25 13:03 puneethkumar18