I feel like it depends on the situation. It's much better to do gaming on a desktop since the price/computational power ratio is quite good. When it comes to laptops, they are best suited for homework and tasks such as software engineering. Needless to say a desktop computer can do both, so perhaps the answer is a desktop computer. The only thing you run into with a desktop is location lock -- you can't transport it around easily.