result-first programming

noun
UK /rɪˈzʌlt fɜːst ˈprəʊɡræmɪŋ/
US /rɪˈzʌlt fɜːrst ˈproʊɡræmɪŋ/

A way of making computer programs where you start by saying what the answer should be.

With result-first programming, she wrote the expected output before writing any code.


OTHER MEANINGS

2. A teaching method where students see the wanted result before learning the steps.

The teacher used result-first programming to show kids the finished game first.

3. A design habit of deciding the final output before building the parts.

Result-first programming helped the team agree on the report format early.

4. A coding style that checks the desired answer before writing the logic.

He practiced result-first programming by writing the test, then the function.