Nerdia.

Using stackoverflow without leaving the console

Translated into: EnglishРусский

webcomic

Suppose you want to know how to format the date in bash. Why open your browser, wait for the page to load, look for the right answer to stackoverflow, risking distraction when you can just run one command in the console:

$ howdoi format date bash

Will return:

DATE='date +%Y-%m-%d'

Or forgot how to make an http request in javascript:

$ howdoi http request in js

Will return:

var xmlHttp = new XMLHttpRequest();
xmlHttp.open('GET', theUrl, false);
xmlHttp.send(null);
return xmlHttp.responseText;

The howdoi utility is written on python and by default uses google to search for answers on stackoverflow. You can change the search engine and the source of answers (entire list of sources).

Try it yourself: https://github.com/gleitz/howdoi

Tags:

Научим проектировать и масштабировать веб‑сервисы

Это необычный курс. Nerdia — это симулятор работы в IT-компании. Узнать больше