Thread: Java or C++
View Single Post
  #11   Spotlight this post!  
Unread 21-05-2013, 09:48
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,815
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Java or C++

Quote:
Originally Posted by Dragonslayerend View Post
I've done some research and found out that C++ has the ability to pass over variables and Java doesn't. I'm not sure but just asking around to see what everyone knows.
I'm not entirely sure what you mean by this, but I think you're talking about "Pass by reference" versus "Pass by value". In short, Pass by reference means that changes made to a variable passed into a function are reflected in the calling function, while Pass by value means they aren't. Java, by default, uses Pass by Reference (although you can easily make a new object to make it work the same as Pass by Value), while C++ uses Pass by value (Although with pointers C++ can do Pass by Reference). In short, both languages are capable of supporting the same behavior, they just take different approaches to it.

The three programming languages are supposed to be equally capable for FRC, and from what I've seen teams do in the different languages, I'd say they are. The choice really comes down to what you'll have the most support with. If you have mentors that know one of the languages, go with that. If your school teaches one of the languages, go with that. If you have local support from other teams for one of the languages, go with that.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA