When expanding a project, that is more than a single file, that is a single application (rather than multiple smaller applications as is the case with AOC), what is the idea with K program structure/organization/architecture?
With limited lexical scope (i.e. not lexical scope at all), and the arbitrary cap on maximum number of local variables (including function parameters????), I'm wondering what architecture looks like.
In an automation project I've been working on, I used the pattern as defined in l/runparts.k which starts another process, running another file as a script, rather than importing and calling functions (which would be preferable... if functions weren't arbitrarily knee-capped with the name limit) as the global namespace gets very polluted as single character names with any meaning quickly deplete.
I know very little about how k namespaces work, and I don't see any examples which use namespaces, because most examples are single files, mostly 1-5 LOC.
/ tl;dr
Any clarification on the following would be helpful:
\l files in another directory without abs path. Or rather how do you allow fellow collaborators to install your application without dictating the installation directory unless you have relative imports?
- How to organize functions/modules to be imported? or is `x really how people run larger k applications?
- namespaces, how they're used, how to organize the namespaces to be imported in a scalable, organized fashion.
When expanding a project, that is more than a single file, that is a single application (rather than multiple smaller applications as is the case with AOC), what is the idea with K program structure/organization/architecture?
With limited lexical scope (i.e. not lexical scope at all), and the arbitrary cap on maximum number of local variables (including function parameters????), I'm wondering what architecture looks like.
In an automation project I've been working on, I used the pattern as defined in `l/runparts.k` which starts another process, running another file as a script, rather than importing and calling functions (which would be preferable... if functions weren't arbitrarily knee-capped with the name limit) as the global namespace gets very polluted as single character names with any meaning quickly deplete.
I know very little about how k namespaces work, and I don't see any examples which use namespaces, because most examples are single files, mostly 1-5 LOC.
/ tl;dr
**Any clarification on the following would be helpful:**
1. `\l` files in another directory without abs path. Or rather how do you allow fellow collaborators to install your application without dictating the installation directory unless you have relative imports?
2. How to organize functions/modules to be imported? or is `x really how people run larger k applications?
3. namespaces, how they're used, how to organize the namespaces to be imported in a scalable, organized fashion.