Jump to content

Recommended Posts

 

I'm currently in the middle of a debate with a friend..

 

I'm quite strict when i lay out my code, everything is indented properly... and i like to indent with tabs.

 

However I keep getting slowed down when I hit some code which has been indented with spaces. I have been tag teaming some freelance over the past few months with a friend who insists on using spaces over tabs.

 

I know this is a very small thing but i was wondering what other people did, and if they had a reason..?

 

Cheers,

 

John.

 

Link to comment
https://forums.phpfreaks.com/topic/259438-tab-or-space/
Share on other sites

The PHP fig (framework interop group) that was formed to help flush out some common standards between the big frameworks has and is still having a discussion over a common coding style.  As part of the discussion a survey was made of some of the projects of how they format their code.  Here is a google spreadsheet with what they've collected.  While most people... err I mean developers use spaces there is still a tab following. 

Link to comment
https://forums.phpfreaks.com/topic/259438-tab-or-space/#findComment-1330329
Share on other sites

I tend to prefer tabs in my code.  I can see where for a larger project with several developers, spaces may yield more consistent formatting overall.  Regardless of which you choose every needs to agree on the same thing and same width as well or it doesn't really make a difference.

 

 

Link to comment
https://forums.phpfreaks.com/topic/259438-tab-or-space/#findComment-1331377
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.