resource / Front-End-Standards

Front-end development standards for Resource.
MIT License
23 stars 1 forks source link

whitespace #66

Closed lkrids closed 10 years ago

lkrids commented 11 years ago

I think you should use whatever whitespace you want, just keep it consistent.

https://github.com/LukeAskew/Front-End-Standards/blob/master/JavaScript/JavaScript.md#whitespace https://github.com/LukeAskew/Front-End-Standards/blob/master/Stylesheets/CSS.md#white-space

we could recommend using something like http://editorconfig.org/ (jQuery is using it: https://github.com/jquery/jquery/blob/master/.editorconfig)

LukeAskew commented 11 years ago

I like that idea, but I think we should still have an agreed upon standard for whitespace. Using editorconfig could make it less cumbersome for some people, so I like that.

Are you volunteering to write a .editorconfig?

LukeAskew commented 11 years ago

Edit: I like the idea of using editorconfig. I dislike the idea of using whatever whitespace you want.

nicetransition commented 11 years ago

Whitespace should be consistent across projects, that's a pretty common standard for businesses/companies/agencies. If you disagree with the suggested format, please provide your recommendations.

I really like the idea of .editorconfig. @lkrids, you should submit that as a project for T.I.P.

Krxtopher commented 11 years ago

I agree that we should have consistent whitespace rules. I do have a comment about the tabs direction in the document. If we're going to standardize on tabs rather than spaces for indenting (tabs are my preferred style, anyway, BTW) then we shouldn't dictate how many spaces a developer sets their tabs to since that's a presentation detail that doesn't actually get saved as part of the source code. Tabs are tabs. How the editor renders them should be up to the developer's personal preference. (I'm all for personal preference when it doesn't impact the actual source code!)

nicetransition commented 11 years ago

There is a section outlined and a Sublime project setup that has a "tab" equal to "4 spaces"