Chromebooks are designed for students. A fact that you need to accept. Nonetheless, choosing a Chromebook over a regular laptop (windows, macOS) is not recommended unless you are on a tight budget and know the technical stuff. Like replacing ChromeOS with any OS of your choice.
Internet connection is always a need for a Chromebook user. With regards to programming, there are online IDEs for coding apps in C++, or python online to use python interpreter and code debug code online. Locally debugging is not possible on ChromeOS. To be honest, depending on online editors for programming projects is not something professional programmers would prefer unless you are learning to code, you are good to go.
Best online Compilers you can use on a Chromebook.
This article explains in detail how to code on a Chromebook.
Why are Chromebooks better for programming?
Cheaper than regular laptops- Their cheap price is what makes these devices ideal for students in any field. At least, a 13-inch screen size is more practical than learning to code on a tiny mobile screen. A Chromebook with excellent specs comes somewhere between $300. Refurbished options reduce the price to $150. In contrast, buying a Windows or Macbook laptop will probably cost you around $1000.
Easy to use– Designed for kids, they are quite easy to use. Fast booting, easy access to the menu, and everything on it are just so simple. Online cloud-based apps are the most suitable for these devices. Included are online compilers of your choice of programming language, online Photo editors, and all google cloud-based apps. Though online Compilers may not be the best option, they are sufficient for learning a programming language and developing school projects.
Faster reset– At times when you get into problems making a Chromebook compatible with programming, some tweaks are required during that you may run into some problems. Anyways, if something goes wrong, the process of troubleshooting is easy and can be done quickly. Use the powerwash option and reset your Chromebook to default settings.
Compatible with many Linux distros– Chromebooks have breakable limits. Built on the Linux kernel, it’s possible to replace ChromeOS with Linux distros, including kali Linux, Debian, and Ubuntu and you can even use windows OS. It involves some technical work, but at least you can do it. This means that ChromeOS can be made compatible with popular IDEs in this way.
Good battery timing- Battery life is one of the reasons why Chromebooks are so popular among students. Most can run up to 10 hours easily, enabling you to code for an entire day without charging. Even the cheaper models have good battery timing as the ChromeOS itself consumes minimal power.