The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Feedback wanted for my python code
Discuss Feedback wanted for my python code in the Python Programming forum on Dev Shed. Feedback wanted for my python code Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

March 21st, 2004, 03:46 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Feedback wanted for my python code
This is a program I wrote to add copyright notices and licenses to my source code files automatically. As a matter of fact, I used the program to add BSD-style licenses to its own source code!  .
Here it is:
http://www.mayukhbose.com/python/addlice/index.php
Please take a look and let me know what you think.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|

March 21st, 2004, 07:28 PM
|
|
Registered User
|
|
Join Date: Aug 2003
Posts: 217
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
I havn't had time to look at the source yet, but it is sure going to be useful for me  .
Keep it up!
|

March 21st, 2004, 08:47 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
It's a great idea and bound to be useful to a whole bunch of people  . Anyway i've only skimmed through it (2:45am), first impressions arn't bad although it seems to be a little over complicated in places IMO.
The main improvment i think you could make to the program so far would be to have the licences in a seperate text file instead of in 'licenseobjects'.
I do like the way the file type (extention) is used to deside what to do though, a nice touch!
But other than that its a good little program, obviously there are some places that could be done differently but nothing major  .
Keep up the good work,
Mark.
__________________
programming language development: www.netytan.com – Hula
|

March 22nd, 2004, 04:25 AM
|
 |
Mini me.
|
|
Join Date: Nov 2003
Location: Cambridge, UK
|
|
I like this utility, definitely something I can use to retrospectively update my files  .
A few suggestions:
1. It could be useful to allow the replacement of one license with another (update of license or change in policy).
2. I agree with Netytan on one point: The licenses should be external files. My preference is for a license directory, somewhere in the document path that can be edited easily by the user. The license files could be like something like gpl.lic gpl2.lic mit.lic, mylicense.lic.
3. I would like to put the program in the pythonpath as a utility – in that case it would be good to have a distutils setup.py file to install it.
4. And to avoid filename clutter - in it’s own package directory or reduce it to one module only.
Cheers,
Grim
|

March 22nd, 2004, 07:31 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Thanks for the feedback guys. Will implement changes later in the week  .
|

March 23rd, 2004, 08:55 AM
|
|
Contributing User
|
|
Join Date: Dec 2001
Location: Houston, TX
Posts: 383
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 12
|
|
Nifty idea, but I have one comment. I haven't looked at the code (yet), but while tihs program is nifty (like I said  ), I can't think of why many would use it simply because most people pick their favorite license to release things under and then stick with that. If they do that, then the easiest way to insert this license into your source code header is to simply set up a template that your editor will read into the buffer every time you start a new file with that given extension.
Just my two cents.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|