Arduino Forum

Community => Website and Forum => Topic started by: conradin on Oct 25, 2012, 09:11 pm

Title: Find the legacy code
Post by: conradin on Oct 25, 2012, 09:11 pm
Hi all,
This is just a post for finding all the legacy code in the arduino.cc website, to hopefully get it updated and fixed. I would assume that the webserver is a linux server, but I dont know, and I dont know how to find out. Nor is that really my business. But I did encounter some more legacy code on the page:
http://www.arduino.cc/en/Tutorial/JoyStick

so then I thought that if the web-server is a linux based web-server, that the web-master could run the command
Code: [Select]

grep -H -r "beginSerial" arduinoRootDirectory/


and get all the filenames that contain "beginSerial".
Then Fix the code examples on those pages.

But I don't know, if that would work.  Additionally, there might be other terms that a search could be relevant to.
If any given page contains beginSerial, it probably has serial code to reference the start of some serial process like serialWrite.
Beyond that, serial functions are the only bits of legacy code I have encountered thus far. I don't know if there are other snippets lurking on pages that do not utilize "beginSerial".

Again, my only goal here is to have all the examples have code that works.
Any one have more input about how to find an fix legacy code snippets?

Title: Re: Find the legacy code
Post by: conradin on Oct 25, 2012, 09:56 pm
So far, Ive found these pages to have legacy code snippets in their tutorials.
arduino.cc/en/Tutorial/ControleLEDcircleWithJoystick
arduino.cc/en/Tutorial/LEDDriver
arduino.cc/en/Tutorial/Qt401