View Single Post
  #4   Spotlight this post!  
Unread 11-02-2016, 10:04
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Noob question, but would love some advice

While the small programs we use on these robots may not really require it (back in the day on IFI's old system, pretty much everything we did was in one file!), it is a really, really good industry practice to teach your students. It's called separation of concerns, where you literally separate the different areas. It helps with debugging - if your problem is with your climbing mechanism, you can ignore the files related to shooting or driving, for example. It helps with code understanding - someone new can come in and grasp the general structure and fhedive into details much quicker than they can with a single big file. It helps with collaboration- if you use a repository (like git) to store your code and sync it across multiple people, you have less collisions checking things in, because people are working on different files. This is especially important in the "real world" where you may have a team of 20-50 people working on a single program that's literally hundreds of thousands of line long (or more!), When totaled.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote