View Single Post
  #1   Spotlight this post!  
Unread 15-01-2011, 16:10
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
Procedural v Object Oriented Programming

Today one of the mentors and I had a major miscommunication and got no progress programming wise today. I want to program the robot object oriented but the mentor wants procedural. Now you see he is not a programming mentor. Do I just listen to him and do what he wants or do what I seem fit? He and I agree that C++ is better fit, but that can not be done due to the number of programmers that do not know C++. How can I convince the mentors to let me program in C++? Its selfish, but I believe that I can write more efficient code with C++. I am not as familiar with Java than I am with C++.


I know procedural and OO is independent of the language, but I believe that OO is more efficient in C++ because I can use pointers instead of using multiple copies of the object. I planned on having "Managers" that manage everything in their "domain". Like a sensor manager, actuator manager and other managers. Now the mentor wants me to not use objects. From my experience, my way is more "efficient" code wise than his way is. So what do I do? Just do what he says?
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.