ad-hoccode

noun
UK /ˌæd ˈhɒk kəʊd/
US /ˌæd ˈhɑːk koʊd/

Code written quickly to fix one problem, without planning.

The team used ad-hoccode to patch the bug before the demo.


OTHER MEANINGS

2. A small script written on the spot for a single task.

She wrote some ad-hoccode to rename all the files.

3. Programming done without a plan or design.

The project failed because it was built on ad-hoccode.

4. Temporary code meant to be replaced later.

That ad-hoccode in the login page still needs a proper rewrite.