![]() |
Re: How many lines of code do you have total?
Wow, I'm surprised at how many lines of code you all have. I suspect that there is some amount of bias here (i.e. the teams with the most code are the most likely to be hanging out on CD after ship...)
We decided to use Java as all our development computers are on Linux (personal computers) (next year, we might use the new universal C++ development system). I knew from a previous development experience that with Java, if you aren't extremely careful, you'll end up with so-called "spaghetti and meatball" code (i.e. an object-oriented mess). Therefore, I took the time to carefully lay out our classes, which probably added a few lines to the code. In comparison to those with swerve drives, however, we do have a very simple bot (but a swerve drive doesn't use up that much code relative to a tank drive -- my lego swerve drive has 238 lines total). We have 513 lines total this year (at the moment). One coder contributed 11 lines of code, the other (me) contributed the other 502 (I'm the only experienced coder on my team, and the other coder rarely came to build meetings). Good luck to everyone at regionals. |
Re: How many lines of code do you have total?
I contributed a line of code when I visited my team a week or so ago, but deleted it after because it didn't do anything.
Quote:
|
Re: How many lines of code do you have total?
After a quick number crunch, we're up to 757 lines of code. :D
This is the first time I've been in our workshop since the robot shipped. It seems empty... |
Re: How many lines of code do you have total?
Quote:
Maybe "ravioli code" is the term I was looking for. |
Re: How many lines of code do you have total?
our team has around 1000 with approximately >75% of that commented out.
thats an average of around 1000 per programmer and about 15% of the comments are actually useful code while the rest is mainly failed experiments and debugs |
Re: How many lines of code do you have total?
We have around 1300 lines of code now that we finally got an autonomous. say 400-500 lines of that are commented out. We're working on streamlining it right now, hopefully to what it was last year. Which was 800.
Since we only have 2 programmers right now (me - a freshman, and the lead programmer - a senior) we both typed like 900 lines a piece, then pieced it together, and greatly reducing what we like to call "Jimmy's mess" |
Re: How many lines of code do you have total?
Our team is up to about 600 lines; however, it should not be a competition to see who has the most lines of code. It usually promotes bad habits with object oriented programming, which was made to minimize the amount of copy and pasting. Sorry if I sound any less than trying to be nice. ;)
|
Re: How many lines of code do you have total?
Including comments I have about 200 lines total, this includes autonomous, minibot deployment, pneumatics, arm, and holometric drive system. I used the simple template since I am the only programmer and I have other responsibilities such as work. Can't wait to test it out on Thursday :)
|
Re: How many lines of code do you have total?
Wow, I'm impressed - I would consider myself at least an average coder, but I only have roughly 200 - 250 lines of code. What kind of features are writing for your robot? Personally, I can't imagine many driving assisted features that would fill up thousands of lines of code - though maybe if I actually tried to write a driver assisting system I'd start getting code pretty quick.
|
Re: How many lines of code do you have total?
We've got a respectable 1878 lines or so. Our largest file, the autonomous class, has around 400 lines. Our smallest file, interface ThreeLaws.java, holds its ground with a whopping 20 lines. Of course, its implementations in other classes inflate the line count somewhat :D
|
Re: How many lines of code do you have total?
As of this check in: 4,486 spread over 74 source files. Might hit 5,000 by next weekend. :p
|
Re: How many lines of code do you have total?
799 Lines of code. counting blanks, comments, closing brackets and so forth.
For those of you commenting out code, you should use version control (such as git) so your code is cleaner and you don't have to wade through a sea of commented code. Code:
~/workspace/BlackJag/src $ wc -l org/usfirst/frc348/*.java |
Re: How many lines of code do you have total?
Quote:
Similar output from "wc" for our project: Code:
bash-3.2$ wc ./*.cpp ./*.h |
Re: How many lines of code do you have total?
1.7 million lines of SLOC, which only includes logical statements. With comments/whitespace it's more like 5.4 million.
OH! You mean robot code. I'd have to ask the programming team. Just thought I'd put our robots into a perspective versus an industrial system. |
Re: How many lines of code do you have total?
Our code is 1,202 lines of Java. A good portion of which is a result of the other programmer's insistence on using a non-standard, difficult-to-read coding style, which we won't be using following this year.
|
| All times are GMT -5. The time now is 11:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi