You can provide your programming codes at the end of the research paper. It normally depends on the rules of the journals in which you publish your paper. Most probably, it is upto you if you want to provide the codes. You could also just explain the important parts of your codes so that the reader may know which idea you have used. Mostly, the researchers use supplementary materials to publish such contents.
I hope this is helpful, please let me know by recommending this answer.