Learn a Second Programming Language
Learning Python as a first programming language is awesome.
- Objects with dot access to properties instead of Python dictionaries and classes. Two syntactically different implementations for basically one and the same thing (namely hash tables) in Python doesn’t seem to be very useful. Moreover, instead of the simple
- The difference between the weak and strong form of identity, denoted with “==” and “===”. The weak identity
2 == "2"for instance evaluates to
true, while the strong form
2 === "2"evaluates to
- The string
.replace()function accepts regular expressions natively, without any hocuspocus. In Python you have to import the
remodule, and use a different name,
re.sub(...)for the same function (“sub” coming from “substitute”). The
.replace()function even accepts functions, which compute the replacement string on the fly, so you can convert for instance Farhenheit into Celsius degrees with this function.
The jury is still out, which will be my favourite language in the future.
In any case, learning a second programming language, and get exposed to the fact, that similar concepts can be implemented different ways, is in itself very instructive.