Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				1. Have code style for team
 2. Hit colleagues until they follow code style
 3. ????
 4. PROFIT
- 
				
				editorconfig allows you to enforce a coding standard which editors will format code against.
- 
				
				select arbitrary numbers per indent level. that way every one is wrong and everyone is unhappy.
- 
				
				@matutter4 are you from the future? Also it matters if you're in the current dev hell I'm in, where you have to read code in 3-4 different editors/text tools.
- 
				
				1st: edit the code on whatever ide you want
 2nd: let them indent how they want
 3rd: before compiling open files with notepad++ if possible
 4th: install addon called Indent By Fold
 5th: select option to indent file
 6th: profit!! (in most languages at least... also works with html xD)
- 
				
				@matutter4
 it matters, because it's a fucking pain in the ass to have to "reformat code" on every file I open, because my coworker alternates between tabs and 6 spaces and that make his code near impossible to read
- 
				
				Ah yes. Advice from the future of design. Good to know how people will feel about this subject in the future. :)










dev 1: "Use 4 spaces."
dev 2: "2 spaces are better."
dev 3: "No, use tabs!"
undefined
codestyle tabs spaces