3 ms·
I've never had trouble keeping multiple programming languages straight in my head. To me, its really just a matter of "context switching" much in the same way t
by hackinthebochs 14y ago
I've never had trouble keeping multiple programming languages straight in my head. To me, its really just a matter of "context switching" much in the same way that a multilingual person can switch between various languages on the spot. If the context calls for a specific language, then its that language that naturally arises.
It goes even further than that. When I code I instinctively take on the "mannerisms" of the surrounding code. Brace style, indentation, alignment, etc. This is all part of the same mechanism that helps one use the appropriate idioms in the right context.
- georgemcbay 14y agoThe more similar the languages (which he addresses in the article), the more small issues I run into. The biggest issue I've be running into lately is that I do a lot of Go code in my free time but mostly C#/C/C++/Java for job stuff and I find myself pretty frequently not adding semi-colons to the end of lines even when not in Go. Generally no big deal, the compiler picks this up easily enough, but in some languages (eg. Javascript) this could be an issue due to optional semicolons but with sometimes unexpected side-effects. Though when forced to write JavaScript I religiously JSLint for my own sanity, so I'd still be okay there.