Go to Post I am the Evil Empire of FIRST!!! - Andy Grady [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2015, 03:01
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,188
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: HELP!

Quote:
Originally Posted by Lloydpro View Post
I'm very curious why you have like 4 classes just for drivetrain? I just make a quick method and it's over with. Nothing too fancy unless it has to be. In fact I don't know why people make othe classes for stuff when coding for FRC. If you are willing to enlighten me I would be very interested to know why you do that!
I can't comment on this specific case, but by using independent classes, the code can be developed by multiple groups who don't know anything about the code another group is working on. When the final code is written, the only information needed is the names, functions, and arguments of relevant methods for each operations that is to be performed.

In general, breaking up code like this can be helpful since it helps keep issues isolated. If something needs to be rewritten, it is probably going to be limited to one class instead of the entirety of the project.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2015, 07:39
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: HELP!

Quote:
Originally Posted by PAR_WIG1350 View Post
I can't comment on this specific case, but by using independent classes, the code can be developed by multiple groups who don't know anything about the code another group is working on. When the final code is written, the only information needed is the names, functions, and arguments of relevant methods for each operations that is to be performed.

In general, breaking up code like this can be helpful since it helps keep issues isolated. If something needs to be rewritten, it is probably going to be limited to one class instead of the entirety of the project.
It also makes the code more readable, which is the key to programming.
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 11:20.

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