- From: "steve ." <
>
- To:
- Subject: [chef] Re: Re: FC001, attributes as strings vs symbols
- Date: Wed, 17 Oct 2012 00:10:41 -0700
I don't have any strong opinions on this matter, but I did start
writing recipes using symbols. Then I heard I should be using
strings. "Cripes," I said, "okay, I'll migrate to strings with a
great big ol' indiscriminately-fashioned regular expression."
Needless to say, this broke a number of things I'd written in cookbook
libraries and templates. I reverted those changes.
So I'll probably just use symbols, but I promise not to look askance
at anyone who uses methods or strings.
On Tue, Oct 16, 2012 at 3:49 PM, Joshua Timberman
<
>
wrote:
>
I'd like to clarify the main intention:
>
>
I am gathering data.
>
>
We don't currently have any plans to change the various ways of accessing
>
node attributes. The FC001 rule clearly annoys a lot of people. Based on
>
the data from the survey, I'll bring it up with the foodcritic project in
>
the form of an issue.
>
>
Once the survey is closed, I'll share the results. Right now, its
>
approximately 50% symbols, 35% strings and 15% methods out of 120
>
responses. The more data the better, so if you have coworkers who haven't
>
responded, please send them the link. If *you* haven't responded, please do
>
so :-). It only takes a moment, just one question.
>
>
Thank you
>
>
On Oct 16, 2012, at 12:28 PM, Joshua Timberman
>
<
>
>
wrote:
>
>
> Ohai, Chefs!
>
>
>
> We want to hear from you: which way of using node attributes do you
>
> prefer? Please take this single question survey:
>
>
>
> http://www.surveygizmo.com/s3/1059291/FC001-Use-strings-in-preference-to-symbols-to-access-node-attributes
>
>
>
> This is in response to a longer twitter discussion today on the subject.
>
> The survey will be left open for awhile, letting as many people as
>
> possible answer. We *really* value this feedback.
>
>
>
> If you want an explanation of why this rule came about the way it did, and
>
> our rationale for preferring strings to symbols, see this issue in the
>
> Foodcritic project:
>
>
>
> https://github.com/acrmp/foodcritic/issues/1
>
>
>
> If you're going to be at the Chef summit next week, I'm happy to discuss
>
> this in greater detail, too :-).
>
>
>
>
--
>
Opscode, Inc
>
Joshua Timberman, Technical Community Manager
>
IRC, Skype, Twitter, Github: jtimberman
>
>
- [chef] Re: Re: Re: Re: FC001, attributes as strings vs symbols, (continued)
Archive powered by MHonArc 2.6.16.