8 GB RAM is good for a laptop for basic coding, but for heavy coding purposes, 16GB or 32GB are ideal. You can also do programming on 4GB RAM, but it is suitable for only very basic programs like students do in schools. Application or software developers who need to run virtual machines, emulators, and IDEs to compile massive projects will need more RAM. So at least 16GB RAM should be installed in your laptop for better performance; otherwise, 8GB could also be chosen, but it is not ideal for professionals.