Live data from Hacker News

Show HN: I developed a native macOS Hacker News client

github.com

21–30 of 86 posts

Re: Show HN: I developed a native macOS Hacker News client

#22

This raises a question I've always wondered: How many of you prefer to run a native app rather than the web app? Personally I hate installing things on my desktop if there is a website because it is just another thing I have to manage. (Even more so because I have multiple Windows, Mac and Linux boxes I'm bouncing around between during the day and rather just have sync'd Firefox bookmarks than have to install s/w on…

I don't think I've ever picked the web interface over native as long as the native app is "really native"

Re: Show HN: I developed a native macOS Hacker News client

#23

This raises a question I've always wondered: How many of you prefer to run a native app rather than the web app? Personally I hate installing things on my desktop if there is a website because it is just another thing I have to manage. (Even more so because I have multiple Windows, Mac and Linux boxes I'm bouncing around between during the day and rather just have sync'd Firefox bookmarks than have to install s/w on…

I use materialistic(on fdroid and gplay) because it gives me a phone home screen widget of top hn stories.

https://f-droid.org/is/packages/io.github.hidroh.materialist...

Re: Show HN: I developed a native macOS Hacker News client

#24
post #22

This raises a question I've always wondered: How many of you prefer to run a native app rather than the web app? Personally I hate installing things on my desktop if there is a website because it is just another thing I have to manage. (Even more so because I have multiple Windows, Mac and Linux boxes I'm bouncing around between during the day and rather just have sync'd Firefox bookmarks than have to install s/w on…

I don't think I've ever picked the web interface over native as long as the native app is "really native"

If it's an app I want open all the time I'd rather have a dedicated native app for it.

Re: Show HN: I developed a native macOS Hacker News client

#25
post #5

Thanks for sharing this. It looks really great and pretty minimal which I personally love. The main thing I'm missing from this would be read/unread indicators on stories. A roadmap of planned features would be nice or some tickets that other people could help with. I'm not sure how much time you plan on spending this, but I'd personally probably be willing to buy a version of this if it was able to do notifications…

For me, right now, this is a hobby project — until now, the feature roadmap was basically the feature that I have in mind.

I’m more than happy to get feature requests though — read/unread indication and favorites are something that I would definitely try implementing. Notifications are a bit harder because it would require polling HN — I’ll be thinking on it.

Re: Show HN: I developed a native macOS Hacker News client

#26

This raises a question I've always wondered: How many of you prefer to run a native app rather than the web app? Personally I hate installing things on my desktop if there is a website because it is just another thing I have to manage. (Even more so because I have multiple Windows, Mac and Linux boxes I'm bouncing around between during the day and rather just have sync'd Firefox bookmarks than have to install s/w on…

In the absence of a USENET news server comp.bbs.hn, a TUI RSS reader would be the next best thing for me, and viewing the site in a Web browser after that.

(I appreciate that many will enjoy a native app, and I applaud the effort, but for me personally content sites are harder to keep track of if each has its own app.)

Re: Show HN: I developed a native macOS Hacker News client

#27
Here is some code for a simple chrome ext for HN to show votes/created date/bio inline (just stick it in a chrome ext)

  function hackernews() {
    if (document.location.toString().indexOf('news.ycombinator') === -1) return;
    document.querySelector('#hnmain td').style = 'background-color: #55b6f2;';
    var i = 0;
    function render(user, html) {
      const div = document.createElement('div');
      let style = 'cursor: text;overflow-y: scroll; height: 39px;position: absolute;border: 1px dotted #828282;width: 250px;margin-left: 250px;margin-top: -34px;background-color: #f6f6ef;';
      div.innerHTML = html;
      const date = div.querySelectorAll('tr')[5].querySelectorAll('td')[1].innerHTML.split(', ')[1];
      const karma = div.querySelectorAll('tr')[6].querySelectorAll('td')[1].innerHTML;
      const about = div.querySelectorAll('tr')[7].querySelectorAll('td')[1].innerHTML;
      if (about.length = document.querySelectorAll('.default .comhead').length) return;
      const user = document.querySelectorAll('.default .comhead')[i++];
      if (!user) return next();
      const username = user.querySelector('a').href;
      if (username.indexOf('soheil') !== -1) return next();
      
      const html = localStorage.getItem(username);
      if (html) {
        render(user, html);
        next();
        return;
      }
      fetch(username)
      .then(res => res.text())
      .then(res => {
        localStorage.setItem(username, res);
        render(user, res);
        setTimeout(next, 3000);
      });
    }
    next();
  }

Re: Show HN: I developed a native macOS Hacker News client

#28
Looks good but needs text zoom (cmd =/+ and cmd -).

I'd also consider the sidebar include 'My Posts' and 'My Comments'. Maybe it has those, but I couldn't tell, as I turned off outgoing network access to firebase before logging in just to be on the safe side. Any reason you're connecting to firebase rather than storing preferences locally? I'm worried about my HN credentials being stolen.

Re: Show HN: I developed a native macOS Hacker News client

#29
post #11

Does the Algolia hackernews api ( the specific API this client uses ) still require you to query in a tree like fashion, every comment item id if you want an entire page of comments? Its extremely inefficient, to the point where I have a better time curling the HN web page and piping it through python beautifulsoup Regarding a native app vs the using the HN website. The HN website I think is pretty ideal for the type…

> Does the Algolia hackernews api ( the specific API this client uses ) still require you to query in a tree like fashion, every comment item id if you want an entire page of comments?

I’m using two different APIs — the inefficient API that requires you querying in a tree fashion is the HN official API[0], but there’s also the Algolia API[1], which is much faster and gives a much sensible data shape. I also do actually fetch the HN website as well — it’s needed for account/voting features. With these sources, it’s much faster than a usual client that gets it’s data from the official API.

> The HN website I think is pretty ideal for the type of content its displaying, a native app doesn't give you much over having a HN tab open.

I guess it’s a bit of difference on how one uses HN? I didn’t like HN tabs being mixed with other work—related tabs. I felt that having an app would be a perfect solution to me, but YMMV I guess.

> The only benefit I see from a native app is the ability to save articles and comments for offline reading

I guess that’s one more feature that I should add to my backlog :)

[0]: https://github.com/HackerNews/API

[1]: https://hn.algolia.com/api

Re: Show HN: I developed a native macOS Hacker News client

#30

This raises a question I've always wondered: How many of you prefer to run a native app rather than the web app? Personally I hate installing things on my desktop if there is a website because it is just another thing I have to manage. (Even more so because I have multiple Windows, Mac and Linux boxes I'm bouncing around between during the day and rather just have sync'd Firefox bookmarks than have to install s/w on…

On a phone, I can see apps being easier to use (saved credentials and ideally the UX is streamlined for touchscreen use). But if I have a keyboard and mouse, I strongly prefer a web app for stuff that requires minimal interaction from me because it's sandboxed and accessible anywhere.

A native app should be snappier and maybe offline capable, but I'm not expecting to use Hacker News offline.

Post reply on HN