News for hackers. Stuff that matters.
Re:Show HN: HN Deck – An alternative way to browse Hacker News by gitgud on Thursday June 25, 2020 @07:34AM (#23639419)
Interesting idea, but I think the comments count; "x comments" should probably be clickable as anyone from HN will instinctively click that, not the "discuss" text.
Re:Show HN: HN Deck – An alternative way to browse Hacker News by sagunsh on Thursday June 25, 2020 @01:36PM (#23643222)
Got your point, fixed it. Let me know if it seems correct now.
Re:Show HN: HN Deck – An alternative way to browse Hacker News by gitgud on Thursday June 25, 2020 @08:07PM (#23647284)
Perfect!
Re:Show HN: HN Deck – An alternative way to browse Hacker News by Inversechi on Thursday June 25, 2020 @08:00AM (#23639625)
I did exactly this.
Re:Show HN: HN Deck – An alternative way to browse Hacker News by airstrike on Thursday June 25, 2020 @10:56AM (#23641474)
In fact, to perfectly mimic the HN experience, it should be

  plural = "s" if comments > 1 else ""
  "%d comment%s" % (comments, plural) if comments > 0 else "Discuss"
It feels really ugly doing this in Python, but oh well

I also miss seeing the clickable domain next to the submission's title rather than all the way down at the bottom

Re:Show HN: HN Deck – An alternative way to browse Hacker News by the_pwner224 on Thursday June 25, 2020 @11:54AM (#23642078)
"Discuss" if comments == 0 else (f"{comments} comment" + "s"*(comments > 1))
Re:Show HN: HN Deck – An alternative way to browse Hacker News by airstrike on Thursday June 25, 2020 @12:37PM (#23642550)
Sure, I can put it all in one line too:

  "%d comment%s" % (comments, "s" if comments > 1 else "") if comments > 0 else "Discuss"