6 ms·
Go-hn: command line client for Hacker News, written in Go
- lionyo 11y agoHere's one in Python, for those who want choices: https://github.com/donnemartin/haxor-news https://github.com/donnemartin/haxor-news
- maxaf 11y agoHow's this better than links? http://www.aboutlinux.info/2007/02/links2-cross-platform-console-based-web.html?m=1 http://www.aboutlinux.info/2007/02/links2-cross-platform-con...
- rukittenme 11y agoBetter is really subjective. I like experimenting with new software and learning about the Go ecosystem. This is better than links - for me. Who knows maybe someday links will be rewritten in Go :~)
- Gracana 11y agoI'm going to give it a shot, hopefully it does text wrap nicely and provides a proper hierarchical view. I tried HN in all the text browsers, and those are two problems that are common to all of them. I've stuck with my preferred choice, elinks, and it does pretty well otherwise. [edit] Oh, phantomjs... I don't want to install that on this machine. :|
- maxaf 11y agoHierarchical view is a no-go, alas. Some people might view this as a feature :)
- akerro 11y agoWhy should I care in what language it's written in?
- bovermyer 11y agoTo put that question on its head: why shouldn't you care in what language it's written?
- HemanHeartYou 11y agobecause users of software, should be language agnostic
- maxaf 11y ago+1. Yet every time I use a piece of software written in a dynamically typed language, I keep asking myself: how could this be safe???
- scrollaway 11y agoMost interested parties here are not merely users but developers. Potential contributors. Or if anything, merely curious about the inner workings. That represents a large percentage, if not the overwhelming majority of users of HN. I'm surprised this question still comes up. It's a bit like when people ask on /r/gamedev showcases "why should I care what engine your game is built in?".
- fit2rule 11y agoMaybe you want to learn some Go, and you're reading HN to hear about new and interesting Go projects. Maybe someone will gain a great understanding of things by reading the sources for this project, and end up doing something else creatively inspired by it. Maybe its just a fun new way to read HN, at first, but later you think ("mm.. wish it had blah feature"), and .. being a super-shart Go developer, you remember 'ah, its in Go, I can fix this..'
- yomism 11y agoThe only way that it affects you it's because Go programs can be compiled to a static binary. So from the final user perspective you just download it and put the executable in your path. Contrast with Python, Node, Ruby... apps where you have to install via Pip, NPM, Gems. But the real answer it's that Go is in the top of the hype curve right now (I say this as a Go fan myself).
- andrewmogg 11y agohere informing a united base Ethical site for hire hackers <a href="http://hackerslist.co/">Hire http://hackerslist.co/">Hire a Professional Hacker</a> & Register <a href="http://hackerslist.co/">hackerslist.co</a> http://hackerslist.co/">hackerslist.co</a> for infected site and database.
- Gonzih 11y agoWhy does it need phantomjs? There is an official HN api that can be used. If it uses phantomjs why not just use lynx/links/links2?
- crypticlizard 11y agoHe did it as a quick hack, I imagine he just didn't notice the API
- Gonzih 11y agoBut there are dozens of quick hacks like that on the internet. I have 4 similar things on my github account. Nothing special about them. I never though there might be any need to put that on a HN.
- reimertz 11y agoNothing special about them. I never though there might be any need to put that on a HN. Apparently they are special enough to get more upvotes than other stuff. Maybe you should reconsider submitting one of your hacks. :)
- mbreese 11y agoMy (quick) reading of the API doesn't mention upvotes (since it's a data-dump to Firebase). This go-hn hack includes logging in and upvoting, which is a nice feature.
- crypticlizard 11y agoI like that this is posted on Gitlab, even if GL interface needs work when I compare it to Github, at least it's not GH (in an era where all open-s0urce code is on GH). Diversity is inspiring to me!
- r3bl 11y agoI wouldn't say it needs work. It's just... different. We got so used to GitHub that we kind of expect other projects to just copy its design. GitLab is not doing that and I respect it. Who cares if I need one more click to see the files in the repo?
- sytse 11y agoThanks! We're open to improvements but the default view will probably stay the same. If you want you can change the default project view http://i.imgur.com/mlkPInw.png http://i.imgur.com/mlkPInw.png
- deleted 11y ago[deleted]
- guilhermepontes 11y agohn-cli?
- vinceyuan 11y agoWow, Golang again! Let me show my web client for hacker news http://hackernewsroom.com http://hackernewsroom.com built with Golang too.
- jiiam 11y agoI like better the universal command line client, i.e. w3m. Pity that some websites are so strict about js.
- spurgu 11y agoI actually started browsing HN using Links the other day. Neither Links nor w3m really work with the comments though (they aren't properly nested). Plus points to w3m for having mouse support. I don't see go-hn supporting comments either though I haven't tried it yet).