Code Style

Tom MacWright tom at macwright.org
Thu Aug 30 21:52:34 BST 2012


So I mainly am just annoyed because there's no style documentation
enshrining my personal preferences as a moral good, but anyway...

As far as Javascript, there is idiomatic js
https://github.com/rwldrn/idiomatic.js/ which is fine, but I think it's
better to just use JSHint on everything, which enforces a more functional
idea of style (doesn't allow goofing off with no semicolons, etc)

I'm clueless as far as Ruby/Rails style, just follow what's already there.
Same as CSS; I follow kind of a 'house style' there but don't see it as
terribly important as long as nobody ever ever uses real tabs.

On Thu, Aug 30, 2012 at 4:46 PM, Tom Hughes <tom at compton.nu> wrote:

> I think we need to make some decisions about what our code style is, or
> should be, as it's very hard to evaluate a patch that cleans up style
> without some idea of what our style is.
>
> It's kind of complicated though, as it involves all of general ruby style,
> rails style/idiom, javascript style and HTML style... Oh, and CSS as well.
>
> Any thoughts on how to go about this? Any resources we can draw on rather
> than having to start from scratch?
>
> Tom
>
> --
> Tom Hughes (tom at compton.nu)
> http://compton.nu/
>
> ______________________________**_________________
> rails-dev mailing list
> rails-dev at openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/rails-dev<http://lists.openstreetmap.org/listinfo/rails-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20120830/dfa52418/attachment.html>


More information about the rails-dev mailing list