[Pharo-project] comments comments comments again
stephane.ducasse at inria.fr
Sun Feb 27 22:35:55 CET 2011
On Feb 27, 2011, at 7:49 PM, Mariano Martinez Peck wrote:
> On Sun, Feb 27, 2011 at 4:18 PM, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:
> why can we put comment in class comment?
> For example I worked on fixing 1.2 and now I want to execute the configurationOfPharo and no magic invocation....
> JUST A FUCKING EMPTY class comment as usual.
> So again I feel like an idiot and I'm trying in the dark. You have NOT A SINGLE REASON NOT TO PUT COMMENT!
> One of these days I will hack the system to break the load when a class as no comment.
> I was the original author of such class. And yes, I don't write class comments. I am not use too, usually because:
> - I almost don't find it use
> - The browser doesn't help me to see class comments
> - Who can guess that under a '?' there are class comments? I discovered that YEARS after I was already using Smalltalk
> - I prefer writting/reading a TestCase for such class (I know it is not the same as class comments, but it helps).
> - I prefer looking at senders/references to such class
> - When class comments are long, the browser is FUCKING slow to write
none of the above is a justification.
the minimal statement that should be in the comment:
To load me, execute
((Smalltalk globals at: #ConfigurationOfPharo) project version: #stable) load
I added it
I do not want to have to remember that in this project I should not use latest, whatever.
In ten years from now I want to doubleclick and it loads.
> Even more, in this case, what would you write for example? ConfigurationOf* are just Metacello Configurations. What would you need to know about that despite of Metacello? If you know Metacello, you should know how to query the configuration and get all the things you want, like groups, packages, etc
sorry but there are plenty of expressions that can make the life of the maintainer easier.
Just think 2 min and you will come with
- how to validate
- how to load core
I do not want to have our book chapter open to load something.
> So now after randomly trying.....I get a nice DNU.
> But do you think that could be fixed just because of having class comments?
Yes I do that in all my configuration because I forgot all the time and my brain is better occupied on real problems
not stuff that can be fixed by adding one comment.
> Apparently my time is not worth anything....
> So if you want to see if my fix works. Give a try I will not and if what I did break, may be I will have a look or may be not
> because no time for that after.
> And BTW do not put any comment, it feels much cooler that way.
More information about the Pharo-project