39

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

Comments
  • 0
    1. Have code style for team
    2. Hit colleagues until they follow code style
    3. ????
    4. PROFIT
  • 4
    whatever you do, don't mix and match
  • 0
    I have my IDE set to tab key = 4 spaces.
  • 2
    editorconfig allows you to enforce a coding standard which editors will format code against.
  • 0
    @nblackburn The problem is when the standard is not defined yet.
  • 3
    select arbitrary numbers per indent level. that way every one is wrong and everyone is unhappy.
  • 1
    @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.
  • 0
    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)
  • 1
    @matutter4 2017?
  • 1
    @joaonunes Oh god..., Notepad++
  • 0
    @joaonunes I am not allowed to use any of that.
  • 1
    @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
  • 1
    @Arjanovic well, just to indent... most IDEs have an auto indent option though...
  • 0
    Ah yes. Advice from the future of design. Good to know how people will feel about this subject in the future. :)
  • 0
    Team hard tab here
  • 0
    commenting just to keep track of future subject 😂😂
  • 0
    endless war
  • 1
    tabs for the win!
  • 3
    I'm definitely a tabs kinda guy.
  • 2
    Tab is for the real mens.
  • 2
    I vote for tabs
Add Comment