4 ms·
Speaking several languages, shifting mindset helps. There's a sort of caricature, a mixture of traits in the mind that helps to shift to Nordic versus central o
by wvh 4y ago
Speaking several languages, shifting mindset helps. There's a sort of caricature, a mixture of traits in the mind that helps to shift to Nordic versus central or southern European languages, where imagining the demeanour and cultural sensibilities of a particular country or group of speakers helps to shift character and hence language. For instance, by imagining a stereotypical French person, it helps me to switch language without too much effort, and funnily enough, my behavioural attitudes and view on life experience a very slight shift too by switching language; you tend to see things a bit differently.
While it might not help with something as specific as semicolons, the same shift helps to focus on typical solutions in the problem space for that particular language. I'm more likely to install dependencies and use classes in Python than Go, or try functional programming paradigms in Javascript. Switching archetypes somehow helps to switch paradigms and dialects of even similar languages.
Where it goes wrong though is to be thrown as a consultant in several different projects at a time, where different code bases use different styles – such as semicolon versus no-semicolon Javascript. I've come to rely on tooling for those things, which is likely the best solution anyway when a project has a lot of different or external contributors. In the grand scheme of things, and especially these days, it's OK to rely on the computer telling you it didn't quite get something because you missed a semicolon, and to focus on the higher logic as a human being.