Вы, наверное, соскучились за полгода по бурундучьему нытью....

Вы, наверное, соскучились за полгода по бурундучьему нытью. Добрый вечер.

Во-первых, readline.

Библиотечка такая, чтобы делать простенькие интерактивные програмки. Вроде терминала, похожего на bash. Можно сделать tab-дополнение, историю команд и прочие полезные вещи. Как и следовало ожидать, есть её интерфейс под модные нынче языки программирования. Например, для питона: https://docs.python.org/3.5/library/readline.html

Пишем, код, запускаем, всё хорошо, но tab-дополнение не работает. Попытки что-нибудь вывести в stderr из обработчика или кинуть исключение ничего не делают. Как же так?

Ответ можно найти, например, в другой доке (https://pymotw.com/2/readline/): «If your completer function raises an exception, it is ignored silently and readline assumes there are no matching completions.»

Ну не кретины ли? Мало того что исключения игнорируют (действительно, какое дело до каких-то там ошибок или аварий), так ещё и в основной документации об этом ни слова.

Во вторых, android studio.

Нет, я не собираюсь писать приложения под мобилки (по крайней мере, в ближайшее время). Просто ради интереса поставил себе студию, благо в gentoo она в репозитории. Запустил. Создал проект. Не написал ни строчки кода. Закрыл.

Студия (в дополнение к установленной части) заняла гигабайт. И я не перепутал приставку. Один грёбаный гигабайт, 1113855694 байт (если верить du). Какого чорта? Что она у себя там хранит? Библиотеку мировой литературы? Или, может быть, фильм? Quake III, насколько я помню, весит меньше.

А потом ещё кто-то спрашивает, зачем мне в ноутбуке второй диск на 2ТБ. Вот потому и нужен, что всякие долбанутые студии отжирают по гигабайту.
You probably missed the chipmunks nagging for six months. Good evening.

The first is readline.

The library is such as to make simple interactive programs. Like a terminal similar to bash. You can make a tab-addition, the history of commands and other useful things. As expected, there is its interface for programming languages ​​that are now fashionable. For example, for python: https://docs.python.org/3.5/library/readline.html

We write, code, run, everything is fine, but the tab add-on does not work. Attempts to output something to stderr from a handler or throw an exception do nothing. How so?

The answer can be found, for example, in another dock (https://pymotw.com/2/readline/): "If your completer function raises an exception, it is ignored silently and readline assumes there are no matching completions."

Well, aren't they nerds? Not only are the exceptions ignored (indeed, what matters are there any errors or crashes), so there is not a word about this in the main documentation.

Secondly, android studio.

No, I'm not going to write applications for mobile phones (at least in the near future). Just for the sake of interest, I set myself a studio, since in gentoo it is in the repository. I launched it. Created a project. I have not written a single line of code. Closed

The studio (in addition to the installed part) took up a gigabyte. And I did not confuse the prefix. One fucking gigabyte, 1113855694 bytes (according to du). What the hell? What does she keep there? The library of world literature? Or maybe a movie? Quake III, as I recall, weighs less.

And then someone else asks why I need a second 2TB disk in my laptop. That's why it is needed because all sorts of fucking studios are being eaten by gigabytes.
У записи 7 лайков,
0 репостов.
Эту запись оставил(а) на своей стене Олег Давыдов

Понравилось следующим людям