- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: RE: Re: attribute naming for Java attributes, snake_case or CamelCase?
- Date: Thu, 12 Apr 2012 08:56:31 -0700
On Thursday, April 12, 2012 at 4:17 AM, RUSSELL Scott wrote:
>
Hi,
>
I would tend to agree with Zac. Being a sysadmin who does java, then I
>
would tend to be looking for Xmx, and not xmx.
>
>
Sc0tt...
>
>
_______________________________________
>
From: Zac Stevens
>
>
>
(mailto:
)]
>
Sent: 12 April 2012 13:33
>
To:
>
>
>
(mailto:
)
>
Subject: [chef] Re: attribute naming for Java attributes, snake_case or
>
CamelCase?
>
>
Hiya,
>
>
I'd like to argue the other position :)
>
>
On Thu, Apr 12, 2012 at 8:51 AM, Bryan Berry
>
<
>
>
(mailto:
)>
>
wrote:
>
> Java stuff all uses CamelCase while ruby uses snake_case
>
>
>
> tomcat "liferay" do
>
> jvm do
>
> Xms '256m'
>
> Xmx '512m'
>
> MaxPermSize '256m'
>
> end
>
> end
>
>
>
> Should the attributes be named MaxPermSize or max_perm_size? Even harder,
>
> Xmx or xmx (max jvm heap size)?
>
>
>
>
I'd suggest sticking with the naming in your example - ie, they should
>
match the options passed to Java.
>
>
Rationale: the DSL should match the expectations of the user.
>
Depending on the user's background they may be expecting either style. For
maximum do-what-I-mean value, you can use method aliasing to make both styles
valid.
--
Dan DeLeo
Archive powered by MHonArc 2.6.16.