To write instructions for a computer using a programming language. She spent the weekend coding a new feature for the app.
To convert a message into a coded form. The spy had to code the message before sending it to headquarters.
To assign a code to something for classification or identification. The librarian coded the new books according to the library's system.