View Single Post
  #11   Spotlight this post!  
Unread 16-11-2015, 17:30
spat's Avatar
spat spat is offline
QDriverStation Developer
AKA: Alex Spataru
FRC #3794 (WinT)
Team Role: College Student
 
Join Date: Sep 2015
Rookie Year: 2013
Location: Mexico
Posts: 44
spat is on a distinguished road
Re: Advantages of Python over Java?

Quote:
Originally Posted by x86_4819 View Post
Although I would generally agree with this, python actually helped my team out of a situation like this.

At my team's first competition, I had made some last-minute tweaks to the robot's drive code right before we left for a practice match. Autonomous runs, then I grab the joystick for teleop only to find my drive controls accelerated and inverted. Not from a syntax error, but a missing "-" and an extra "0" in the perfectly-valid python code. However, because I was using python, it only took about 30 seconds (mid-match) for me to ssh into the robot, modify the offending file, and re-load the code in order for us to continue practicing.
I can relate to you, re-compiling and deploying your robot code seconds before a match is really stressful, especially with LabVIEW running on a low-end computer

That was one of the primary reasons why I switched our team from LabVIEW to C++ (it compiles much faster than LabVIEW, and our programming team is more familiar with it) and (testing) Python.
Reply With Quote