• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do you find it confusing switching between different languages?

 
Syed Islam
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example, let's say you are a Java EE developer. You want to open up some more opportunities and build skills so you learn Ruby on Rails or PHP.

Do you find it confusing switching between these languages? Or do you get used to it after a while and become a better programmer?

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34237
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you keep using both languages, you get used to it. it takes a while to start to "think" in both languages rather than writing Java style code in another language.
 
Henry Wong
author
Marshal
Pie
Posts: 21024
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I actually have no issues with it, provided that I don't change more than once or twice a day. Once, I had to work with three similar languages (Java, C++, and C#) at the same time, for a couple a weeks. Near the end of that project, I think I was actually losing my grasp of the English language ...

Henry
 
Paul Clapham
Sheriff
Posts: 21002
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once a long time ago I was working on two projects where I had to use two different dialects of BASIC. (Yes, this was a long time ago.) One of them used LINE INPUT to input a line, and the other one used INPUT LINE. It drove me crazy.
 
Syed Islam
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting responses guys. I'd be worried about forgetting the important concepts.
 
chris webster
Bartender
Posts: 2407
32
Linux Oracle Postgres Database Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Syed Islam wrote:For example, let's say you are a Java EE developer. You want to open up some more opportunities and build skills so you learn Ruby on Rails or PHP. Do you find it confusing switching between these languages? Or do you get used to it after a while and become a better programmer?

Where the languages share concepts e.g. OO principles, then you can apply knowledge from one language to another e.g. from Java to Ruby. Where they have different concepts e.g. Ruby mixins versus Java interfaces, you'll probably remember the distinctive features of each language anyway. And learning how different languages do things will help you to understand the common underlying principles much better, even when the surface syntax differs.

As for mixing up the syntax, I find it's not too bad generally e.g. I was recently working in Java, Python and PL/SQL most days, but it was OK (apart from occasional problems with the assignment operator "=" versus ":=", and remembering to use "equals()" instead of "==" in Java). But where languages are very similar e.g. Java and Scala, I tend to have more problems. But I'm no expert in either, so maybe it's just ignorance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic