Go to Post Very few things are impossible. A great many things are impractical, but not impossible. - Wetzel [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 02-02-2011, 13:39
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: C++ vs Java

There is quite a bit of discussion on this topic already in the forums. So next time search before posting.

We use JAVA because:
1. students learn Java in AP courses
2. garbage collection & great error handling!
3. Netbeans is a friendly IDE for first time coders

If you want more JAVA sample code , take a look at our code base from 2010 or if your brave, our 2011 development code.

http://code.google.com/p/discobots/downloads/list
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
  #2   Spotlight this post!  
Unread 02-02-2011, 17:07
ianonavy ianonavy is offline
Programming Mentor/Alumnus
AKA: Ian Adam Naval
FRC #3120 (RoboKnights)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Sherman Oaks
Posts: 32
ianonavy is an unknown quantity at this point
Re: C++ vs Java

Quote:
Originally Posted by omalleyj View Post
(I typically recommend that teams start before the season getting familiar with the programming environment. You have a bit of catching up and will be better served by putting in time than listening to the endless discussion that C++ vs. Java usually provokes )
I looked through the WPILibJ Java documentation last summer so I'm a bit familiar with it, but I'll probably still be coming back here for help.

Quote:
Originally Posted by ZonChau View Post
I prefer Java due to the officially used IDE being NetBeans. I prefer being able to use the opensource IDE available to many Operating Systems than Windriver for C++.
Yeah, having my code portable among different operating systems is nice. I can code on my laptop (both the Windows and Linux paritions) and my school's iMacs.

Quote:
Originally Posted by lynca View Post
There is quite a bit of discussion on this topic already in the forums. So next time search before posting.

We use JAVA because:
1. students learn Java in AP courses
2. garbage collection & great error handling!
3. Netbeans is a friendly IDE for first time coders

If you want more JAVA sample code , take a look at our code base from 2010 or if your brave, our 2011 development code.

http://code.google.com/p/discobots/downloads/list
I did do a quick search but obviously I didn't look thoroughly enough. I also agree with all three of your reasons. Thanks for the link! I'm sure it will be very helpful.


Thank you to everyone for responding. I've decided not to make things more complicated than they need to be and use Java. Good luck to everyone and see some of you at the competition. (:
  #3   Spotlight this post!  
Unread 02-02-2011, 17:58
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: C++ vs Java

For FRC-specific purposes it does not matter whether you use Java or C++, but I would recommend C++ as it will help you develop a knowledge of programming that applies to a larger variety of languages.
  #4   Spotlight this post!  
Unread 02-02-2011, 23:19
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: C++ vs Java

I recommend C++. The libraries are more mature by a year and the syntax is similiar enough to java that you will pick it up in no time. Post any questions and I'm sure somebody will help.

Brian
__________________
Brian K
Team 1225 Robotics Mentor
  #5   Spotlight this post!  
Unread 03-02-2011, 19:15
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: C++ vs Java

Main reasons why I chose Java:
1.) Simplicity
2.) I am the only one that knows C++
3.) NetBeans is Open Source (Why do I care? Because I run Linux, so I can code on my machine at home)
4.) AP Comp Sci teaches Java

Cons:
1.) No inline Assembly
2.) No pointers
3.) Too high level for my liking
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #6   Spotlight this post!  
Unread 03-02-2011, 19:25
Chris27's Avatar
Chris27 Chris27 is offline
Registered User
AKA: Chris Freeman
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Mountain View
Posts: 196
Chris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant future
Re: C++ vs Java

Quote:
Originally Posted by davidthefat View Post
Main reasons why I chose Java:
Cons:
1.) No inline Assembly
Can you show me some FRC code you have written where it was necessary to inline assembly?
  #7   Spotlight this post!  
Unread 03-02-2011, 19:28
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: C++ vs Java

Quote:
Originally Posted by Chris27 View Post
Can you show me some FRC code you have written where it was necessary to inline assembly?
Nope
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
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:47.

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