Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Code Repository (http://www.chiefdelphi.com/forums/showthread.php?t=24324)

Ryan Cumings 24-01-2004 18:59

Code Repository
 
Would other teams be interested in sharing code with each other? Would anyone be willing to open a repository?

Obi 24-01-2004 19:23

Re: Code Repository
 
What whould be the main purpose of a code repository? Ideas?

Guest 24-01-2004 19:28

Re: Code Repository
 
Quote:

Originally Posted by Obi
What whould be the main purpose of a code repository? Ideas?

A code repository defeats the purpose. Everybody should learn the programming (who wants to). Sure, we can share ideas, but we shouldn't use each other's code.

Ryan Cumings 24-01-2004 19:39

Re: Code Repository
 
How about sharing code from years past?

briholton 24-01-2004 19:47

Re: Code Repository
 
Quote:

Originally Posted by SilverStar
A code repository defeats the purpose. Everybody should learn the programming (who wants to). Sure, we can share ideas, but we shouldn't use each other's code.

AHHH, glad to see your team is writing their own controller code entirely from scratch and not using ANY of the code provided by first. :mad: I do not know a single professional programmer that has not used someone else's code - it's SOP! I think the code vault would be superb not only so we all can learn from other folk's examples now, but for my classroom, i would use it throughout the year to teach with. kudos!

Guest 24-01-2004 19:55

Re: Code Repository
 
Quote:

Originally Posted by briholton
... not using ANY of the code provided by first ...

That's not what I meant. I don't think that we should put full implementations of specific things our robots will be doing.

Quote:

Originally Posted by briholton
I think the code vault would be superb not only so we all can learn from other folk's examples now, but for my classroom, i would use it throughout the year to teach with. kudos!

However, I do agree with you that a repository would be a great place to learn and a great place to put general algorithms (like line following, etc.)

The reason why I think that full "ready-to-run" programs should not be uploaded to a repository because it encourages copy-paste. Yes, a big part of FIRST is learning from others. But a just as important part of FIRST is learning from discovery.

Ryan Cumings 24-01-2004 20:13

Re: Code Repository
 
That is what I was kind of getting at for the idea about the repository. It took me a long time to figure out how to integrate the yaw rate sensor signal. Every place I looked did not have one example on how to do it. Granted I figured it about after about 12 hours of fustration. It just would make me wonder how long some of the other programers (minions) on my team might have taken.

Guest 24-01-2004 21:13

Re: Code Repository
 
I'm currently implementing a repository at:

http://nrg.chaosnet.org/repository

Spread the word! Note: it is not finished, I'm working on it. And, you HAVE to register an account at the NRG website to be able to post code to the repository.

Hope you like it!

deltacoder1020 25-01-2004 16:34

Re: Code Repository
 
well, i would go add my demo trig table code, but the register/login feature does not work yet, apparently. looking like it's going to be nice when it does, though! :)

Guest 25-01-2004 16:42

Re: Code Repository
 
Quote:

Originally Posted by deltacoder1020
well, i would go add my demo trig table code, but the register/login feature does not work yet, apparently. looking like it's going to be nice when it does, though! :)

Are you sure it doesn't work?

Click "Register." Then enter the info into the fields.
Click register.

Then login using your username and password.

deltacoder1020 25-01-2004 16:53

Re: Code Repository
 
i get an http 404 when i click on the initial "Register" button.

Ian W. 25-01-2004 16:53

Re: Code Repository
 
Quote:

Originally Posted by Ryan Cumings
Would other teams be interested in sharing code with each other? Would anyone be willing to open a repository?

Two years ago, we tried this. It was called The FIRST Codex, and it was located at www.first-codex.net. It's since been taken down, as not enough interest was given by the teams at the time.

I would suggest speaking to Gui, he may be able to help set up some stuff, as he was one of the orignial people who set up the original site.

I don't know how many people remember this, but two years ago, Gui organized several programming meetings at Nationals, and we did have about 10 or 15 people come, if I remember correctly. I think that something that would be fun is if we can set that up again. I'll be attending the Championships this year, so if anyone else likes this idea, let me know and I'll try to set something up.

The idea for a code repository is a nice idea though, as long as it is kept up to date and moderated for potentially bad code (this is FIRST, but some people have weird notions of what "fun" is :-\). I say go all out for it, just make sure someone will be able to maintain it, lest it fall into oblivion (like the FIRST Codex did).

Guest 25-01-2004 16:57

Re: Code Repository
 
Quote:

Originally Posted by deltacoder1020
i get an http 404 when i click on the initial "Register" button.

Try this page:http://nrg.chaosnet.org/uploads/slog...l_reg=Register

deltacoder1020 25-01-2004 16:57

Re: Code Repository
 
Quote:

Originally Posted by SilverStar
When you click on what?

the initial "Register" button at the top of the Repository page.

deltacoder1020 25-01-2004 17:06

Re: Code Repository
 
it seems that your form is currently pointing to "/repository/slogin.php", while the file is at "/uploads/slogin.php" - this probably isn't what you want. (note - the login form doesn't work either, same error message.

Guest 25-01-2004 17:07

Re: Code Repository
 
I'm using the <base href="../uploads/"> tag to point to the correct page. Is that supported?

Guest 25-01-2004 17:21

Re: Code Repository
 
deltacoder,

how did you finally successfully register and login?

deltacoder1020 25-01-2004 17:23

Re: Code Repository
 
don't depend on it - it's better to hard-reference all of the links. the BASE tag is nowhere near supported on all pages. also, it's good practice to quote all of the attributes for a tag, not just those with spaces.

i registered and logged in on the main page for the team, then switched over to the repository (at least the session carried over)

mtrawls 25-01-2004 17:58

Re: Code Repository
 
Quote:

Originally Posted by SilverStar
I'm currently implementing a repository at:

http://nrg.chaosnet.org/repository

Spread the word! Note: it is not finished, I'm working on it. And, you HAVE to register an account at the NRG website to be able to post code to the repository.

Hope you like it!

Is it intentional that you can't view code without registering? (Above you just say post code.) Without registering, the 'code' just consists of this:

Quote:

<!-- nd GOT read1===false -->
/* Downloaded from the NRG repository: http://nrg.chaosnet.org/repository
Program title:
Author:
Date uploaded: Jan. 1, 1970 12:00 AM
*/
Array
Upon registering, though, I could see the code. (And, incidently, registering worked for me -- if you coulndn't tell.)

Guest 25-01-2004 18:00

Re: Code Repository
 
Exactly what do you click on? (the whole trail)

'cause it works when I'm not logged in.

(And I was working on it when you saw it, it's fixed now).

I'm starting a seperate thread for the NRG code repository specifically.

mtrawls 25-01-2004 18:09

Re: Code Repository
 
Okay. An issue of timing, then. It seems to work fine now. Good work ;)


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi