* Re-naming proposals
@ 2007-04-11 17:19 Mike Cvet
2007-04-11 17:24 ` Nurdin Premji
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Mike Cvet @ 2007-04-11 17:19 UTC (permalink / raw)
To: frysk
Today I was thinking about some class names, and a couple things stood out.
The first being that SourceWindow isn't really an appropriate name
anymore - its a debugger window, not just a window which displays the
source code of a process. So I propose that it is renamed to
DebugWindow. Consequently, the gui/srcwin tree will be renamed to
something like gui/debugwin.
The second is the debugging and stepping state machine for the
Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
doesn't really mean anything, so I was thinking of refactoring it to
DebugStateMachine.
The last is the CreateFryskSessionDruid class - maybe just call it
FryskAssistant or something?
- Mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-11 17:19 Re-naming proposals Mike Cvet
@ 2007-04-11 17:24 ` Nurdin Premji
2007-04-11 17:28 ` Sami Wagiaalla
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Nurdin Premji @ 2007-04-11 17:24 UTC (permalink / raw)
To: Mike Cvet; +Cc: frysk
Mike Cvet wrote:
> Today I was thinking about some class names, and a couple things stood
> out.
>
> The first being that SourceWindow isn't really an appropriate name
> anymore - its a debugger window, not just a window which displays the
> source code of a process. So I propose that it is renamed to
> DebugWindow. Consequently, the gui/srcwin tree will be renamed to
> something like gui/debugwin.
>
> The second is the debugging and stepping state machine for the
> Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
> doesn't really mean anything, so I was thinking of refactoring it to
> DebugStateMachine.
>
> The last is the CreateFryskSessionDruid class - maybe just call it
> FryskAssistant or something?
>
> - Mike
>
>
I agree with all 3 proposals concurrently (or maybe consecutively).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-11 17:19 Re-naming proposals Mike Cvet
2007-04-11 17:24 ` Nurdin Premji
@ 2007-04-11 17:28 ` Sami Wagiaalla
2007-04-11 17:36 ` Kris Van Hees
2007-04-11 17:52 ` Phil Muldoon
3 siblings, 0 replies; 8+ messages in thread
From: Sami Wagiaalla @ 2007-04-11 17:28 UTC (permalink / raw)
To: Mike Cvet; +Cc: frysk
Mike Cvet wrote:
> Today I was thinking about some class names, and a couple things stood
> out.
Happens to me all the time every day... thank god for eclipse.
>
> The first being that SourceWindow isn't really an appropriate name
> anymore - its a debugger window, not just a window which displays the
> source code of a process. So I propose that it is renamed to
> DebugWindow. Consequently, the gui/srcwin tree will be renamed to
> something like gui/debugwin.
Fine by me. Although I dont really find SourceWindow that bad.
>
> The second is the debugging and stepping state machine for the
> Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
> doesn't really mean anything, so I was thinking of refactoring it to
> DebugStateMachine.
Cool.
>
> The last is the CreateFryskSessionDruid class - maybe just call it
> FryskAssistant or something?
Frysk can have more than one assistant. How about CreatSessionAssistant
>
> - Mike
Sami
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-11 17:19 Re-naming proposals Mike Cvet
2007-04-11 17:24 ` Nurdin Premji
2007-04-11 17:28 ` Sami Wagiaalla
@ 2007-04-11 17:36 ` Kris Van Hees
2007-04-11 17:52 ` Sami Wagiaalla
2007-04-11 17:52 ` Phil Muldoon
3 siblings, 1 reply; 8+ messages in thread
From: Kris Van Hees @ 2007-04-11 17:36 UTC (permalink / raw)
To: Mike Cvet; +Cc: frysk
On Wed, Apr 11, 2007 at 01:19:19PM -0400, Mike Cvet wrote:
> Today I was thinking about some class names, and a couple things stood out.
>
> The first being that SourceWindow isn't really an appropriate name
> anymore - its a debugger window, not just a window which displays the
> source code of a process. So I propose that it is renamed to
> DebugWindow. Consequently, the gui/srcwin tree will be renamed to
> something like gui/debugwin.
Makes sense to me.
> The second is the debugging and stepping state machine for the
> Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
> doesn't really mean anything, so I was thinking of refactoring it to
> DebugStateMachine.
Or perhaps DebugFSM (assuming that the state machine that is implemented
is indeed a finite state machine - I'd hope it is). I like shorter
names when they are not obscure.
> The last is the CreateFryskSessionDruid class - maybe just call it
> FryskAssistant or something?
Hm, I am not sure that FryskAssistant makes more sense to me than
CreateFryskSessionDruid. I'd opt for CreateFryskSession or even just
CreateSession. Possibly with GUI appended to the name if we want to
make it explicit that it is the GUI element. FryskAssistant just seems
to not really mean much without actually looking at the code to
determine what it actually does.
Which brings up a (small) side topic... Most of the time when we're
talking about 'the UI' on the calls or even IRC, people seem to be
referring to the actual GUI rather than the user interface (in a more
abstract sense). Could we try to adopt GUI as term for the graphical
user interface, and whatever else (like CLI) for the text-based
interface? That avoids confusion for anyone reading through mailing
list archives, etc.
Cheers,
Kris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-11 17:36 ` Kris Van Hees
@ 2007-04-11 17:52 ` Sami Wagiaalla
0 siblings, 0 replies; 8+ messages in thread
From: Sami Wagiaalla @ 2007-04-11 17:52 UTC (permalink / raw)
To: Kris Van Hees; +Cc: Mike Cvet, frysk
>> The second is the debugging and stepping state machine for the
>> Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
>> doesn't really mean anything, so I was thinking of refactoring it to
>> DebugStateMachine.
>>
>
> Or perhaps DebugFSM (assuming that the state machine that is implemented
> is indeed a finite state machine - I'd hope it is). I like shorter
> names when they are not obscure.
>
I never hesitate to make names long if it buys clarity. I never find
that there is anything to be gained from making names shorter.
>
>> The last is the CreateFryskSessionDruid class - maybe just call it
>> FryskAssistant or something?
>>
>
> Hm, I am not sure that FryskAssistant makes more sense to me than
> CreateFryskSessionDruid. I'd opt for CreateFryskSession or even just
> CreateSession. Possibly with GUI appended to the name if we want to
> make it explicit that it is the GUI element.
I do something similar in the GUI code: I usually append the type of the
gui object to the end of the name. So for example there is
SessionManager, and there is SessionManagerDialog.
> Which brings up a (small) side topic... Most of the time when we're
> talking about 'the UI' on the calls or even IRC, people seem to be
> referring to the actual GUI rather than the user interface (in a more
> abstract sense). Could we try to adopt GUI as term for the graphical
> user interface, and whatever else (like CLI) for the text-based
> interface? That avoids confusion for anyone reading through mailing
> list archives, etc.
>
Yeah! i noticed that too. At some point we stopped saying GUI and
started saying UI.... must have been while I was in school.
> Cheers,
> Kris
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-11 17:19 Re-naming proposals Mike Cvet
` (2 preceding siblings ...)
2007-04-11 17:36 ` Kris Van Hees
@ 2007-04-11 17:52 ` Phil Muldoon
2007-04-12 4:24 ` Andrew Cagney
3 siblings, 1 reply; 8+ messages in thread
From: Phil Muldoon @ 2007-04-11 17:52 UTC (permalink / raw)
To: Mike Cvet; +Cc: frysk
Mike Cvet wrote:
>
> The first being that SourceWindow isn't really an appropriate name
> anymore - its a debugger window, not just a window which displays the
> source code of a process. So I propose that it is renamed to
> DebugWindow. Consequently, the gui/srcwin tree will be renamed to
> something like gui/debugwin.
Sounds good.
>
> The second is the debugging and stepping state machine for the
> Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
> doesn't really mean anything, so I was thinking of refactoring it to
> DebugStateMachine.
Debug is an overloaded term, especially in the context of State Machine.
Though better than RunState ;)
>
> The last is the CreateFryskSessionDruid class - maybe just call it
> FryskAssistant or something?
That was my doing, and wrong headed thinking at the time. I'd call it
FryskSessionAssistant or something along those lines.
Regards
Phil
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-11 17:52 ` Phil Muldoon
@ 2007-04-12 4:24 ` Andrew Cagney
2007-04-12 17:06 ` Mike Cvet
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Cagney @ 2007-04-12 4:24 UTC (permalink / raw)
To: Phil Muldoon; +Cc: Mike Cvet, frysk
Phil Muldoon wrote:
>>
>> The second is the debugging and stepping state machine for the
>> Source/DebugWindow and FHPD - RunState. Its a pretty awful name, and
>> doesn't really mean anything, so I was thinking of refactoring it to
>> DebugStateMachine.
>
>
> Debug is an overloaded term, especially in the context of State
> Machine. Though better than RunState ;)
There are at least two^w three objects here, the first - is the
point-of-contact for the tasks being displayed by the debug window and
the second, used by this manager or poc , is the state. Finally there's
a breakpoint object. I'd be looking to split this class into smaller
components, like has been done for Task/TaskState, for instance.
In this context debug is a very overloaded term. Once the class has
been broken down - Run, RunState, ... - a more obvious name will likely
become clear.
Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re-naming proposals
2007-04-12 4:24 ` Andrew Cagney
@ 2007-04-12 17:06 ` Mike Cvet
0 siblings, 0 replies; 8+ messages in thread
From: Mike Cvet @ 2007-04-12 17:06 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Phil Muldoon, frysk
Andrew Cagney wrote:
>
> There are at least two^w three objects here, the first - is the
> point-of-contact for the tasks being displayed by the debug window and
> the second, used by this manager or poc , is the state. Finally
> there's a breakpoint object. I'd be looking to split this class into
> smaller components, like has been done for Task/TaskState, for instance.
>
> In this context debug is a very overloaded term. Once the class has
> been broken down - Run, RunState, ... - a more obvious name will
> likely become clear.
>
I don't understand - so the states RunState is using for stepping a task
should be broken into subclasses?
As far as breakpoints are concerned... that doesn't really matter. The
original breakpoint class went into RunState because it was used for
stepping. More general breakpoints for usage by fhpd or the debugging
window probably should get their own class.
- Mike
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-04-12 17:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-11 17:19 Re-naming proposals Mike Cvet
2007-04-11 17:24 ` Nurdin Premji
2007-04-11 17:28 ` Sami Wagiaalla
2007-04-11 17:36 ` Kris Van Hees
2007-04-11 17:52 ` Sami Wagiaalla
2007-04-11 17:52 ` Phil Muldoon
2007-04-12 4:24 ` Andrew Cagney
2007-04-12 17:06 ` Mike Cvet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).