Thread: C or C++
View Single Post
  #13   Spotlight this post!  
Unread 14-11-2006, 14:25
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: C or C++

Quote:
Originally Posted by Stuart
I personaly would like to see a move to C++ . .mainly because I think its easier to think of a robot in terms of objects than not. and for the most part any thing you write in C can be put directly in to C++ with out any changes.

not saying that we take the jump all the way to java, (java.eguals(the.suck())) , but saying that a move to OO would be nice.
C++ would be a pretty hefty extra load on the processor, and for minimal gain. As far as objects go, I've found structs are pretty good, I'm working in my spare time on an object based robot API using all structs, its very doable.

Last year I used very modular code utilizing the same method, well enough I could pick up and move parts of my code in to another teams to help them, with the only change being adding the interface code to theirs. Once they had it, we were able to "plug" code modules in, it was very effective.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)