DEV Community


Discussion on: What I realised after learning Python, TypeScript and Kotlin

codemouse92 profile image
Jason C. McDonald

Very true. But be forewarned, the similarities are often only syntax-deep. Identical-looking things in Python, Kotlin, and TypeScript, (such as arrays/lists, imports, logging, classes, objects, dictionaries) do not necessarily behave the same under the hood, in ways that can have a profound effect on the code's stability, maintainability, performance, and security. In fact, I can guarantee that Python and Typescript are scarcely comparable in terms of identical-looking behavior!

With any language, assume nothing. "False cognates" are everywhere.

Or, to put that another way, abstractions are there to save us typing, not to save us thinking. Know your abstractions.