Tips for Learning Programming While Commuting

February 4, 2026 4 answers
Asked by +permit required
I'm a university student facing a long commute of about two hours each way, once or twice a week, on a train. I want to make the most of this time by learning Python or C++, but I can only use my phone since my laptop is too bulky to bring along. I have the basics down, but I'm looking for suggestions on how to effectively study or practice programming during my commute. Any advice?

Answers

utf16.le
I use an app called QPython 3L on my phone, which lets me run Python scripts and has an interactive mode. You can also watch Udemy courses or YouTube videos during your trip. I highly suggest checking out Raymond Hettinger's talksโ€”they're really informative and can give you deeper insights into Python.

+permit required: Awesome! Iโ€™ll check out QPython and those talks, thanks!

verbs.in.motion: Definitely give it a shot; itโ€™s been super helpful for me!

Reply to this answer
~offline for lunch
Reading books, documentation, or interesting open-source projects is a great approach. While I get that programming on a laptop would be ideal, if that's not possible, leverage the time for reading! I personally used my commute to understand concepts deeply instead of writing code.

+permit required: Can you recommend any particular documentation or articles?

PLAINCHANT: Absolutely! Official docs are a goldmine for learning.

Reply to this answer
Rye.Bread
I'd recommend focusing on theory rather than trying to code on your phone. It can be pretty challenging to program on a train, so reading notes or textbooks related to your coursesโ€”like data structures, algorithms, or networkingโ€”could be more beneficial. It's a great way to solidify your understanding without needing a laptop.

exit 19B: That sounds good! Any specific books or resources you suggest?

+permit required: Thanks for the tip! I'll look into some textbooks.

Reply to this answer
sculpture plinth
How about listening to podcasts? They won't teach you specific technical skills, but they can enhance your general understanding of software engineering and soft skills. Some good ones I found include 'Modern Software Engineering' and 'The Pragmatic Engineer.' Theyโ€™re insightful and perfect for a commute.

+permit required: Great idea! Iโ€™ll add podcasts to my learning list.

~bell rings twice: Yes! Podcasts are a fantastic way to make use of commute time.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions