Skip to content

Exam Code 22/02/19 - Pietro Balzan (mat. 1139703)#148

Open
BalzPit wants to merge 1 commit intoPrandiniUniPD:codereviewfrom
BalzPit:final_code
Open

Exam Code 22/02/19 - Pietro Balzan (mat. 1139703)#148
BalzPit wants to merge 1 commit intoPrandiniUniPD:codereviewfrom
BalzPit:final_code

Conversation

@BalzPit
Copy link
Copy Markdown
Collaborator

@BalzPit BalzPit commented Feb 18, 2019

Dear professor
Here is what i think is the best code I wrote during this semester. It mainly affects the Front-end implementation of activities and UI elements, with a focus on user experience and the "usability" of the app.

  • Brightness recognition is used in ResultActivity to determine under/over exposure of the taken picture.

  • AllergensListAdapter, AllergensSearchFragment, UserAllergensFragment and MainAllergensActivity let the user select a personal list of allergens that are looked for in the list of recognized ingredients in ResultActivity.

  • BaseActivity is new for this latest sprint and is used to improve (decrease) code redundancy for the implementation of a bottomBarMenu that lets the user switch between activities: in the previous iterations of this menu, that i will not post here, (there was also a version of this functionality of switching between activities made with an "hamburger menu" (side scrolling revealed the menu)), every activity had to re-define a bottombar and all the cases for each button in the menu. Now all activities that have a bottombarmenu only have to extend BaseActivity and implement two of its methods.

I'd like to use this opportunity to thank my group's members that lent me a hand in various circumstances, with the special mention of @frankplus , who helped the most by a long margin.

The checklist I used for my code reviews were mainly the java Style Guide document that (if i remember correctly) group 4 made and the index of 'Effective java' by Joshua Bloch.

Here i put 6 classes to review. 
Brightness recognition is used in ResultActivity to determine under/over exposure.
AllergensListAdapter, AllergensSearchFragment, UserAllergensFragment and MainAllergensActivity let the user select a personal list of allergens that are looked for in the list of recognized ingredients in ResultActivity.
BaseActivity is used to improve (decrease) code redundancy for the implementation of a bottomBarMenu that lets the user switch between activities: in the previous iterations (that i will not post here, there also was a version of an hamburgermenu that did the same thing as the bottombarmenu), every activity had to re-define a bottombar and all the cases for each button in the menu. Now an activity that should have a bottombarmenu only has to extend BaseActivity and implement two of its methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant