![]() |
Advantages of each programming language
Hi everyone!
Although it is only 3 days until our first regional, we have yet to solidify what programing language will be used. I was wondering what the advantages of each would be, and availability of teams who would be able to help at the regional. Also any other tips to help our rookie team out would also be great! :] |
Re: Advantages of each programming language
Use whatever language you're most comfortable with. What did you program with while you were developing and testing your robot?
|
Re: Advantages of each programming language
Quote:
Quote:
EDIT: If you need specific real-time help, PM me |
Re: Advantages of each programming language
Java and C++ compile and deploy much faster than LabVIEW, or at least that was the case last year. We use C++, and it takes 5-10 seconds to compile and 3 to deploy our code, which really cuts down on programming development time. LabVIEW takes several minutes. That said, LabVIEW is far easier for beginners at programming.
|
Re: Advantages of each programming language
Quote:
Disclaimer: That being said, I use C++ for the robot and this year quite a bit of Java for the dashboard and won't be switching anytime soon. |
Re: Advantages of each programming language
Code:
if(youKnowAnyLanguage) { |
Re: Advantages of each programming language
Quote:
|
Re: Advantages of each programming language
Quote:
|
Re: Advantages of each programming language
Quote:
|
Re: Advantages of each programming language
Quote:
cierra_shawe, what programming languages are you or those on your team familiar with? If the answer is "none," I am leaning towards recommending LabVIEW. Not because it is necessarily easier, but because its control structures seem more intuitive than the syntax that comes with Java or C++. If the answer is "some," then I would go with Java, because its WPIlib implementation seems simpler than the C++ implementation, which makes it easier to learn. But I could be wrong about that, since my team uses Java. At least you will not need to be concerned about memory management if you are unfamiliar with it, unless you are doing computer vision, which I do not recommend if you are testing your robot for the first time in a few days! |
Re: Advantages of each programming language
Quote:
Quote:
|
Re: Advantages of each programming language
I would argue that starting from scratch, it is easier for a student programmer to use Java (for FRC) than C++ (for FRC).
I cannot count the number of times I have been asked to help a team with C++ and seen problems like the following... Code:
Victor myVictor(1);Code:
Victor *myVictor = new Victor(1);Code:
Victor *myVictor;Code:
void SomeFunction(Victor victor)Code:
void SomeFunction(Victor victor) |
Re: Advantages of each programming language
Quote:
|
Re: Advantages of each programming language
<Obligatory Python pitch>
|
Re: Advantages of each programming language
These advantages and disadvantages will differ according to your experience.
Java Advantages
C++ Advantages
LabVIEW Advantages
Python Advantages
Honestly, write your programs in the language with which you are most comfortable. If you're caught between two or more, figure out which is the best for what you're trying to do. LabVIEW is much better for vision tracking than say Java, but if you need Java's higher level features, go for that. |
| All times are GMT -5. The time now is 01:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi