goal-first programming
nounUK /ɡəʊl fɜːst ˈprəʊɡræmɪŋ/
US /ɡoʊl fɜrst ˈproʊɡræmɪŋ/
Goal-first programming is a way of writing computer code where you decide what you want to happen before you write the steps.
In goal-first programming, she wrote down what the game should do before typing any code.
OTHER MEANINGS
2. A teaching method where learners state the goal of a program first, then build the code to reach it.
The teacher used goal-first programming to help students plan their robot's path.
3. A design approach in which requirements and desired results guide the coding process.
The team chose goal-first programming so every feature matched the user's needs.
4. A coding habit of writing the expected result as a test before writing the actual code.
With goal-first programming, he wrote the test first and then made it pass.