Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scholarship Screen Implementation Version 0.5 #39

Merged
merged 29 commits into from
Sep 15, 2020

Conversation

palmer-matthew
Copy link
Contributor

No description provided.

lib/models/from_postgres/scholarship/scholarship.dart Outdated Show resolved Hide resolved
lib/models/from_postgres/scholarship/scholarship.dart Outdated Show resolved Hide resolved
lib/models/scholarship_list.dart Outdated Show resolved Hide resolved
lib/models/from_postgres/scholarship/scholarship.dart Outdated Show resolved Hide resolved
lib/models/from_postgres/scholarship/scholarship.dart Outdated Show resolved Hide resolved
List<String> secondary;
String result = "";
try {
if(content.contains(":")){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at Heroku and this method, I can't help but think you are giving yourself unnecessary extra parsing work 💀 💀 .

image
image
image

^ The highlighted text is common to the entries in the database or can be made common which is kind of a waste, I think. You know already what these sections will start off with so you can just add the relevant information (the unhighlighted text) to them in the app. These aren't the only fields this applies to though; any of the fields that would have bullets under them.

Also, I did say to make it so that you have a list for each field that you can iterate through. In Django, a list for a field can be achieved like this. In this class, the respective fields would be of type List<String>. I'm sure it will shorten your code significantly and make it easier to understand and maintain.

List<String> secondary;

try {
if(content.contains(":")){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the parsing here again.

@richtwin567 richtwin567 merged commit a5ba657 into UWICompSociety:master Sep 15, 2020
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.

None yet

2 participants