Go to Post Best. Team. Update. Ever. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-24-2011, 08:39 PM
2733Programming 2733Programming is offline
Registered User
FRC #2733 (Pigmice)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Portland, OR
Posts: 6
2733Programming is an unknown quantity at this point
How many lines of code do you have total?

Just curious what other teams using Java are at. We have about ~1800 at the moment.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-24-2011, 08:41 PM
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: How many lines of code do you have total?

Wow!!!!
we have about 140! Why is your code so complex?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-24-2011, 08:44 PM
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: How many lines of code do you have total?

Quote:
Originally Posted by Garten Haeska View Post
Wow!!!!
we have about 140! Why is your code so complex?
oh btw we havent included our autonomy and deployment yet!
Reply With Quote
  #4   Spotlight this post!  
Unread 02-24-2011, 08:56 PM
2733Programming 2733Programming is offline
Registered User
FRC #2733 (Pigmice)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Portland, OR
Posts: 6
2733Programming is an unknown quantity at this point
Re: How many lines of code do you have total?

Quote:
Originally Posted by Garten Haeska View Post
Wow!!!!
we have about 140! Why is your code so complex?
We made wrapper classes for most of our sensors and control devices so we can get the most use out of the information they provide, we have field oriented swerve drive with several driving modes, many automated processes to make the driver's job more straightforward and less concerned with details, and quite a few extra features that we are very excited about, but are not to be named until our first regional.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-24-2011, 09:00 PM
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: How many lines of code do you have total?

All our code put together is ~700 lines. But the main robot class is only ~120.

Drive programming is about 500 of those lines.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote
  #6   Spotlight this post!  
Unread 02-24-2011, 09:13 PM
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: How many lines of code do you have total?

Now the question here is: what are you more proud of? A ton of complex code, or a very streamline one? Now I am not saying a project that consists of thousands of lines are not efficient, but chances are at this level, it is not efficient...

We currently have about 1500. I probably have to go back and streamline everything.


Edit: I would compare that to being big and slow or being a petite sprinter. Which one will you really be proud of?
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.

Last edited by davidthefat : 02-24-2011 at 09:18 PM.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-24-2011, 09:15 PM
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: How many lines of code do you have total?

Our 2010 robot had about ~3500 lines of code spread across ~20 Java source files. It's interesting to note that the files SwerveModule.java and Config.java each had a total of 228 lines, the same as our team number.

This season is still a work in progress, but when it's all done I'd expect only around half of that.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #8   Spotlight this post!  
Unread 02-24-2011, 09:37 PM
2733Programming 2733Programming is offline
Registered User
FRC #2733 (Pigmice)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Portland, OR
Posts: 6
2733Programming is an unknown quantity at this point
Re: How many lines of code do you have total?

Quote:
Originally Posted by davidthefat View Post
Now the question here is: what are you more proud of? A ton of complex code, or a very streamline one? Now I am not saying a project that consists of thousands of lines are not efficient, but chances are at this level, it is not efficient...

We currently have about 1500. I probably have to go back and streamline everything.


Edit: I would compare that to being big and slow or being a petite sprinter. Which one will you really be proud of?
I'm proud of elegant code, that successfully, consistently, and effectively completes the job it was made to do. I'm not encouraging over-complex, or bloated code, but I strongly believe in code that gets the job done, regardless of how many lines it takes.

So to answer your question, I'd be proud of whoever wins the race
Reply With Quote
  #9   Spotlight this post!  
Unread 02-24-2011, 09:40 PM
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: How many lines of code do you have total?

Quote:
Originally Posted by 2733Programming View Post
I'm proud of elegant code, that successfully, consistently, and effectively completes the job it was made to do. I'm not encouraging over-complex, or bloated code, but I strongly believe in code that gets the job done, regardless of how many lines it takes.

So to answer your question, I'd be proud of whoever wins the race
Well you and I have totally different mentalities then. I am going to use inline assembly next year to squeeze out more juice and performance from the cRio. I know I sound crazy, but I love the low level. I kind of regret using Java. I had to because no one knew C++. I'll go with my wishes before I graduate.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #10   Spotlight this post!  
Unread 02-24-2011, 10:30 PM
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
Re: How many lines of code do you have total?

2010 season we had 11,358 lines. 3,036 of those were comments. EDIT: 96 Framework source files, 7 Robot specific files.
2011 season uses the same core codebase of 9,571 lines, 2,749 of which are comments.

Sounds like a lot of bloat, but its not. All together it makes for a really elegant system with abstraction and events and so on--
http://code.google.com/p/grtframework/


Last edited by spartango : 02-25-2011 at 12:01 PM.
Reply With Quote
  #11   Spotlight this post!  
Unread 02-24-2011, 11:12 PM
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: How many lines of code do you have total?

I have only 600 lines of code including my various wrappers.

The Reason why is that i use this formatting for eveything
Code:
type some_function(type var) {
    do_funky_crap();
}
__________________
Code:
class team2412(GP):
    def __init__(self):
        GP.__init__(self)
        self.coopertition = True
        self.info = {"name": "Robototes", "school": "Sammamish High School, Bellevue, WA"}
        assert self.kind_people == True
Reply With Quote
  #12   Spotlight this post!  
Unread 02-24-2011, 11:32 PM
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: How many lines of code do you have total?

Quote:
Originally Posted by spartango View Post
2010 season we had 11,358 lines. 3,036 of those were comments.
2011 season uses the same core codebase of 9,571 lines, 2,749 of which are comments.

Sounds like a lot of bloat, but its not. All together it makes for a really elegant system with abstraction and events and so on--
http://code.google.com/p/grtframework/

Woah, how did you manage to find the time to code that? Pretty impressed.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #13   Spotlight this post!  
Unread 02-25-2011, 08:07 AM
yclee31's Avatar
yclee31 yclee31 is offline
Programmer, Electrical, Design, etc
AKA: MINS
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Seoul
Posts: 14
yclee31 is a jewel in the roughyclee31 is a jewel in the roughyclee31 is a jewel in the roughyclee31 is a jewel in the rough
Thumbs up Re: How many lines of code do you have total?

are any of you guys using CAN?
Reply With Quote
  #14   Spotlight this post!  
Unread 02-25-2011, 11:57 AM
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
Re: How many lines of code do you have total?

heh, time... well actually it didn't take that long in that you can generate some of the code, and then also it carries over year to year so once you have the framework you only add a few hundred/thousand onto it specific for each year.

btw, grtframework has/uses CAN, complete with the neat jag closed loop mode.
Reply With Quote
  #15   Spotlight this post!  
Unread 03-01-2011, 07:05 AM
Jeremy Germita's Avatar
Jeremy Germita Jeremy Germita is offline
Co-Advisor/Lead Engineering Mentor
AKA: wood is good. plastic is fantastic.
FRC #5012 (Gryffingear) / (Antelope Valley FIRST Teams)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Lancaster, CA
Posts: 282
Jeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond repute
Re: How many lines of code do you have total?

Some interesting stats about our code.
Java.

6 Coders.
1,721 Lines of code total.
Average of 286.8333333 lines per coder
8 Packages
Average of 2.625 files per package
Average of 215.125 lines per package
21 files total
Average of 3.5 files per coder
Average of 81.95238095 lines per file

Interesting facts:
Our neatest code to date
Our first year with our code online
Our Highest number of programmers this year(up 3 from last year)
Our Highest number of source files and packages


Our code: (Will be revised up until our last match!)
http://code.google.com/p/frc399-2011-code-james-bot/
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.

2017 - Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery
Reply With Quote
Reply


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 08:50 AM.

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