This week I implemented achievement tracking, which involved handling achievements by type (COUNT, STREAK, ETC.) and began work on refactoring some of our code for use in a social-media-like display feed on the landing page. This involved a bit of work on my part, just because I was unsure how to go about creating the feed without constant queries. I ended up using an approach recommended by geniuses on the internet that involved converting our already existing achievements to "activities" and denoting them by time, for example, ACHIEVEMENT_EARNED and displaying all activities on the landing page. Next week, I will continue this path and convert the events and friend relationships in a similar manner, while also working to make sure the design is consistent across multiple activities.
My biggest challenge was mentioned in the previous answer.. Trying to convert our existing database for use in a feed. Luckily, because social media apps are so common, this basically just involved me looking for examples I could use as a "template" for the desired behavior and adapting it to our use.
No comments:
Post a Comment