How difficult is it to move from Python to a statically typed language?
Asked by
spline curvature
I'm new to programming and am deciding whether Python is a good first language. For those who started with Python and later learned languages such as Java, C, or Go, how challenging was the transitionโespecially when dealing with static types, pointers, memory management, and other concepts Python abstracts away? Does starting with a statically typed language provide a meaningful advantage, or is Python still a solid choice for learning the fundamentals?
Answers
Starting with Python made moving to Java fairly painless for me. Static types mostly meant that my editor could catch certain mistakes before the program ran, rather than letting me discover them at runtime. I wouldnโt worry too much about choosing the perfect first languageโpick one that lets you build things you find interesting and focus on learning the underlying programming concepts.
Reply to this answer
There isnโt one universally correct first language. JavaScript, TypeScript, Java, Swift, and Kotlin can all teach you useful fundamentals. Once you learn a few languages, the same broad ideas keep appearing and the main differences are syntax, type systems, and specific behavior. You donโt need to master one language before trying another; learning several can help you recognize the concepts they share.
Reply to this answer
Python is a good beginner language because it lets you concentrate on fundamentals without immediately dealing with memory management and complicated syntax. When I moved from Python to C, pointers, strings as character arrays, and the different integer types were the hardest parts because Python had hidden most of that. Even so, the concepts I learned in Python transferred well and made the adjustment easier.
Reply to this answer
Add your answer
Answers are reviewed before publication.
spline curvature: How long did you practice Python before switching to Java? Did your Python experience make Java easier to learn?