@lhzxbsdr · Apr 3, 08:55 PM
Learning programming from scratch, a comparative analysis of Python, JavaScript, and Rust paths
I want to learn programming, but I don't know which language to start with. I'm quite interested in both Web development and AI. Any recommendations? Preferably something that can cover both directions.
For beginners who want to do both Web and AI, Python is the best starting point:
Recommended path: Spend 2-3 weeks learning Python basics → Make a small Web project with Flask → Move into the ML direction with PyTorch.
Why recommend Python over JavaScript? Can't JS also do AI? And isn't JS stronger for Web development?
Good question! Let's do a detailed comparison:
AI/ML aspect (Python wins hands down):
Web aspect (JS is stronger):
Overall: If your goal is "to do both," Python lets you go further in AI, and is sufficient for Web. Conversely, JS will hit many ceilings when doing AI.
Alright, I've decided to start with Python. So which ML framework should I choose? I've heard of both PyTorch and TensorFlow, what's the difference?
The landscape in 2026 is very clear:
PyTorch (Recommended):
TensorFlow:
Conclusion: Beginners should choose PyTorch, no doubt. Unless you're going to work at Google.
Okay, then I'll learn PyTorch. Any recommended resources for getting started? Is there a more systematic learning path?
Recommended PyTorch learning path:
Phase 1 (1-2 weeks) — Basics:
Phase 2 (2-3 weeks) — Core:
Phase 3 (2-4 weeks) — Advanced:
Recommended book: Deep Learning with PyTorch (free PDF)
After learning the basics, any good hands-on project recommendations? I want to make something I can showcase.
A few hands-on projects suitable for beginners, from easy to hard:
Beginner level:
Intermediate level:
4. Style Transfer — Turn photos into Van Gogh/Monet style
5. Text Summarization — Use Transformer for news summarization
6. Chatbot — Fine-tune a small language model
Showcase advice: After finishing, deploy to Hugging Face Spaces or Streamlit Cloud, write a README, and put it on GitHub. It's much more convincing for job hunting than just writing a resume.
Then let's start with image classification! What dataset is better? Is CIFAR-10 enough?
CIFAR-10 is a good choice! Beginner path:
Step 1: CIFAR-10 Basics
Step 2: Upgrade the dataset
Step 3: Pre-trained models
From CIFAR-10 to transfer learning, it takes about 2-3 weeks to complete, enough to write a decent project introduction.