imperativecode

noun
UK /ɪmˈper.ə.tɪv kəʊd/
US /ɪmˈper.ə.tɪv koʊd/

Code that tells a computer exactly what steps to do, one by one.

She wrote imperative code that told the robot to walk forward, turn, and stop.


OTHER MEANINGS

2. A set of rules that must be followed without question.

The school's imperative code required everyone to wear a badge.

3. A style of coding where you change the program's state with commands.

He switched from imperative code to a declarative style to make it simpler.

4. Instructions written in a way that sounds like an urgent order.

The captain's imperative code crackled over the radio: 'Move now!'