Quote:
Originally Posted by davidthefat
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?
|
The WPI Libaray basically forces you to use a lot of OOP to use it. OOP is conceptually simpler for most people, so you should probably use it.
I didn't quite understand whether the argument was about procedural vs. OOP or C++ vs. Java.
Also, your observation that Java is less efficient is incorrect. Unless you do some heavy (and most likely unnecessary) memory optimization, Java is just as efficient as C++, but easier to use (due to garbage collection). The difference is negligible. Java does not create "multiple copies" of an object. Those are pretty much pointers too, more accurately called references (This somewhat oversimplifies it). You should learn more about Java before deciding it's less efficient (It is, but only negligibly so and only if your C++ code is highly optimized).
I think that you should probably use Java if other people know that better. I find that moving from C++ to Java is easier than the other way around, plus it's more fair if there are many people that prefer Java.