Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old February 25th, 2004, 07:59 AM
rickt's Avatar
rickt rickt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 23 rickt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Versioning and general programming etiquette how to.

I started writing a small python application that has blossomed into a bigger python application. If you didn't know from my previous posts, I'm new to python and programming in general. My newest question, which doesn't appear to have a clear answer from the results of my google searching, is this:

How is revisioning or versioning done?

Because that's clear as mud let me elaborate. I'm not sure how to keep my new application stored. Do I keep a copy of each version in a seperate directory for posterity? Is there a python versioning-type tool? I'm the only one developing this application. I'm pretty sure because it's so nichey that no one else would even want it, but just to start good practices I wanted to know how different versions are supposed to be kept or what the versioning process is.

I know this is very subjective, but I want to make sure that I don't start programming with bad habits. I'd like to start off on the right foot.

Speaking of which, is there a standard code snippet that's used to tell a user things such as version and possible flags? (Think command line app being passed --help or -h or /?.)

A kick in the right direction would be appreciated. And no, I haven't purchased any python "How To Program" books yet. I've been using the internet for all of my questions so far.

Thanks in advance!

Reply With Quote
  #2  
Old February 25th, 2004, 08:33 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
It depends how over the top you want to go
Stuff I use:
Under Windows have I've used CS-RCS which is free for personal use and fairly easy to use. It also interfaces well with Textpad, a powerful code editor I like.
I have since "moved on" to CVS as I now have a small Linux server on my home network. With that I use the TortoiseCVS client which intergerates well with the Windows UI. I like the idea of having the version repository off-machine.

Under Linux there is the Cervisia CVS client.

[You can of course use command line tools for CVS under Windows and Linux]

As far as embedding the version info goes there are some guidelines in PEP8
which will allow you to use pydoc. Pydoc allows you to generate self documenting code if it's guidelines are followed.

Cheers,
Grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old February 25th, 2004, 09:15 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
You should check out the Distributing Python Modules, granted this is actually talking about Python Modules not applications but it does go a little way into storing and naming...

http://www.python.org/doc/2.3.3/dist/dist.html

I always keep all my projects at different stages, this way if you change something and it eventually turns out to be broken, less efficent etc you can look up how you did it prevously .

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #4  
Old February 25th, 2004, 10:55 AM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
On my current project (supybot, referenced in my sig as well), we use CVS merely because Sourceforge provides a CVS server for us already. Otherwise I imagine we might consider some more up-to-date revision control system like Subversion or Arch. If you aren't bound by any such limitations, take a look into those two.
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #5  
Old February 27th, 2004, 04:25 PM
rickt's Avatar
rickt rickt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 23 rickt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Strike
On my current project (supybot, referenced in my sig as well), we use CVS merely because Sourceforge provides a CVS server for us already. Otherwise I imagine we might consider some more up-to-date revision control system like Subversion or Arch. If you aren't bound by any such limitations, take a look into those two.

Thanks! I'll take a look at Subversion. I tried installing Arch on my win32 box but no luck there with the SFU from MS. I'm going to test out Subversion. I got cvs installed on it no problem.

My linux box is in the toilet right now and I don't have time to resurrect it. Once I do, I'll install arch on that if I haven't gotten it to work under SFU.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Versioning and general programming etiquette how to.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway