Coding on the pi
1. Write code on my laptop and copy it over to the pi
touch codefile.js
scp codefilejs raspberrypi.local~/
touch codefile.js
scp codefilejs raspberrypi.local~/
touch codefile.js
scp codefilejs raspberrypi.local~/
touch codefile.js
scp codefilejs raspberrypi.local~/
This works fine for normal projects that don't utilize and of the raspberry pi features. But eventually you'll probably want to utilize pi specific code, and you won't be able to run that on your computer
2. Write code in a pi docker container
Use docker to have the same environment on my machine and the pi
This is the same as before but you can actually run and compile code as if it were on the pi then copy it over. either the code or just run docker on your pi
3. code directly on the pi
In headless mode, you can either use vim on your pi directly, or use an editor that supports remote coding over ssh
My preference is to use VSCode's remote-ssh extention. It's hands down the best way to experiment and play around with the pi if you're already a VSCode user.