Week 9 Day 2 – Bonus features and bug squashing
Ayyy!! So I’m pretty much done with my basic MVPs, which includes implementing images, and the ability to like, follow and comment. There are a couple other features that I would like to add, one of which I have already finished as of last night!
Last night I was able to implement an infinite scroll/lazy loading feature that allows you to load only portions of the features at a time. Once you get to the bottom of the page, it would add fetch more photos to append onto the current list. This was a really cool feature, and I felt incredibly accomplished because I managed to reason through how to do this without much guidance.
Some other features I would like to implement before Friday include a couple modals for pictures, logging out and maybe even uploading pictures. I don’t know how long these features would take to implement, I’m hoping no longer than a day and a half. But there IS a feature I’m even more excited to try and implement, and that’s image filters. I want to make a feature that allows you to hover over an image, and apply filter presets to the image. At the basic level, I could do this via CSS probably easily. BUT, I was hoping to implement this through a method that was recommended to me called ImageMagick. Not too sure how this works just yet, I believe it applies filters directly onto the image and not just superficially with CSS. This method would require a bit more work, but I’m doing the readings on it. This is currently my main focus.
I cleaned up A LOT of the bugs yesterday, but there was one bug in particular that I didn’t feel like I satisfactorily solved. For the life of me, I couldn’t figure out what was going on, but in my jbuilder views, when I call an association and assign it to a property through jbuilder, the values of that association were assigned in reverse order. To be more specific, the list of comments would be displayed from most recent at the top, rather than most recent at the bottom. The fix was to throw a #reverse
on the jbuilder association. It bugs me, no pun intended, though that I don’t understand why the association called resulted in the values being displayed in the reverse order, but no google or stack overflow search has been forthcoming. I’ll keep looking though!
That’s pretty much it for today! I’m going to keep reading the ImageMagicks docs and see if I can implement it today. Talk to you guys tomorrow!