Please, no more types called "State"

Katherine Cox-Buday katherine.cox-buday at canonical.com
Tue Mar 17 02:32:55 UTC 2015


I just wanted to pile on: alone, I don't think State is a terrible name for
what these types represent in their respective packages. The issue is that
the canonical usage of state is universally meant to refer to "The State".
It's this context that makes it confusing.

Roger's suggestion of "StateProxy" doesn't sound bad.

I also agree with Andrew's comment about converging on vocabulary.
Consistency > perfect but different for the singular reason that if things
are consistent, you can address the issue wholistically later.

-
Katherine


On Thu, Mar 12, 2015 at 9:23 AM, Gustavo Niemeyer <gustavo at niemeyer.net>
wrote:

> The core state (The State) is the one case where it doesn't matter,
> IMO. Everybody knows what it is. It's the other dozen that create the
> issue, and they will remain as ambiguous if you just rename the one
> State.
>
> On Thu, Mar 12, 2015 at 11:23 AM, Eric Snow <eric.snow at canonical.com>
> wrote:
> > On Thu, Mar 12, 2015 at 5:08 AM, Michael Foord
> > <michael.foord at canonical.com> wrote:
> >> When I was new to Juju the fact that we had a central "State", core to
> the
> >> Juju model, but we had umpteen types called State - so where you saw a
> State
> >> you had no idea what it actually was and when someone mentioned State
> you
> >> couldn't be sure what they meant - was a significant part of the
> learning
> >> curve.
> >
> > I had the same experience.
> >
> >>
> >> Perhaps a better solution would have been a better name for the core
> State.
> >
> > +1
> >
> > -eric
> >
> > --
> > Juju-dev mailing list
> > Juju-dev at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
>
> --
>
> gustavo @ http://niemeyer.net
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150316/a79ac81b/attachment.html>


More information about the Juju-dev mailing list