News for hackers. Stuff that matters.
Re:How to Deploy Software by ktRolster on Tuesday March 01, 2016 @04:23PM (#11206178)
How many spaces do you like to indent your code? Some people like 3 space indentations, some like 8 spaces, and some like 5. It's very personal (but anyone who doesn't use 3 is a reeky brazen-faced mammet).

A simple solution is to use tabs, because then every developer can set the tab distance however they like, and they are happy. It breaks down when you have code that is aligned beyond the indent, like this:

  if(a && b &&
     c && d &&
     e && f   ) {
In that case, increasing (or decreasing) the tab distance will ruin the intention.

The best solution is to use tabs to the point of indentation, and then spaces thereafter, but a lot of code editors don't support that, so in practice it's hard to implement, so people use spaces to preserve their formatting when it gets uploaded to github.

Re:How to Deploy Software by collyw on Wednesday March 02, 2016 @01:17PM (#11211801)
Mixing sounds like the worst option.Its what has cause horrendous looking code in the past when you open someone elses code and they are mixed.

Python and spaces for me.

Re:How to Deploy Software by ktRolster on Thursday March 03, 2016 @09:41PM (#11221708)

  > Python and spaces for me.
Sounds like you are a very open-minded individual. Not.
Re:How to Deploy Software by collyw on Monday March 07, 2016 @01:36PM (#11240576)
I say this from experience, not narrow mindedness.

Open a file where it is all spaces, and it looks the same on every machine. Open a file with a mix of spaces and tabs, and it often turns out an absolute mess.

Re:How to Deploy Software by pcora on Tuesday March 01, 2016 @08:17PM (#11207512)
OMG! 3 spaces? EVEN number? 2 or 4. Never even.
Re:How to Deploy Software by ktRolster on Wednesday March 02, 2016 @12:05AM (#11208191)
You sir, are a reeky, brazen faced mammet!