July 17, 2019, 02:36:19 PM

Author Topic: Programmers who use spaces 'paid more'  (Read 2499 times)

Offline Rooster

  • Sr. Member
  • ****
  • Posts: 358
  • I don't know what this does...
Re: Programmers who use spaces 'paid more'
« Reply #15 on: June 18, 2017, 07:30:42 PM »
Quote
My works forced coding standards are 2 spaces for indents.

2?!  You might as well not bother indenting at all!
Yeah, it's fifty spaces or don't indent at all. :P

Seriously though, I use two spaces as well.

Offline EdzUp

  • Jr. Member
  • **
  • Posts: 88
    • EdzUp
Re: Programmers who use spaces 'paid more'
« Reply #16 on: June 18, 2017, 07:54:10 PM »
2 is standard in our company as well.

I always indent 4

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1833
Re: Programmers who use spaces 'paid more'
« Reply #17 on: June 18, 2017, 08:22:57 PM »
Yep 4 spaces, or it's pretty much pointless and leads to cluttered code.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 252
Re: Programmers who use spaces 'paid more'
« Reply #18 on: June 18, 2017, 08:30:43 PM »
Why does it lead to cluttered code?  :o

I mean obviously some guys have had some deep thinking, there must be a reason to put 2 space indention into a company policy for over 1,000 employees? ;)

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1833
Re: Programmers who use spaces 'paid more'
« Reply #19 on: June 18, 2017, 08:36:07 PM »
Because when you get to any nested code it becomes a mess.

You're saying all large companies make the best decisions every time?
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 252
Re: Programmers who use spaces 'paid more'
« Reply #20 on: June 18, 2017, 08:39:19 PM »
Haha no. Got me. :)

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1833
Re: Programmers who use spaces 'paid more'
« Reply #21 on: June 18, 2017, 08:43:48 PM »
lol it doesn't make things any quicker, because modern systems correctly fill out the 4 spaces with a click of the tab key.

And the more complicated code becomes, the more there is a need for the (usual) standard of 4 spaces.  Having just 2 seems to indicate people are making their functions/procedures too wordy, so they are trying to cram everything onto one line!
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz