One isn't better than the other — it all comes down to use case.
Laptops are practical because you can take them with you. However, laptops have a relatively small screen. If you work on a mobile computer, it quickly becomes annoying to constantly switch programs.