Gold Standard Library
Leon
Posts: 7,620
I have just downloaded the much-vaunted Gold Standard Library file (http://www.parallaxsemiconductor.com/support/goldstandard), and was surprised to find only one entry - FullDuplexSerial.spin and a couple of examples showing how to use it. Is there a problem with the concept or the way it has been implemented?
BTW, there is the same typo in both the examples - "in leiu of".
BTW, there is the same typo in both the examples - "in leiu of".
Comments
The link page suggests
"Questions pertaining to our Gold Standard may be directed to [EMAIL="goldobjects@parallaxsemiconductor.com?subject=Gold%20Object%20Comment%20or%20Question"]goldobjects@parallaxsemiconductor.com[/EMAIL]. Please report bugs here."
I hope that helps.
Cheers
Richard
Is a typo a bug? It isn't in the Gold Standard Object, anyway, but in the examples.
What's more surprising is that there is a reward for people to make more gold standard objects, and there have been very few if any participants. It could be that people who know enough to actually write good drivers are not interested in meeting that particular standard.
(although I might expand that to include ones from Beau and other Parallax employees...)
One thing I was wondering though: Is SPIN the direction they are still heading?
An offer was put out for volunteers and apparently not many took up the call. I would have tried but I'm not up to Gold Standard in any of my coding.
A call was made for SimpleIDE translators and that worked well. Volunteers rise to the occasions they want to rise to.
There are volunteers working on PropGCC and SimpleIDE (me, for one, and I can tell you how unreliable and fickle volunteers can be!)
If Parallax has a revenue generating task that needs to get done (new product launch, major production run, etc.), then the full-time resources need to go there. Customer service issues need to be addressed daily, running the business needs to be addressed daily. If consultants, interested third parties, volunteers or passionate forum members can fill the gaps, then the gaps get filled. If not, then the gaps wait.
For every volunteer initiative, you also need to have someone inside Parallax involved to be the official voice and to provide official oversight of the activity. This again goes back to resources - there are only so many people inside Parallax that have the time, skills and pay grade to champion projects and provide oversight.
A lot of times, I think people forget that Parallax isn't a BIG company. Think about it, if you took them all out to lunch, you'd fill up 10 or 11 booths at a restaurant. With other micro manufacturers, you have customer service, documentation or tool departments that are as big as all of Parallax.
Was it ambitious to spin off Parallax Semiconductor? Heck, yes! Is it accomplishing what it was meant to? Only Ken and Chip can answer that. Is it moving forward as fast as expected? Probably not.
I'm sure it has a few links on the priority chain and the things that really need to get done are getting done.
C has enough standard zealots already. Asking Parallax to impose a C standard on anyone is setting a trap. Don't go there.
What kept me from taking up the offer was the "first submitted wins" aspect. I didn't want to work on an object when someone else might also be working on the same object.
I don't mind being paid in Parallax products, I just don't like gambling with my time.
-Phil
+1 on the AutoDoc. I think it's the next step in documenting code.
Whether or not if Parallax implements it, I thing it should be used in all OBEX code. I will use this for any code that I upload to OBEX.
Jim
Jim
Looks impressive, but one item I could not find, is any link to the complete original ?
If this is being used for web libraries, it makes sense to do it all on one page - comments and complete source.
ie either a Source Code expand that is Full Source Code (with a select-button, copy clipboard, or a save-link ? )
This would also be great for small size tutorials, and there an option to expand all of the 'Source Code' blocks, would make sense.
Then the page comes up scan ready, and expand all is ok on small examples.
The user already has the complete original. That's what they use to generate the HTML. Perl POD works the same way. In fact, I've got an even newer app that attaches a DOC button to the Prop Tool. By clicking the button, the Spin source in the tab showing is converted and launched into the user's browser. If there's no markup, the user is given a chance to have the program add the markup framework so they can fill in the details.
-Phil
-Phil
It's a resource issue. We have a number of objects we can include in the Gold Standard Library (those from AppNotes, products, etc.) but it's been a resource allocation issue for us. When customers call our FAEs that takes priority, as was the case this week. We'll get the Gold Standard Library up to par as quickly as possible given the staff and priorities.
Ken Gracey
I think PHPDOC is a little bit richer: http://en.wikipedia.org/wiki/PHPDoc
-Phil
No I didn't.
I incorrectly assumed there would be plenty of takers and I didn't want to suggest the rules should be changed on my account.
Once I finish my current Parallax project, I might take a stab at converting some of the requested objects to Gold Standard objects.
I'm trying to follow those same standards in the code I'm writing. I was pleased to see I already used most of those conventions in my current code. The only change I need to make to my coding style is to capitalize all the letters of constants. I presently start constants with an underscore followed by a capitalizating the first leter.
FYI, We humans generally read lowercase letters with more ease than uppercase letters. By making all the letters of a constant capital, we're forcing most of us to read a little slower. Now that I've voiced my objection to all capitals in a constant, I'll be quiet about it and follow the convention.
One thing I didn't see mentioned was the capitaliziation of object nicknames. I generally capitalize the first leter of an object nickname (example "Pst."). Is there a standard for this?
I also think (almost) all constants should be declared.
I personally would like to see this:
written this way:
Not that it bothers me much.
There are plenty of other examples of "magic numbers" is see in other code that bug me much more.
-Phil
Of course, but I thought the idea was to morph this to use for an equivalent to Gold Standard Libraries on the Web.
There, you really want a one-pass / one step publish to a web page ?
Since the formatter has the source as it creates the HTML, the logical next step to me is to have it create a whole source block ?
-Phil
I do understand its a resource issue.
The problem with twin forks like that, is Google can land you on the HTML - and as it is now, you have no idea where the real source file is, that is why a self-contained web page makes more sense for code publishing.
Users will arrive 'straight from google'
A properly-designed repository will have the source plainly visible to download and, perhaps, the HTML in close juxtaposition. It would even be possible to produce the HTML on the fly when the source is uploaded. That would be the ideal case, at least.
So enough pontificating already, okay? It just ain't gonna happen the way you propose.
-Phil
I think @jmg want your documentation to replace the achiv-function. thus including the complete source of each obj as last tag in the documentation.
If you do, then you can publish the documentation as is somewhere but all source files needed are included. The generated html is just some KB heavier...
Great work you do there, thank you - I will DEFINITELY use it
It is quite simple - It not just looks professional, that logo and that Toc. IT IS.
Thank you for all that work Phil, I will use it.
Enjoy!
Mike
Err ?? the one I looked at, does exactly what I am suggesting.
http://search.cpan.org/~thaljef/Perl-Critic-1.118/lib/Perl/Critic.pm
This has the HTML, and at the very top, is a name called [Source], all on one page. I can open or save as.
So anyone landing on the HTML, can instantly find the source.
We must be looking in different places, because the CPAN I looked at, already does what I propose.
It already has happened