Hi again!
When extending Amber's core classes like Number, Array or Point, then I get quite redundant code after commiting, as the whole package is written back to the server. It would be nice to either bind single methods to different categories/ packages or to commit a class separately. Regards... |
On 23/02/12 13:20, Tom wrote:
> Hi again! > > When extending Amber's core classes like Number, Array or Point, then > I get quite redundant code after commiting, as the whole package is > written back to the server. > > It would be nice to either bind single methods to different categories/ > packages or to commit a class separately. I'm not sure I understand :) Did you know you can use categories prefixed with '*' to mark them as part of some package, just like in Squeak with Monticello packages? For example, if you add #helloWorld to String, and put the method in '*MyPackage' category, then the method will be part of the 'MyPackage' package. Cheers, Nico > > Regards... > -- Nicolas Petton http://nicolas-petton.fr |
On 23 Feb., 13:42, Nicolas Petton <[hidden email]> wrote: > On 23/02/12 13:20, Tom wrote: > > > Hi again! > > > When extending Amber's core classes like Number, Array or Point, then > > I get quite redundant code after commiting, as the whole package is > > written back to the server. > > > It would be nice to either bind single methods to different categories/ > > packages or to commit a class separately. > > I'm not sure I understand :) > When commiting the package Kernel-Objects, because of an extension of Point, then the complete package is written to my projects ../js directory. Now Amber loads Kernel-Objects twice, first from the Amber's global ../js directory and second my commited version from my project. > Did you know you can use categories prefixed with '*' to mark them as > part of some package, just like in Squeak with Monticello packages? > > For example, if you add #helloWorld to String, and put the method in > '*MyPackage' category, then the method will be part of the 'MyPackage' > package. > That sounds good. How do I bind a method to a category? I know how to set the category for a new class, but how is this achieved for a single method? Thanks in advance... Tom |
On 23/02/12 13:57, Tom wrote:
> That sounds good. How do I bind a method to a category? I know how to > set the category for a new class, but how is this achieved for a > single method? Select a method then choose a category from the "method category" select field. Cheers, Nico -- Nicolas Petton http://nicolas-petton.fr |
Hm... I cannot find the "method category" selector anywhere in the
Browser. Do I have to pull a different branch, other than master? Regards... On 23 Feb., 15:21, Nicolas Petton <[hidden email]> wrote: > On 23/02/12 13:57, Tom wrote: > > > That sounds good. How do I bind a method to a category? I know how to > > set the category for a new class, but how is this achieved for a > > single method? > > Select a method then choose a category from the "method category" select > field. > > Cheers, > Nico > > -- > Nicolas Pettonhttp://nicolas-petton.fr |
On 23/02/12 16:06, Tom wrote:
> Hm... I cannot find the "method category" selector anywhere in the > Browser. Hehe, that's because it's named "method protocol". It's on the bottom of the browser once a method is selected. Cheers! Nico Do I have to pull a different branch, other than master? > > Regards... > > On 23 Feb., 15:21, Nicolas Petton<[hidden email]> wrote: >> On 23/02/12 13:57, Tom wrote: >> >>> That sounds good. How do I bind a method to a category? I know how to >>> set the category for a new class, but how is this achieved for a >>> single method? >> >> Select a method then choose a category from the "method category" select >> field. >> >> Cheers, >> Nico >> >> -- >> Nicolas Pettonhttp://nicolas-petton.fr -- Nicolas Petton http://nicolas-petton.fr |
Sorry for the fuzz.
I used it all the time. Coming from Squeak, that's quite familiar to me. Thanks a lot for the insight into Amber's package management. Your solution also avoids version conflicts, by not committing new copies of Kernel packages, which could get obsolete as Your base classes evolve. Amazed regards... On 23 Feb., 16:11, Nicolas Petton <[hidden email]> wrote: > On 23/02/12 16:06, Tom wrote: > > > Hm... I cannot find the "method category" selector anywhere in the > > Browser. > > Hehe, that's because it's named "method protocol". It's on the bottom of > the browser once a method is selected. > > Cheers! > Nico > > Do I have to pull a different branch, other than master? > > > > > > > > > > > > > Regards... > > > On 23 Feb., 15:21, Nicolas Petton<[hidden email]> wrote: > >> On 23/02/12 13:57, Tom wrote: > > >>> That sounds good. How do I bind a method to a category? I know how to > >>> set the category for a new class, but how is this achieved for a > >>> single method? > > >> Select a method then choose a category from the "method category" select > >> field. > > >> Cheers, > >> Nico > > >> -- > >> Nicolas Pettonhttp://nicolas-petton.fr > > -- > Nicolas Pettonhttp://nicolas-petton.fr |
PS: How about making the Wiki at github an Amber knowledge base ?
Perhaps showing a Q&A page to start with? Cheers... On 23 Feb., 16:25, Tom <[hidden email]> wrote: > Sorry for the fuzz. > > I used it all the time. Coming from Squeak, that's quite familiar to > me. > > Thanks a lot for the insight into Amber's package management. Your > solution also avoids version conflicts, by not committing new copies > of Kernel packages, which could get obsolete as Your base classes > evolve. > > Amazed regards... > > On 23 Feb., 16:11, Nicolas Petton <[hidden email]> wrote: > > > > > > > > > On 23/02/12 16:06, Tom wrote: > > > > Hm... I cannot find the "method category" selector anywhere in the > > > Browser. > > > Hehe, that's because it's named "method protocol". It's on the bottom of > > the browser once a method is selected. > > > Cheers! > > Nico > > > Do I have to pull a different branch, other than master? > > > > Regards... > > > > On 23 Feb., 15:21, Nicolas Petton<[hidden email]> wrote: > > >> On 23/02/12 13:57, Tom wrote: > > > >>> That sounds good. How do I bind a method to a category? I know how to > > >>> set the category for a new class, but how is this achieved for a > > >>> single method? > > > >> Select a method then choose a category from the "method category" select > > >> field. > > > >> Cheers, > > >> Nico > > > >> -- > > >> Nicolas Pettonhttp://nicolas-petton.fr > > > -- > > Nicolas Pettonhttp://nicolas-petton.fr |
On Thu, 23 Feb 2012, Tom wrote: > PS: How about making the Wiki at github an Amber knowledge base ? > Perhaps showing a Q&A page to start with? I hope nobody minds that I started a page here: <https://github.com/NicolasPetton/amber/wiki/FAQ> - R. Tyler Croy -------------------------------------- Code: http://github.com/rtyler Chatter: http://twitter.com/agentdero [hidden email] attachment0 (205 bytes) Download Attachment |
Cool. :)
On Fri, Feb 24, 2012 at 3:26 AM, R. Tyler Croy <[hidden email]> wrote:
|
In reply to this post by R. Tyler Croy
Yeah!
This wiki is not cooperative? I mean, have a look at the Tcler's Wiki at http://wiki.tcl.tk It's completely open to everyone and it lives like that nearly since a decade now. Regards... On 24 Feb., 03:26, "R. Tyler Croy" <[hidden email]> wrote: > On Thu, 23 Feb 2012, Tom wrote: > > PS: How about making the Wiki at github an Amber knowledge base ? > > Perhaps showing a Q&A page to start with? > > I hope nobody minds that I started a page here: > <https://github.com/NicolasPetton/amber/wiki/FAQ> > > - R. Tyler Croy > -------------------------------------- > Code:http://github.com/rtyler > Chatter:http://twitter.com/agentdero > [hidden email] > > application_pgp-signature_part > < 1 KBAnzeigenHerunterladen |
----- Original message -----
> Yeah! > > This wiki is not cooperative? > > I mean, have a look at the Tcler's Wiki at http://wiki.tcl.tk It's > completely open to everyone and it lives like that nearly since a > decade now. Weird, clicking on the link in the email doesn't take you to the page. If you click on "Pages" and then "FAQ" then the page is there to be seen. Nice thing about putting content on the wiki like this is that it is Git accessible and it's in the same place the source is. |
In reply to this post by R. Tyler Croy
It's a good thing, the idea is to let the wiki be "anyone can contribute" area and then step by step move/copy stuff into the doc system of Amber.
regrds, Göran -- Sent from my Palm Pre 2, wohoo! On Feb 24, 2012 3:26, R. Tyler Croy <[hidden email]> wrote: On Thu, 23 Feb 2012, Tom wrote: > PS: How about making the Wiki at github an Amber knowledge base ? > Perhaps showing a Q&A page to start with? I hope nobody minds that I started a page here: <https://github.com/NicolasPetton/amber/wiki/FAQ> - R. Tyler Croy -------------------------------------- Code: http://github.com/rtyler Chatter: http://twitter.com/agentdero [hidden email] |
Free forum by Nabble | Edit this page |