|
I will happily make less money if it means I'm not a loving monster who uses spaces instead of tabs. *edit* whoops, new page. Added a quote to the post.
|
![]() |
|
![]()
|
# ? Jan 22, 2021 17:05 |
|
The Cheshire Cat posted:I will happily make less money if it means I'm not a loving monster who uses spaces instead of tabs. A space is always the same size. A tab is however many goddamn spaces a given dev's settings say it is. Try lining up statements that go over a line, using tabs, where everyone has a different tab width. (you low-paid noob ![]()
|
![]() |
|
Hyperlynx posted:A space is always the same size. A tab is however many goddamn spaces a given dev's settings say it is. Try lining up statements that go over a line, using tabs, where everyone has a different tab width. Use an IDE which replaces tabs with spaces. That's what i do, saves on button presses.
|
![]() |
|
Slash posted:Use an IDE which replaces tabs with spaces. That's what i do, saves on button presses. Right, but how many spaces have you set your IDE to replace the tabs with? Unless it's exactly the same amount of spaces as whoever wrote the file used, it's going to look like poo poo.
|
![]() |
|
Hyperlynx posted:Right, but how many spaces have you set your IDE to replace the tabs with? I have mine set to 4 spaces, which is the convention for Python.
|
![]() |
|
4 is the correct answer. I'll also accept 3
|
![]() |
|
Ok. This is less obvious than I thought, for a throwaway joke, but I'll try explain it harder. Here's formatted with spaces: code:
code:
code:
|
![]() |
|
Quick, let's start a war about vim vs emacs now!
|
![]() |
|
Could this be skewed by those awful horrible no-good very-bad languages in which whitespace matters?
|
![]() |
|
GenericOverusedName posted:Quick, let's start a war about vim vs emacs now!
|
![]() |
|
cinci zoo sniper posted:Like there's people to fight the war on the vim side, everyone has long since switched to nano. fight me ![]() DACK FAYDEN posted:Could this be skewed by those awful horrible no-good very-bad languages in which whitespace matters?
|
![]() |
|
Hyperlynx posted:Conclusion: if you use tabs, you have no control over how the code is going to look in your reader's IDE. If they don't have the same tab setting as you, it's going to look weird. However if you use spaces you know it's going to look right because everybody uses monospaced font. ![]()
|
![]() |
|
cinci zoo sniper posted:Like there's people to fight the war on the vim side, everyone has long since switched to nano. gedit - command-line is for old beards only.
|
![]() |
|
I just set a tab to equal one space. Problem solved.
|
![]() |
|
Take tabs of acid and space out.
|
![]() |
|
lifg posted:I just set a tab to equal one space. Problem solved. ![]() the horror!
|
![]() |
|
![]()
|
![]() |
|
No ring.
|
![]() |
|
I think you'll find there are two rings in that image
|
![]() |
|
SupSuper posted:Actually the conclusion is you should use both based on context instead of mindlessly applying a rule everywhere. Tabs provide customizable identation where it is flexible while spaces provide fixed spacing where it is strict. Everybody wins! Yeah, tabs for indenting, spaces for alignment. Unless the style guide says spaces for indenting. Never use tabs for alignment. Also vim 4 lyfe. To make this post thread appropriate ![]() ![]()
|
![]() |
|
Look at all you plebs using white space. I program entirely in binary. ![]()
|
![]() |
|
![]()
|
![]() |
|
Mr. Fix It posted:Yeah, tabs for indenting, spaces for alignment. Unless the style guide says spaces for indenting. Never use tabs for alignment. Also vim 4 lyfe. I'm fairly neutral on the tabs-vs-spaces issue, but I have strong opinions on the placement of curly braces. ![]() Allman 4 lyfe
|
![]() |
|
ToxicSlurpee posted:I program entirely in binary. The trick is to simply get the 1s and 0s in the right order. Also, Allman style.
|
![]() |
|
Allman too, though K&R is tolerable.
|
![]() |
|
After that they could pop on down the corner and get some French ticklers.
|
![]() |
|
We use GNU at work. I'm one of the two Windows devs in the office, and Visual Studio doesn't support GNU style, so I always have to fix the indenting manually ![]()
|
![]() |
|
Powered Descent posted:I'm fairly neutral on the tabs-vs-spaces issue, but I have strong opinions on the placement of curly braces. GNU is an absolute crime.
|
![]() |
|
Not as bad as Whitesmiths. Who the actual gently caress writes code that way??
|
![]() |
|
ToxicSlurpee posted:Look at all you plebs using white space. Real programmers set the universal constants at the start such that the universe evolves to contain the disk with the data they want.
|
![]() |
|
cinci zoo sniper posted:Allman too, though K&R is tolerable. I probably default to K&R due to it being most prevalent in the stuff I work on, but Allman seems more "right" to me. gently caress all those other ones.
|
![]() |
|
Allman4lyfe Also, real playas just throw poo poo in an editor and let Beautify do the work.
|
![]() |
|
Allman or bust.
|
![]() |
|
Horstmann > K&R > Allman
|
![]() |
|
Platystemon posted:Horstmann > K&R > Allman BURN THIS HEATHEN!
|
![]() |
|
Can we at least agree that Pico can go to hell
|
![]() |
|
Olive Garden tonight! posted:Can we at least agree that Pico can go to hell It’s better than Whitesmiths or GNU.
|
![]() |
|
Allman forever, K&R can suck it
|
![]() |
|
Xun posted:Allman forever, K&R can suck it R can't anymore. ![]()
|
![]() |
|
![]()
|
# ? Jan 22, 2021 17:05 |
|
Hey folks, the programming forum is over thattaway -> Content: ![]()
|
![]() |