cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daan Hoogland <>
Subject Re: code formatting for enums
Date Fri, 19 Jul 2013 08:34:24 GMT

I am for adding a convention on enums to the coding conventions, thought I
don't like Johns best, I'm fine with it and with Alex'. Let's add this one
and my proposal on method length and number of methods in classes to the
conventions and keep in mind that a convention is not a law. We won't lynch
anybody over them. Also migration to adherence does not have to take place
today, but may well wait till 5.0 and/or 6.0. In cases it isn't harmful a
newbee knows he can quite safely propose a change and get a feel for the
process this way. By adding them we do state the necessity and our wish for
those styles of coding and that is the first step we should take.

my € 0,02,

On Fri, Jul 19, 2013 at 9:28 AM, Donal Lafferty

> > -----Original Message-----
> > From: Frank Zhang []
> > Sent: 19 July 2013 12:19 AM
> > To:
> > Subject: RE: code formatting for enums
> >
> > Then the most important factor of name
> > convention is user experience where Running is more user friendly than
> > IS_RUNNING or whatever all capitalized sentence splitting by underscore.
> >
> [Donal Lafferty]
> User experience?  Tell me about it.
> Consider how much easier it is to use HypervisorType.HyperV rather than
> HypervisorType.Hyperv
> E.g. try running 'grep -R Hyperv *' some time :)
> I'm in favour of *anything* that changes the 'Hyperv' hypervisor type to a
> unique sequence.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message