All computer recommendations age pretty quickly, but here are some guidelines.
- SSD, 512 GB or better. Spinning disks will really slow you down.
- At least 16 GB of RAM. Anything less will really slow you down, 32 GB if you can afford it.
- The processor is irrelevant. They’re all plenty good enough for your CS projects.
- The graphics processor is irrelevant.
With these in mind, you’ll need to choose between Apple and Windows.
For Apple, I recommend (and use) an Air – https://www.apple.com/macbook-air/
For Windows, I use ASUS. Here’s a suitable version – https://www.amazon.com/ASUS-VivoBook-i7-1165G7-Fingerprint-S533EA-DH74/dp/B08KH4P5TL/