Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+16 votes

Did your team implement the favorite cards feature, how did you go about it? How did you save and retrieve the favorite cards?

asked in CSC305 Fall 2023 by (1 point)

8 Answers

+9 votes

When a card is selected as a favorite it writes its short code to a file, removes it if unfavorited. When the program boots up and the card objects are added, if the card is listed in the file, its favoriteStatus Boolean is set to true, otherwise it’s false by default. Works well enough, haven’t had any problems.

answered by (1 point)
+8 votes

My group's favorited cards get added to a file

answered by (1 point)
+7 votes

Mine was magnifying the image. the code was not too complex and did not need much refactoring and looked clean when i run it

answered by (1 point)
+7 votes

saving the favorite cards within the app directory, add loading it first in the window before any other card with a little heart on the bottom right

answered by (1 point)
+6 votes

The Card Pops Out when clicked on!

answered by (1 point)
+6 votes

We saved it in a file that we read and write to.

answered by (1 point)
+6 votes

We saved it to a csv file and each card object stored whether or not it is a favorite card.

answered by (1 point)
0 votes

I think every thing

answered by (1 point)
...