This is often a common question from students new to the program and making the correct laptop choice can allow for a higher level of productivity. However, often the best choice depends on the individual. But here are some things to think about:
The majority of the work done in the department of computer science is done using open source tools. This means Linux, but you can do Ok with an Apple or Windows machine. It is just incrementally more hassle.