Live data from Hacker News

Show HN: Define – A command-line dictionary app written in Go

github.com

11–20 of 20 posts

Re: Show HN: Define – A command-line dictionary app written in Go

#11

Earlier quoted context omitted.

What do you want from it beyond this?

Obviously local dictionary support, I'd prefer to retain the privacy of the words I use and look up.

I'd personally love that too.

Unfortunately, though, its a bit complex to even try to use the local dictionary: https://github.com/Rican7/define/issues/1

Re: Show HN: Define – A command-line dictionary app written in Go

#13
post #6

Earlier quoted context omitted.

Obviously local dictionary support, I'd prefer to retain the privacy of the words I use and look up.

which dictionary datasource do you suggest? The OED costs money, and i'm not sure i've heard anything either way about the quality of 'free' versions, though there is the 1913 Websters...

Wordnet is free, and used by many offline dict apps.

Re: Show HN: Define – A command-line dictionary app written in Go

#15
post #10
post #8

Browsing through the source, this strikes me as very over-engineered to just hit a few APIs, parse the responses and print text to the command line.

Ha, that's such a classic HN comment. I appreciate you taking the time to look at the source. I used this, like I do most of my side projects, as an opportunity to learn a few things. I wanted a generic abstraction so that multiple sources could be used. Originally I didn't want or think of the need to support multiple sources, but it quickly became apparent how necessary that was when looking at the quality of free…

Sorry, not trying to be a put down. Just a lot of code smells that I see reviewing other people's go at work. Things like the abundance of interfaces, defining your own IO and error handling, use of reflection, and using third party libraries for simple tasks. I'll definitely say the code is at least clean and well documented, so kudos there.

Re: Show HN: Define – A command-line dictionary app written in Go

#16
post #10
post #8

Browsing through the source, this strikes me as very over-engineered to just hit a few APIs, parse the responses and print text to the command line.

Ha, that's such a classic HN comment. I appreciate you taking the time to look at the source. I used this, like I do most of my side projects, as an opportunity to learn a few things. I wanted a generic abstraction so that multiple sources could be used. Originally I didn't want or think of the need to support multiple sources, but it quickly became apparent how necessary that was when looking at the quality of free…

I actually thought the PanicWriter was very clever. It's a clean solution to a very commonly ignored error return value - operations on stdout/stderr.

Re: Show HN: Define – A command-line dictionary app written in Go

#19
post #16
post #10

Earlier quoted context omitted.

Ha, that's such a classic HN comment. I appreciate you taking the time to look at the source. I used this, like I do most of my side projects, as an opportunity to learn a few things. I wanted a generic abstraction so that multiple sources could be used. Originally I didn't want or think of the need to support multiple sources, but it quickly became apparent how necessary that was when looking at the quality of free…

I actually thought the PanicWriter was very clever. It's a clean solution to a very commonly ignored error return value - operations on stdout/stderr.

Thanks!

Re: Show HN: Define – A command-line dictionary app written in Go

#20

It's very pretty, but unfortunately it looks like just a wrapper for a few dictionary HTTP APIs. It won't be replacing Dictionary.app, but it does look like a a good subject for learning Go.

I use dict with "gcide" and "moby-thesaurus".

https://wiki.archlinux.org/index.php/Dictd#Hosting_Offline_D...

Post reply on HN