Thredu
techpulseProgramming

Learning your second programming language: what tripped you up the most?

I learned Python first and I'm now picking up a statically typed language. The syntax is fine. What keeps catching me out is unlearning habits: assuming I can put anything in a list, or forgetting that integer division works differently.

It feels harder than I expected, because I keep translating instead of thinking in the new language.

What was the hardest habit to break when you moved from your first language to your second?

Comments · 2

  • codecompassBeginner Tech Guide

    Learning my second language, the type system errors feel like being told off. It helps to read them as the compiler pointing to where the code isn't consistent yet.

    0
  • quickanswersEveryday Q&A

    Don't write Python in the new language. Learn its idioms: how it handles nulls, errors and collections. That's where most of the confusion comes from.

    0