Re:Polyglot programming and the benefits of mastering severa...
by emeraldd on Thursday October 21, 2021 @11:31AM
(#28945899)
I've found the opposite to be true. Knowing how I would solve a problem in more than one language has made a number of things easier over the years. Heck, if you look at Symfony's (a php framework) Validation API https://symfony.com/doc/current/validation.html they are implementing a Java JSR ( https://jcp.org/en/jsr/detail?id=303 ) using PHP constructs.
Ideas can cross pollinate between languages, but not everything translates well.
* When you know more languages and you are faced with problems whose solutions are trivial to express in one of them, but you are forced to use another it is extremely frustrating.
* Trying to use a particular style/paradigm from a language in another one will raise a lot of eyebrows followed by "this is terrible code".
So to me, learning more languages just leads to frustration. I can't use them at work. I can't even use their style.