If the laptop has decent specs and a quality keyboard, then yes, even a machine with 4 hours of maximum usage will do just fine. However, as for programming students, better look for other options.