Weekly Update 108: An easy way to help
This is a copy of our weekly newsletter for developers which you can subscribe to here.
This week, we'd like to highlight a non-human and non-avian workhorse in our community — the beloved beta server: beta.duckduckgo.com. Every Instant Answer passes through Beta before going live on DuckDuckGo so it can be tested and improved (or applauded) with real-world feedback.
Take a look at the "IA Testing" tab to see which Instant Answers need your help. Clicking on one will show its example queries and associated pull request so that you can easily try it out and leave a comment for the developer. You can even set beta.duckduckgo.com as your default search engine on mobile or desktop!
This kind of help can be done without looking at a line of code, but if you prefer to get technical here are some other contribution ideas...
- Visual Studio Cheat Sheet: Add more shortcuts
There are many keyboard shortcuts for Visual Studio — I'm sure we could squeeze a few more into this cheat sheet.
- Shorten: Triggers on just 'shorten'
Although the live version looks OK, there are some nasty errors in the backend, visible in Codio. To prevent these, the IA shouldn't trigger unless the query contains a URL.
- Cheat Sheets: Improve triggering
For example, we could update the controller so they trigger on queries like 'cheat sheet for [query]'
- Ascii to Binary: Handle sentences
Looks like some research needs to be done to see what's stopping long queries from being answered.
IAs for Adoption
The following Instant Answers are looking for a maintainer — someone to moderate suggested changes from the community as well as address any issues that pop up in the future. If you'd like to step forward, please create an issue on GitHub using the button at the bottom of each IA page.
Back to Git this week, in particular making Git beautiful! You may know there's a
git log command for showing the history of your Git activity. It's helpful but not very concise or skimmable. Fortunately, there are a few options that transform the command's output.
Let's cut to the chase — this is a far better way to use
git log --graph --oneline --decorate --all
As you can probably tell, it will show a basic graph of Git activity with summaries reduced to one line. It decorates the view with branch names and makes sure that all activity is included. Give it a try in any Git repository to see the effect.
And of course, because it's quite a long command you could save time by making an alias for it such as
gitgraph, as we discussed previously.
I hope that helps. Have a nice weekend everyone!
- The DuckDuckGo Staff