EDIT:
maybe 4 cores are enough for development using non-compiled languages, and if you don't use Chrome and Electron apps, and not running several VMs and docker containers.
Some programming languages like Julia and Erlang/Elixir will happily use all the cores available on your laptop to speed up calculations, run builds, tests and other development tasks.