Programowanie przez przykłady

Programming by example (PBE) · id pbe · aliases: programming by example, programming by examples, PBE, programowanie przez przykłady

Synteza programu wyłącznie z par wejście–wyjście, zwykle w ograniczonym języku dziedzinowym, z rankingiem kandydatów i dopytywaniem użytkownika.

Synthesising a program solely from input–output pairs, usually in a restricted DSL, with candidate ranking and user disambiguation.

In one sentence

Komputer odgaduje regułę przekształcenia z kilku pokazanych przykładów „przed i po” i stosuje ją do reszty danych.

The computer guesses a transformation rule from a few 'before and after' examples and applies it to the rest of the data.

Problem it solves

Porządkowanie danych ręcznie wiersz po wierszu jest żmudne, a napisanie formuły lub skryptu przerasta wielu użytkowników.

Cleaning data by hand row by row is tedious, and writing a formula or script is beyond many users.

What it does

Jak praktykant, któremu pokazujesz dwa razy, jak coś przerobić, a on sam robi resztę i dopytuje, gdy przykłady są dwuznaczne.

Like a trainee you show twice how to reformat something, who then does the rest and asks when examples are ambiguous.

Everyday example

Wpisujesz w arkuszu dwa daty w nowym formacie, a reszta kolumny zmienia się sama w ten sam sposób.

You type two dates in a new format in a spreadsheet, and the rest of the column converts itself the same way.

This concerns you if you…

Sources