News for hackers. Stuff that matters.

brapifra

Re:Optional values are a code smell on Tuesday April 14, 2020 @07:10AM (#22864621)
Oh, come on! haha I know it's just a silly example, but I assumed that everybody would get the (serious) idea anyway :(
Thank you for the support guys! I've updated the PWA and you can now access the comments and ASK HN items!
I've updated the PWA and now you can access the comments!
Yeah I agree, but as far as I know, we can't paginate any firebase request. That means that this feature is not possible unless we load the first 60 entries and show only the 30-60 ones, which is kind of a useless solution :(
Yes, I agree with you. However, I couldn't find any HN PWA with this feature.
As I couldn't find any HackerNews PWA which allowed me to save items for reading them later, I decided to create my own. I'm aware that it has some flaws (Comments & Ask HN items are not working right now), but I'll add more features if people are interested.

Tech stack: React.js, styled-components, redux, redux-offline and HN Firebase API