For your AI and Cognitive Computer Science degree, I'd recommend macOS as your primary operating system. Here's my reasoning:
Why macOS works best for your situation:
macOS provides the ideal balance between Unix-based development capabilities and user-friendly daily computing. Since you'll be working with Linux servers for LLM deployment, having a Unix-based local environment means your development workflow, terminal commands, and scripting will translate seamlessly. You won't encounter the path differences, permission issues, or compatibility problems that often arise when developing on Windows for Linux deployment.
The programming languages you mentioned (Python, R, Java, C++) all have excellent native support on macOS. Python development is particularly smooth since macOS comes with Python pre-installed and package managers like Homebrew make dependency management straightforward. R and RStudio run excellently on macOS, and Java development is well-supported.
Android Studio runs very well on macOS and is actually Google's preferred development platform for many of their internal teams. You'll have access to all major IDEs including IntelliJ IDEA, PyCharm, Visual Studio Code, and Xcode if you ever want to explore iOS development.
Why not Windows:
While Windows has improved significantly with WSL2 (Windows Subsystem for Linux), you'd still be adding an extra layer of complexity. When you're SSH-ing into Linux servers, debugging deployment issues, or working with containerized applications, the Windows-to-Linux context switching can create friction in your workflow.
The practical advantage:
Your development environment will mirror your deployment environment more closely, making debugging and deployment smoother. When you write shell scripts, work with file permissions, or handle path structures locally, they'll behave the same way on your target Linux servers.
For a degree focused on AI and cognitive computing where you'll frequently be bridging local development with Linux-based deployment, macOS provides the most seamless experience.