goal-driven programming

noun
UK /ɡəʊl ˈdrɪvən ˈprəʊɡræmɪŋ/
US /ɡoʊl ˈdrɪvən ˈproʊɡræmɪŋ/

Goal-driven programming is a way of writing computer programs where you start with the result you want and then work out the steps to get there.

In goal-driven programming, the robot first decides it wants to reach the door, then figures out how to walk there.


OTHER MEANINGS

2. A style of coding where the program keeps trying different actions until it reaches a chosen target.

The game uses goal-driven programming so the character keeps searching until it finds the treasure.

3. A method in AI where a system picks actions based on the goal it wants to achieve.

The smart vacuum uses goal-driven programming to clean every room before returning to its charger.

4. Writing software by first describing the desired end result and then building the code to reach it.

Our teacher showed us goal-driven programming by writing the finish line first and then the path to it.