peterparker@fastmail.commailto:peterparker@fastmail.com writes:
Don't know if https://puredata.info/docs/faq/how-do-i-install-externals-and-help-files is up to date and of help for you, but you might wanna check it and get back with more specific questions and possibly a new email subject.
I have to say that I have gotten kind of lost in the discussions about loading and declaring external libraries. I would like >>to embrace the current best practices, but don?t have a solid overview of the whole. Would anybody be willing to write >>up a summary?
(Hope this is a better subject line).
That very page has an expired link to a Google drive tutorial which sounds like just the thing I was talking about, so I’d say that it’s not up to date. I’d love to see best practices for [declare] blended into it. The helpfile for [declare] is good, but how’s a newbie even supposed to know to use the [declare] object in the first place? I’m just asking for an overview, is all.
Best,
Phil Stone Davis, CA
peterparker@fastmail.commailto:peterparker@fastmail.com writes:
Don't know if https://puredata.info/docs/faq/how-do-i-install-externals-and-help-files is up to date and of help for you, but you might wanna check it and get back with more specific questions and possibly a new email subject.
I have to say that I have gotten kind of lost in the discussions about loading and declaring external libraries. I would like >>to embrace the current best practices, but don?t have a solid overview of the whole. Would anybody be willing to write >>up a summary?
(Hope this is a better subject line).
That very page has an expired link to a Google drive tutorial which sounds like just the thing I was talking about, so I’d say that it’s not up to date. I’d love to see best practices for [declare] blended into it. The helpfile for [declare] is good, but how’s a newbie even supposed to know to use the [declare] object in the first place? I’m just asking for an overview, is all.
I find declare's help patch well written, but of course it does not cover everything, what is it you are looking for Phil?
My 2 Cents:
There is one pitfall which should be mentioned, since it happened to me and also others I wanted to teach structured Pd programming:
"The order of -path statements matters"
Use case: If I want to look in specific directory first for finding objects and libraries, so I can handle local overwrites or so and distribute the -path statements in many declare objects, then I do not know from looking at the code which path is used first, unless I create them in the order I want (Ctrl-X, Ctrl-V on each object), which is an undocumented behaviour which might change in future.
mfg winfried
My solution only one declare objets in a subpatch from the main patch with all the pathes in the wanted order. Am Donnerstag, 25. Februar 2021, 00:42:04 CET schrieb Peter P.:
- Philip Stone via Pd-list pd-list@lists.iem.at [2021-02-25 00:31]:
peterparker@fastmail.commailto:peterparker@fastmail.com writes:
Don't know if https://puredata.info/docs/faq/how-do-i-install-externals-and-help-files is up to date and of help for you, but you might wanna check it and get back with more specific questions and possibly a new email subject.
I have to say that I have gotten kind of lost in the discussions about loading and declaring external libraries. I would like >>to embrace the current best practices, but don?t have a solid overview of the whole. Would anybody be willing to write >>up a summary?>
(Hope this is a better subject line).
That very page has an expired link to a Google drive tutorial which sounds like just the thing I was talking about, so I’d say that it’s not up to date. I’d love to see best practices for [declare] blended into it. The helpfile for [declare] is good, but how’s a newbie even supposed to know to use the [declare] object in the first place? I’m just asking for an overview, is all.
I find declare's help patch well written, but of course it does not cover everything, what is it you are looking for Phil?
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Thu, 2021-02-25 at 10:56 +0100, Winfried Ritsch wrote:
My 2 Cents:
There is one pitfall which should be mentioned, since it happened to me and also others I wanted to teach structured Pd programming:
"The order of -path statements matters"
Use case: If I want to look in specific directory first for finding objects and libraries, so I can handle local overwrites or so and distribute the -path statements in many declare objects, then I do not know from looking at the code which path is used first, unless I create them in the order I want (Ctrl-X, Ctrl-V on each object), which is an undocumented behaviour which might change in future.
I'm not absolutely sure if I understand you correctly, but why don't you use only one [declare] object?
[declare -path first/path/to/try -path /second/path -path ./third]
Roman
On Thu, 2021-02-25 at 10:56 +0100, Winfried Ritsch wrote:
My 2 Cents:
There is one pitfall which should be mentioned, since it happened to me and also others I wanted to teach structured Pd programming:
"The order of -path statements matters"
Use case: If I want to look in specific directory first for finding objects and libraries, so I can handle local overwrites or so and distribute the -path statements in many declare objects, then I do not know from looking at the code which path is used first, unless I create them in the order I want (Ctrl-X, Ctrl-V on each object), which is an undocumented behaviour which might change in future.
I'm not absolutely sure if I understand you correctly, but why don't you use only one [declare] object?
Perhaps for use with "nested" code, use of abstractions, possibly in other abstractions etc.
On Thu, 2021-02-25 at 11:13 +0100, Peter P. wrote:
- Roman Haefeli reduzent@gmail.com [2021-02-25 11:04]:
On Thu, 2021-02-25 at 10:56 +0100, Winfried Ritsch wrote:
My 2 Cents:
There is one pitfall which should be mentioned, since it happened to me and also others I wanted to teach structured Pd programming:
"The order of -path statements matters"
Use case: If I want to look in specific directory first for finding objects and libraries, so I can handle local overwrites or so and distribute the -path statements in many declare objects, then I do not know from looking at the code which path is used first, unless I create them in the order I want (Ctrl-X, Ctrl-V on each object), which is an undocumented behaviour which might change in future.
I'm not absolutely sure if I understand you correctly, but why don't you use only one [declare] object?
Perhaps for use with "nested" code, use of abstractions, possibly in other abstractions etc.
Then Ctrl-X, Ctrl-V doesn't help.
Roman
Am Donnerstag, 25. Februar 2021, 11:13:28 CET schrieb Peter P.:
- Roman Haefeli reduzent@gmail.com [2021-02-25 11:04]:
On Thu, 2021-02-25 at 10:56 +0100, Winfried Ritsch wrote:
My 2 Cents:
There is one pitfall which should be mentioned, since it happened to me and
also others I wanted to teach structured Pd programming: "The order of -path statements matters"
Use case: If I want to look in specific directory first for finding objects and libraries, so I can handle local overwrites or so and distribute the -path statements in many declare objects, then I do not know from looking at the code which path is used first, unless I create them in the order I want (Ctrl-X, Ctrl-V on each object), which is an undocumented behaviour which might change in future.
I'm not absolutely sure if I understand you correctly, but why don't you use only one [declare] object?
yes I do (lately)... as a hint for the best pratice discussion.
Perhaps for use with "nested" code, use of abstractions, possibly in other abstractions etc.
yes and it would be better readable than a long list of "-path ..."s with linebreaks ...
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list