Go to Post Uncle Sam wants you to watch NERD Vision. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-04-2004, 14:47
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Coding / Style Standards for sharing C code

Here's my 2 cents. (Wrote this up yesterday)
My thoughts on what the standard should be:
  • Allow C++ style comments
  • 1 of the properties of each upload should be "Target System". Right now there only is 5: 'PBASIC Stamp (EDU)', 'PBASIC Stamp (Full)', 'PIC18Fxx (EDU)', 'PIC18Fxx (Full)', and 'None'. 2 of the same processor can be selected (not EDU/Full specific)
  • Hardware info should be noted and ALIASed. (is that a word?) This allows for rapid integration.
  • Actual formating should be uniform with the default code (except for the C++ comment thing)
  • any TABS included will be changed to 4 spaces on upload (or just rejected outright)
  • only debuged code should be uploaded.
  • upload as file(s), NOT textbox.
  • allow multiple files in upload
  • a set of standard libs, functions, etc. are provided ('#include <Repositroy.h>') (Or assumed to be provided)
  • items-in-progress should be marked as such
  • currently, only .h, .c, .bsx, and .zip files are allowed for actual code (Probably will expand)
    Zips can contain full projects, but files MAY be filtered out as deemed necessary by the moderator(s)
  • tools, etc. are kept seperate from code. all tools must be open source. (A 'tool' is anything related to code but is not actually code itself)
  • all code has same EULA: 1) Code is given AS IS. 2) give credit where credit is due. 3) may NOT use code to make money.
  • White space should be included where the C spec allows.
  • PLENTY OF COMMENTS
  • a whitepaper/explainitory file can be included (seperate from code, but accesed together)
  • I know there's more...
I'm focusing more on the repository than the code itself.

Some stuff from the first thread:
  • Integration into CD. [...]
  • More nesting of categories. I know that isn't an issue (yet), but if this thing takes off...
    [...]
  • Improved interface (I'm too used to CD!)

I am willing to help hammer this thing out/code it/whatever. Be warned: I'm 15 (almost 16) and don't have any professional coding expierience. I encourage the guys who end up making this (Why just the profesionals?) to get a forum, but I think keep it public. Those who aren't actually writting should try to restrain from posting there, but I think they should be able to.

What's the noun for "a piece of code that is uploaded to a code repository"?
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
style srawls Programming 19 23-05-2002 17:02


All times are GMT -5. The time now is 04:36.

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