Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
English.docx
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
14.4 Кб
Скачать

Conclusion

You now have enough information to call yourself a Python programmer. You know how to write a simple Python script, how to translate simple scripts from Bash and call them with Python, and, finally, how to find documentation about new modules and attributes.

At this point, you are now a programmer capable of writing simple functions in both

Bash and Python. Programmers learn by doing, though, so at this point we highly rec-

ommend that you change the system calls in these two Bash and Python programs and make them your own.

And now you see the power of code reuse and how simple it really is. You could write some pretty sophisticated Python modules and reuse them over and over again to create new tools.

Many of the benefits that we see in Python stem from the central philosophy of Python by Tim Peters.

Beautiful is better than ugly.

Explicit is better than implicit.

Simple is better than complex.

Complex is better than complicated.

Flat is better than nested.

Sparse is better than dense.

Readability counts.

Special cases aren't special enough to break the rules.

Although practicality beats purity.

Errors should never pass silently.

Unless explicitly silenced.

In the face of ambiguity, refuse the temptation to guess.

There should be one-- and preferably only one --obvious way to do it.

Although that way may not be obvious at first unless you're Dutch.

Now is better than never.

Although never is often better than *right* now.

If the implementation is hard to explain, it's a bad idea.

If the implementation is easy to explain, it may be a good idea.

Namespaces are one honking great idea – let's do more of those!

Dictationary

Scripting language – язык программирования, выполнение операторов которого происходит последовательно, без необходимости предварительной сборки всей программы

Perl, Bash – разновидности скриптовых языков программирования

Sysadmin – системный администратор

Indentation – отступы в коде программы для обеспечения читаемости

Logfile – файл для логгирования

OOP (object-oriented programming) – объектно-ориентированное программирование

Namespace – пространство имён

Function – фрагмент программного кода, выполняющий определённые, предусмотренные заранее операции

Class – фрагмент програмного кода, определяющий правила для создания и использования объектов, также способный содержать функции и данные

Object – элемент программного кода, позволяющий получить доступ к содержащейся в нём информации или функциям

Library – библиотека классов

Regular expression – регулярные выражения -- набор специальных синтаксических конструкций и правил для них, не являющиеся частью конкретного языка программирования и служащие, главным образом, для поиска элементов в строке

Socket – сокет

Thread – поток выполнения

XML – специальный формат документов, применяющийся чаще всего для хранения настроечной информации

Parser – утилита, выполняющая операции над строкой

Unix, Linux – разновидности операционных систем

Execute – запускать программу в рабочем режиме

Shell – среда выполнения

Terminal – системная консоль в ОС Unix, Linux

ls – часть синтаксиса по вызову Bash-скрипта

Subprocess – процесс, запущенный внутри другого процесса

System call – вызов системной функции

Ubuntu, Solaris – линуксоподобные ОС

Encapsulate – инкапсулировать – хранить данные с обеспечением их защиты

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]