News for hackers. Stuff that matters.
Re:Proposed JavaScript Standard Style by shanefgan on Thursday April 28, 2016 @09:23AM (#11588577)
2 spaces for indentation? No :(
Re:Proposed JavaScript Standard Style by arunitc on Thursday April 28, 2016 @09:32AM (#11588648)
I always use a tab and set the IDE to show two spaces for each tab. Visual Studio has a setting for this. In the same project if someone wants 4, they can just change it to 4 spaces. In the file, its always stored as a tab
Re:Proposed JavaScript Standard Style by GrantSolar on Thursday April 28, 2016 @09:52AM (#11588816)
I agree. The number of spaces for indentation is completely irrelevant in a style guide as it can be configured in the editor on a personal basis.
Re:Proposed JavaScript Standard Style by audessuscest on Thursday April 28, 2016 @09:59AM (#11588874)
No it's not, because it's not just an editor configuration, it's something in the code structure. People with different indentation working on the same files is a problem, so it's really relevant to try to set a standart about this, at least for open source project.
Re:Proposed JavaScript Standard Style by jdmichal on Thursday April 28, 2016 @10:42AM (#11589196)
Yes, the code is structured with tab characters, so there is no different indentation. Only different renderings of the same semantic characters.
Re:Proposed JavaScript Standard Style by audessuscest on Friday April 29, 2016 @04:59PM (#11598717)
which lead to very useless and annoying conflict and different coding style in same files
Re:Proposed JavaScript Standard Style by emodendroket on Thursday April 28, 2016 @09:33AM (#11588652)
I'm all about two spaces but this is a pointless argument
Re:Proposed JavaScript Standard Style by Kyoushu on Thursday April 28, 2016 @09:31AM (#11588644)
My first thought as well