Нейросетевой автокомплит пишет код
import os import sys # Count lines of code in the given directory, separated by file extension def main(directory): line_count = {} for filename in os.listdir(directory): _, ext = os.path.splitext(filename) if ext not in line_count: line_count[ext] = 0 for line in open(os.path.join(directory, filename)): line_count[ext] += 1 for ext, count in line_count.items(): print('Extension {} had {} lines'.format(ext, count)) if __name__ == '__main__': main(sys.argv[1]) line_count[ext] = line_count[ext] = 1 line_count[ext] = 0 count in line_count.items(): count in line_count.items() count in line_count.items count in line_count counts lines'.format(ext, count lines'.format(ext, lines'.format(ext, count)) lines'.format(ext, count lines.'.format(ext, count
На экране постепенно появляется программа на Python для подсчёта строк кода по расширениям файлов. Автодополнение Tabnine предлагает очевидные и всё более нелепые варианты продолжения, а программист принимает подсказки, пока код не превращается в шаблонный набор имён и конструкций. Шутка высмеивает нейросетевой автокомплит и стереотип о программистах, которые пишут повторяющиеся фабрики, менеджеры и контроллеры. EN: A Python program for counting lines of code by file extension gradually appears on screen. Tabnine autocomplete suggests obvious and increasingly silly continuations, and the programmer accepts them until the code becomes a template-like collection of names and constructs. The joke mocks neural autocomplete and the stereotype that programmers write repetitive factories, managers, and controllers.
- @ithueti / 1087 2019-07-19
- Type
- video, 0:27
- Size
- 1472×720 · 1.2 MiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added