I've commented a version of RBConfigurableFormatter that can format
#copyFrom: to the following code. This comes pretty close to the document of Adrian: Object>>copyFrom: anotherObject "Copy to myself all instance variables I have in common with anotherObject. This is dangerous because it ignores an object's control over its own inst vars. " <primitive: 168> | mine his | mine := self class allInstVarNames. his := anotherObject class allInstVarNames. 1 to: (mine size min: his size) do: [ :ind | (mine at: ind) = (his at: ind) ifTrue: [ self instVarAt: ind put: (anotherObject instVarAt: ind) ] ]. self class isVariable & anotherObject class isVariable ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [ :ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Thanks lukas
> I've commented commited :) I guess I saw in on the rss feed :) > a version of RBConfigurableFormatter that can format > #copyFrom: to the following code. This comes pretty close to the > document of Adrian: > > Object>>copyFrom: anotherObject > "Copy to myself all instance variables I have in common with > anotherObject. This is dangerous because it ignores an object's > control over its own inst vars. " > > <primitive: 168> > | mine his | > mine := self class allInstVarNames. > his := anotherObject class allInstVarNames. > 1 to: (mine size min: his size) do: [ :ind | > (mine at: ind) = (his at: ind) > ifTrue: [ self instVarAt: ind put: (anotherObject instVarAt: ind) ] ]. > self class isVariable & anotherObject class isVariable > ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [ > :ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] > can we get rid of the :ind | ;) > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
>> I've commented
> > commited :) I guess I saw in on the rss feed :) Yeah. > can we get rid of the > > :ind | Select 'ind', in the context menu select 'refactor source', 'rename temporary'. Then give the new name 'index', press 'ok'. Done. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Stéphane Ducasse
On Feb 28, 2010, at 22:12 , Stéphane Ducasse wrote: >> --------------- >> 1 >> to: (mine size min: his size) >> do: [ :index | >> (mine at: index) = (his at: index) ifTrue: [ >> self >> instVarAt: index >> put: (anotherObject instVarAt: index) ] ]. >> --------------- >> >> Putting "[ :ind |" on a new line and using multiple tab indentation looks horrible to me. > > :) > > why not like that? >> 1 >> to: (mine size min: his size) >> do: [ :index | >> (mine at: index) = (his at: index) >> ifTrue: [ self >> instVarAt: index >> put: (anotherObject instVarAt: index) ] ]. The difference is not big, but I prefer the first version because you get one indentation less (and you don't break the rule that an indentation always has only one tab, which is not the case above). Also it makes formatting of conditionals consistent with the formatting of other messages, e.g., receiver foo: x instead of receiver foo: x The rule for ifTrue:ifFalse: follows the same rule, i.e., that keyword messages with more than one argument are put on separate lines: receiver foo: x bar: y Adrian _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
The configurable formatter can be told from how many keyword messages
on it should put them on multiple lines. Also you can give exceptions of messages that you always/never want to put on multiple lines. Lukas On 28 February 2010 22:29, Adrian Lienhard <[hidden email]> wrote: > > On Feb 28, 2010, at 22:12 , Stéphane Ducasse wrote: >>> --------------- >>> 1 >>> to: (mine size min: his size) >>> do: [ :index | >>> (mine at: index) = (his at: index) ifTrue: [ >>> self >>> instVarAt: index >>> put: (anotherObject instVarAt: index) ] ]. >>> --------------- >>> >>> Putting "[ :ind |" on a new line and using multiple tab indentation looks horrible to me. >> >> :) >> >> why not like that? >>> 1 >>> to: (mine size min: his size) >>> do: [ :index | >>> (mine at: index) = (his at: index) >>> ifTrue: [ self >>> instVarAt: index >>> put: (anotherObject instVarAt: index) ] ]. > > The difference is not big, but I prefer the first version because you get one indentation less (and you don't break the rule that an indentation always has only one tab, which is not the case above). > > Also it makes formatting of conditionals consistent with the formatting of other messages, e.g., > > receiver foo: x > > instead of > > receiver > foo: x > > > The rule for ifTrue:ifFalse: follows the same rule, i.e., that keyword messages with more than one argument are put on separate lines: > > receiver > foo: x > bar: y > > > Adrian > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Lukas Renggli
On Feb 28, 2010, at 10:28 PM, Lukas Renggli wrote: >>> I've commented >> >> commited :) I guess I saw in on the rss feed :) > > Yeah. > >> can we get rid of the >> >> :ind | > > Select 'ind', in the context menu select 'refactor source', 'rename > temporary'. Then give the new name 'index', press 'ok'. Done. no i meant self class isVariable & anotherObject class isVariable ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [ :ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] -> self class isVariable & anotherObject class isVariable ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [ :ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] or self class isVariable & anotherObject class isVariable ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [:ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] but not starting :ind | at the beginning of the line. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On 28 February 2010 22:38, Stéphane Ducasse <[hidden email]> wrote:
> > On Feb 28, 2010, at 10:28 PM, Lukas Renggli wrote: > >>>> I've commented >>> >>> commited :) I guess I saw in on the rss feed :) >> >> Yeah. >> >>> can we get rid of the >>> >>> :ind | >> >> Select 'ind', in the context menu select 'refactor source', 'rename >> temporary'. Then give the new name 'index', press 'ok'. Done. > > no i meant > > self class isVariable & anotherObject class isVariable > ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [ > :ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] > > -> > > self class isVariable & anotherObject class isVariable > ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) > do: [ :ind | self basicAt: ind put: (anotherObject basicAt: ind) ] ] > > or > > self class isVariable & anotherObject class isVariable > ifTrue: [ 1 to: (self basicSize min: anotherObject basicSize) do: [:ind | > self basicAt: ind put: (anotherObject basicAt: ind) ] ] > > but not starting > > :ind | at the beginning of the line. Ahh, that was the mail program that broke it there. Lukas > > >> >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
lol
I was really skeptical :) >> :ind | at the beginning of the line. > > Ahh, that was the mail program that broke it there. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Stéphane Ducasse
Stef,
I have never liked forced formatting; good scanners and parsers have allowed us to move beyond that. Again, I have no real concern over how you chose to format the code in the base system; I would care greatly about any attempt to build that into the language (since you bring it up) or the tools as a mandatory feature. Bill -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Stéphane Ducasse Sent: Sunday, February 28, 2010 4:17 PM To: [hidden email] Subject: Re: [Pharo-project] about code formatting in pharo you know go (the language) includes in the language the formatting so there is no discussion. Now I really like to see smalltalk code and not C code because..... It slows me down a lot when I read and I read a lot of code. :) Stef On Feb 28, 2010, at 8:51 PM, Adrian Lienhard wrote: > Hi Bill, > > Don't worry. Nobody wants to force you to use his conventions :) > > The question really only concerns the code of PharoCore. I think a consistent way of code formatting really is a good idea, even if not everybody agrees with each rule. > > Cheers, > Adrian > > On Feb 28, 2010, at 18:43 , Schwab,Wilhelm K wrote: > >> Adrian, >> >> Horrible is an understatement :) Your version is a big improvement. I frequently put ending brackets on their own line with indentation to aid in matching, but not always. >> >> I do not (much) care what conventions the benevolent dictators select for Pharo, but I **do** care that it not be forced on my code that I retain for my own use. There should be ways to compile, export and load code and packagets w/o encountering automatic formatting. As long as that is the case, enjoy!! >> >> Bill >> >> >> >> -----Original Message----- >> From: [hidden email] >> [mailto:[hidden email]] On Behalf Of >> Adrian Lienhard >> Sent: Sunday, February 28, 2010 8:11 AM >> To: [hidden email] >> Subject: Re: [Pharo-project] about code formatting in pharo >> >> I've attached the coding conventions that we use at Cmsbox and netstyle.ch. They closely follow the suggestions of Kent Beck's "Smalltalk Best Practice Patterns". >> >> According to these rules I would format the following example: >> >> --------------- >> 1 to: (mine size min: his size) do: >> [ :ind | >> (mine at: ind) = (his at: ind) >> ifTrue: [ self instVarAt: ind put: (anotherObject instVarAt: ind) ] ]. >> --------------- >> >> as: >> >> --------------- >> 1 >> to: (mine size min: his size) >> do: [ :index | >> (mine at: index) = (his at: index) ifTrue: [ >> self >> instVarAt: index >> put: (anotherObject instVarAt: index) ] ]. >> --------------- >> >> Putting "[ :ind |" on a new line and using multiple tab indentation looks horrible to me. >> >> Cheers, >> Adrian >> >> >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Lukas Renggli
Cool. If we can tweak the formatter to fit our needs, I think this is an interesting idea because we would then have really consistent formatting. How does one use this formatter? Something else to consider is that we would need to run the formatter in PharoCore, but it does not contain RB. We could write a small web service that takes some method source as input and returns the formatted code ;)
Adrian On Feb 28, 2010, at 22:31 , Lukas Renggli wrote: > The configurable formatter can be told from how many keyword messages > on it should put them on multiple lines. Also you can give exceptions > of messages that you always/never want to put on multiple lines. > > Lukas > > On 28 February 2010 22:29, Adrian Lienhard <[hidden email]> wrote: >> >> On Feb 28, 2010, at 22:12 , Stéphane Ducasse wrote: >>>> --------------- >>>> 1 >>>> to: (mine size min: his size) >>>> do: [ :index | >>>> (mine at: index) = (his at: index) ifTrue: [ >>>> self >>>> instVarAt: index >>>> put: (anotherObject instVarAt: index) ] ]. >>>> --------------- >>>> >>>> Putting "[ :ind |" on a new line and using multiple tab indentation looks horrible to me. >>> >>> :) >>> >>> why not like that? >>>> 1 >>>> to: (mine size min: his size) >>>> do: [ :index | >>>> (mine at: index) = (his at: index) >>>> ifTrue: [ self >>>> instVarAt: index >>>> put: (anotherObject instVarAt: index) ] ]. >> >> The difference is not big, but I prefer the first version because you get one indentation less (and you don't break the rule that an indentation always has only one tab, which is not the case above). >> >> Also it makes formatting of conditionals consistent with the formatting of other messages, e.g., >> >> receiver foo: x >> >> instead of >> >> receiver >> foo: x >> >> >> The rule for ifTrue:ifFalse: follows the same rule, i.e., that keyword messages with more than one argument are put on separate lines: >> >> receiver >> foo: x >> bar: y >> >> >> Adrian >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Adrian,
Another approach would be to have a Seaside app that accepts uploads of .mcz files, loads, formats, and re-saves them into an in-box. I still recommend getting the RB's house in order with respect to comments, but it would work as well as RB users have come to expect. It would also make it part of the release process for a package vs. putting it in the image and affecting "the little guy." Bill -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Adrian Lienhard Sent: Monday, March 01, 2010 6:53 AM To: [hidden email] Subject: Re: [Pharo-project] about code formatting in pharo Cool. If we can tweak the formatter to fit our needs, I think this is an interesting idea because we would then have really consistent formatting. How does one use this formatter? Something else to consider is that we would need to run the formatter in PharoCore, but it does not contain RB. We could write a small web service that takes some method source as input and returns the formatted code ;) Adrian On Feb 28, 2010, at 22:31 , Lukas Renggli wrote: > The configurable formatter can be told from how many keyword messages > on it should put them on multiple lines. Also you can give exceptions > of messages that you always/never want to put on multiple lines. > > Lukas > > On 28 February 2010 22:29, Adrian Lienhard <[hidden email]> wrote: >> >> On Feb 28, 2010, at 22:12 , Stéphane Ducasse wrote: >>>> --------------- >>>> 1 >>>> to: (mine size min: his size) >>>> do: [ :index | >>>> (mine at: index) = (his at: index) ifTrue: [ >>>> self >>>> instVarAt: index >>>> put: (anotherObject instVarAt: index) ] ]. >>>> --------------- >>>> >>>> Putting "[ :ind |" on a new line and using multiple tab indentation looks horrible to me. >>> >>> :) >>> >>> why not like that? >>>> 1 >>>> to: (mine size min: his size) >>>> do: [ :index | >>>> (mine at: index) = (his at: index) >>>> ifTrue: [ self >>>> instVarAt: index >>>> put: (anotherObject instVarAt: index) ] ]. >> >> The difference is not big, but I prefer the first version because you get one indentation less (and you don't break the rule that an indentation always has only one tab, which is not the case above). >> >> Also it makes formatting of conditionals consistent with the >> formatting of other messages, e.g., >> >> receiver foo: x >> >> instead of >> >> receiver >> foo: x >> >> >> The rule for ifTrue:ifFalse: follows the same rule, i.e., that keyword messages with more than one argument are put on separate lines: >> >> receiver >> foo: x >> bar: y >> >> >> Adrian >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Adrian Lienhard
> Cool. If we can tweak the formatter to fit our needs, I think this is an interesting idea because we would then have really consistent formatting.
It has dozens of settings that you can configure. It is already integrated with the settings framework in Pharo 1.1. > How does one use this formatter? aClass compile: (aClass parseTreeFor: aSelector) formattedCode > Something else to consider is that we would need to run the formatter in PharoCore, but it does not contain RB. We could write a small web service that takes some method source as input and returns the formatted code ;) You only need AST-Core. You can load it in one image, format the code, commit the changes and load the changes into a fresh Pharo image. Also you could unload AST-Core, it has no overrides. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
>> How does one use this formatter?
> > aClass compile: (aClass parseTreeFor: aSelector) formattedCode OB-Refactory also provides a UI to format the whole system or individual classes or packages. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Schwab,Wilhelm K
> Another approach would be to have a Seaside app that accepts uploads of .mcz files, loads, formats, and re-saves them into an in-box. I still recommend getting the RB's house in order with respect to comments, but it would work as well as RB users have come to expect. It would also make it part of the release process for a package vs. putting it in the image and affecting "the little guy."
Instead of complaining all the time about the handling of comments in RB you could provide some tests that demonstrate why you think it is broken. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
I'm not complaining; it's simply a fact, and I'm not the only one observing it. Links were given here some time back.
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Lukas Renggli Sent: Monday, March 01, 2010 7:28 AM To: [hidden email] Subject: Re: [Pharo-project] about code formatting in pharo > Another approach would be to have a Seaside app that accepts uploads of .mcz files, loads, formats, and re-saves them into an in-box. I still recommend getting the RB's house in order with respect to comments, but it would work as well as RB users have come to expect. It would also make it part of the release process for a package vs. putting it in the image and affecting "the little guy." Instead of complaining all the time about the handling of comments in RB you could provide some tests that demonstrate why you think it is broken. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Adrian Lienhard
would be nice :)
scripting the core from external services Stef On Mar 1, 2010, at 12:52 PM, Adrian Lienhard wrote: > Cool. If we can tweak the formatter to fit our needs, I think this is an interesting idea because we would then have really consistent formatting. How does one use this formatter? Something else to consider is that we would need to run the formatter in PharoCore, but it does not contain RB. We could write a small web service that takes some method source as input and returns the formatted code ;) > > Adrian > > On Feb 28, 2010, at 22:31 , Lukas Renggli wrote: > >> The configurable formatter can be told from how many keyword messages >> on it should put them on multiple lines. Also you can give exceptions >> of messages that you always/never want to put on multiple lines. >> >> Lukas >> >> On 28 February 2010 22:29, Adrian Lienhard <[hidden email]> wrote: >>> >>> On Feb 28, 2010, at 22:12 , Stéphane Ducasse wrote: >>>>> --------------- >>>>> 1 >>>>> to: (mine size min: his size) >>>>> do: [ :index | >>>>> (mine at: index) = (his at: index) ifTrue: [ >>>>> self >>>>> instVarAt: index >>>>> put: (anotherObject instVarAt: index) ] ]. >>>>> --------------- >>>>> >>>>> Putting "[ :ind |" on a new line and using multiple tab indentation looks horrible to me. >>>> >>>> :) >>>> >>>> why not like that? >>>>> 1 >>>>> to: (mine size min: his size) >>>>> do: [ :index | >>>>> (mine at: index) = (his at: index) >>>>> ifTrue: [ self >>>>> instVarAt: index >>>>> put: (anotherObject instVarAt: index) ] ]. >>> >>> The difference is not big, but I prefer the first version because you get one indentation less (and you don't break the rule that an indentation always has only one tab, which is not the case above). >>> >>> Also it makes formatting of conditionals consistent with the formatting of other messages, e.g., >>> >>> receiver foo: x >>> >>> instead of >>> >>> receiver >>> foo: x >>> >>> >>> The rule for ifTrue:ifFalse: follows the same rule, i.e., that keyword messages with more than one argument are put on separate lines: >>> >>> receiver >>> foo: x >>> bar: y >>> >>> >>> Adrian >>> _______________________________________________ >>> Pharo-project mailing list >>> [hidden email] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >> >> >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Lukas Renggli
On Mar 1, 2010, at 1:23 PM, Lukas Renggli wrote: >> Cool. If we can tweak the formatter to fit our needs, I think this is an interesting idea because we would then have really consistent formatting. > > It has dozens of settings that you can configure. It is already > integrated with the settings framework in Pharo 1.1. cool! > >> How does one use this formatter? > > aClass compile: (aClass parseTreeFor: aSelector) formattedCode > >> Something else to consider is that we would need to run the formatter in PharoCore, but it does not contain RB. We could write a small web service that takes some method source as input and returns the formatted code ;) > > You only need AST-Core. You can load it in one image, format the code, > commit the changes and load the changes into a fresh Pharo image. Also > you could unload AST-Core, it has no overrides. gorgeous :) I feel lucky to have a guy like you around :) _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Schwab,Wilhelm K
send some evidence based on tests so that lukas can give a try to improve the situation.
This is what lukas is saying. [Stef] On Mar 1, 2010, at 1:36 PM, Schwab,Wilhelm K wrote: > I'm not complaining; it's simply a fact, and I'm not the only one observing it. Links were given here some time back. > > > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Lukas Renggli > Sent: Monday, March 01, 2010 7:28 AM > To: [hidden email] > Subject: Re: [Pharo-project] about code formatting in pharo > >> Another approach would be to have a Seaside app that accepts uploads of .mcz files, loads, formats, and re-saves them into an in-box. I still recommend getting the RB's house in order with respect to comments, but it would work as well as RB users have come to expect. It would also make it part of the release process for a package vs. putting it in the image and affecting "the little guy." > > Instead of complaining all the time about the handling of comments in RB you could provide some tests that demonstrate why you think it is broken. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Schwab,Wilhelm K
> I'm not complaining; it's simply a fact, and I'm not the only one observing it. Links were given here some time back.
Sorry, but this is only a fact if you provide unit tests (or at least a couple of examples) that fail in the latest code base. Otherwise simply nobody cares. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Lukas,
File in the attached and then reformat it. I have to admit there has been improvement; at least the comments remain within the cascade of which they were originally a part. Still, they end up out of order with respect to the reformatted code, which is devastating to what I am trying to accomplish. These are directly analogous to the types of comments that sat (in longer cascades) for several years only to save my back side last year. Bill ________________________________________ From: [hidden email] [[hidden email]] On Behalf Of Lukas Renggli [[hidden email]] Sent: Monday, March 01, 2010 7:47 AM To: [hidden email] Subject: Re: [Pharo-project] about code formatting in pharo > I'm not complaining; it's simply a fact, and I'm not the only one observing it. Links were given here some time back. Sorry, but this is only a fact if you provide unit tests (or at least a couple of examples) that fail in the latest code base. Otherwise simply nobody cares. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project Dictionary class-commentsTest.st (772 bytes) Download Attachment |
Free forum by Nabble | Edit this page |