Go to Post And to think, a lot of students are planning parties and celebrations on their last day of school and you guys are recycling trash. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-09-2013, 20:24
MikeyL MikeyL is offline
Registered User
FRC #4326
 
Join Date: Sep 2013
Location: ISRAEL
Posts: 3
MikeyL is an unknown quantity at this point
Post Some questions about programming with c++

Hey,

we are new-old team in israel (practiced before 2 years and the past year we didn't have enough money to practice and now we are going to practice this year). so now we are working with our programmers and we need to choose, what are the disadvantage's in programming with c++. (basically the reasons why we don't need to choose c++ and what are the problems with c++ compare to labview)

and what is better labview, java or c++? i guess that my question will be similar to the old known question, what is better iOS or Android, but still, want to hear you guys with the experience.

thank you all!
  #2   Spotlight this post!  
Unread 23-09-2013, 20:33
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Some questions about programming with c++

Here's an older post about the different programming languages.

http://www.chiefdelphi.com/forums/sh...ad.php?t=84890
  #3   Spotlight this post!  
Unread 23-09-2013, 20:40
MikeyL MikeyL is offline
Registered User
FRC #4326
 
Join Date: Sep 2013
Location: ISRAEL
Posts: 3
MikeyL is an unknown quantity at this point
Re: Some questions about programming with c++

Hey, saw it but there are still no answers about my specific questions.
  #4   Spotlight this post!  
Unread 23-09-2013, 21:54
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Some questions about programming with c++

The simple answer is that no one language is better than the other. They are all perfectly capable of accomplishing all tasks needed for FRC robots. The most important thing is experience. If you or any students have any experience with any languages, go with that one.

If you're starting with very little programming experience, I'd recommend LabVIEW over C++. LabVIEW is a graphical language, and for simple robot programs its pretty easy.

If you are opposed to a graphical programming language, and you have no experience in either Java or C++, I'd recommend Java, as the language is a little bit simpler and doesn't have much memory management stuff.

If you have any specific questions, feel free to ask.
  #5   Spotlight this post!  
Unread 24-09-2013, 07:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Some questions about programming with c++

I'd encourage you to browse the other thread, but since it is pretty long and pretty old, I'll answer your questions here as well.

C++ is a very powerful language, the most powerful of the three. C, the language it is based on was intended for writing operating systems. Over the years, features have been added to C to update it to C++ and keep it somewhat modern.

C++ has a very compact and permissive syntax. It allows for raw pointers, reinterpret-casts, goto, and plenty of low level features. Because the language is so diverse, the error messages can be hard to understand. Even harder is identifying the runtime errors. C++ is the only language of the three that allows you to corrupt memory and crash the computer. It is powerful, not easy.

If you have a mentor who knows C++ and is prepared to spend time helping you learn it, this is a great opportunity to use a powerful tool. If not, and you still want to learn it, I'd encourage you to begin as soon as possible, read books, practice sample projects, read through other team's code and attempt edits, etc.

Plenty teams use all three languages. The real questions is ... which is right for you? Discuss this with a teacher or mentor. The forum responses may be interesting, but when your robot doesn't work, it is the teacher or mentor who will help you, not the forum.

Greg McKaskle
  #6   Spotlight this post!  
Unread 25-09-2013, 09:00
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
Re: Some questions about programming with c++

Hey Mikey,

as I have my mentioned in the lecture yesterday, I asked myself the same question one year ago.

We eventually decided to go with C++. Our students learned and managed to become fairly proficient with it. I can say we achieved very nice results.
  #7   Spotlight this post!  
Unread 25-09-2013, 09:23
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Some questions about programming with c++

No programming language is better. That being said, I would choose Labview. Last year, we made the decision to program in C++. It ended up not working out for us in the end because we had one programmer who knew it and fooled around the whole time *cough* Jason *coughcough* and one who did know it, but not as well as the other guy. During competitions, it was harder to change around all the code and it became harder to diagnose problems (due to the lack of experience).

We are doing this year in Labview because it is simple. I took home the robot for a week and had the thing moving and mostly working (except for anything that required PIDs and shooting). It seemed to be very easy and if all else fails, we can write the code in a few days for the robot. We want to do more advanced stuff (like hooking up arduinos using i2c) and doing better, offboard vision processing. We hope to get the Labview Finite State Machine from NI, but they haven't responded yet :/
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi