|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
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 Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#2
|
|||
|
|||
|
I havn't had time to look at the source yet, but it is sure going to be useful for me
.Keep it up! |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
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
__________________
*** Experimental Python Markup CGI V2 *** |
|
#5
|
||||
|
||||
|
Thanks for the feedback guys. Will implement changes later in the week
. |
|
#6
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Feedback wanted for my python code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|