Started by Kerry Brown ·
2009-12-15 23:50 UTC ·
7 replies · SMF topic #1090
Kerry Brown
2009-12-15 23:50 UTC
Code attachment Naming.
I have a wish item.
Can those of us who post .LSP and .ODCL code please try to make the names unique ie perhaps prefix with our initials.
I save code to a ODCL_FORUMTESTING folder that is on my Acad path and good naming helps find stuff and stops overwrites.
I too, will try to be better behaved.
bazzacad
2009-12-15 23:53 UTC
I wonder if there's a way to update the Forums attachment code to add the user name automatically.
I'll see if I can find something but doubtful..
fred_tomke
2009-12-15 23:54 UTC
Boy, you download all these files? I do not even save the files I upload.
But of course, we could think about it.
Fred
owenwengerd
2009-12-15 23:58 UTC
I just rename the files when I save them. That way I can use names that are meaningful to me. Immediately after saving the .lsp, I it and add the original .odcl filename as the project key, remove any hard coded paths, and make whatever other edits need to be made in order to run it safely. Bottom line: I don't care how they're named, but it's nice when they are the bare minimum needed to serve their purpose.
Kerry Brown
2009-12-15 23:59 UTC
author=BazzaCAD link=topic=1090.msg5734#msg5734 date=1260921236 wrote:
I wonder if there's a way to update the Forums attachment code to add the user name automatically.
I'll see if I can find something but doubtful..
AutoRenaming may not work ... 'cause of (dcl_project_load T)
.. and 'cause control names in code depend on the file name
added : ahhh ... Owen beat me :)
fred_tomke
2009-12-15 23:59 UTC
author=BazzaCAD link=topic=1090.msg5734#msg5734 date=1260921236 wrote:
I wonder if there's a way to update the Forums attachment code to add the user name automatically.
I'll see if I can find something but doubtful..
Just a thought: the files may differ from time to time although they belong to the same topic. Maybe a timestamp could help. On the other hand the filenames are getting longer and longer and longer:
FT_20091217005830_PaletteKeepFocus.lsp
No, no good idea of mine ...
Fred
Kerry Brown
2009-12-16 00:09 UTC
author=owenwengerd link=topic=1090.msg5736#msg5736 date=1260921480 wrote:
< ... >, but it's nice when they are the bare minimum needed to serve their purpose.
Seems like a good time to post this link
{2}
Short but complete programs
The greatest challenge to any thinker is stating the problem in a way that will allow a solution. - Bertrand Russell
(Note: this page is written by Jon Skeet, from a first person perspective - but if you've been directed here by someone else, chances are they share the same basic views on the topic.)
owenwengerd
2009-12-16 04:20 UTC
Thanks Kerry. I've been thinking about writing something like this specifically for OpenDCL problems.