Uprząż obiektowa

Object-oriented harness evolution · id ooharness · aliases: OO-Harness, object-oriented harness, hierarchical harness evolution

Ewolucja hierarchii klas uprzęży przez dziedziczenie, z routingiem na podstawie śladów wykonania.

Evolution of a harness class hierarchy via inheritance, with routing from execution traces.

In one sentence

Hierarchia programów wokół asystenta: wspólne części dziedziczą, a specjalistyczne podmieniają tylko to, czego potrzebują.

A hierarchy of programs around an assistant: shared parts are inherited, and specialists override only what they need.

Problem it solves

Jedna uprąż działa dobrze na części zadań, ale psuje inne, a osobne uprzęże dublują kod.

One harness works well on some tasks but breaks others, and separate harnesses duplicate code.

What it does

Jak rodzina klas w programie: dziecko bierze kod rodzica i zmienia tylko wybrane metody.

Like a family of classes in code: a child takes the parent's code and changes only selected methods.

Everyday example

Asystent do faktur i do raportów ma wspólną pętlę, ale inny sposób sprawdzania danych; system wybiera odpowiednią wersję na podstawie próby.

An assistant for invoices and for reports shares the loop but differs in data checks; the system picks the right version from a trial.

This concerns you if you…

Sources