|
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.
|
# ? Jun 16, 2017 15:36 |
|
|
# ? May 13, 2024 10:30 |
|
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 )
|
# ? Jun 16, 2017 15:46 |
|
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.
|
# ? Jun 16, 2017 15:57 |
|
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.
|
# ? Jun 16, 2017 15:58 |
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.
|
|
# ? Jun 16, 2017 16:00 |
|
4 is the correct answer. I'll also accept 3
|
# ? Jun 16, 2017 16:09 |
|
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:
|
# ? Jun 16, 2017 16:14 |
|
Quick, let's start a war about vim vs emacs now!
|
# ? Jun 16, 2017 16:24 |
|
Could this be skewed by those awful horrible no-good very-bad languages in which whitespace matters?
|
# ? Jun 16, 2017 16:28 |
GenericOverusedName posted:Quick, let's start a war about vim vs emacs now!
|
|
# ? Jun 16, 2017 16:29 |
|
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?
|
# ? Jun 16, 2017 17:41 |
|
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.
|
# ? Jun 16, 2017 18:05 |
|
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.
|
# ? Jun 16, 2017 19:39 |
|
I just set a tab to equal one space. Problem solved.
|
# ? Jun 16, 2017 19:41 |
|
Take tabs of acid and space out.
|
# ? Jun 16, 2017 19:51 |
|
lifg posted:I just set a tab to equal one space. Problem solved. the horror!
|
# ? Jun 16, 2017 19:55 |
|
|
# ? Jun 16, 2017 20:10 |
No ring.
|
|
# ? Jun 16, 2017 20:14 |
|
I think you'll find there are two rings in that image
|
# ? Jun 16, 2017 21:00 |
|
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
|
# ? Jun 16, 2017 23:13 |
|
Look at all you plebs using white space. I program entirely in binary.
|
# ? Jun 16, 2017 23:15 |
|
|
# ? Jun 16, 2017 23:39 |
|
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
|
# ? Jun 17, 2017 00:08 |
|
ToxicSlurpee posted:I program entirely in binary. The trick is to simply get the 1s and 0s in the right order. Also, Allman style.
|
# ? Jun 17, 2017 00:11 |
Allman too, though K&R is tolerable.
|
|
# ? Jun 17, 2017 00:15 |
|
After that they could pop on down the corner and get some French ticklers.
|
# ? Jun 17, 2017 00:28 |
|
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
|
# ? Jun 17, 2017 00:35 |
|
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.
|
# ? Jun 17, 2017 00:44 |
|
Not as bad as Whitesmiths. Who the actual gently caress writes code that way??
|
# ? Jun 17, 2017 00:53 |
|
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.
|
# ? Jun 17, 2017 01:17 |
|
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.
|
# ? Jun 17, 2017 02:41 |
|
Allman4lyfe Also, real playas just throw poo poo in an editor and let Beautify do the work.
|
# ? Jun 17, 2017 02:47 |
|
Allman or bust.
|
# ? Jun 17, 2017 04:05 |
|
Horstmann > K&R > Allman
|
# ? Jun 17, 2017 04:34 |
|
Platystemon posted:Horstmann > K&R > Allman BURN THIS HEATHEN!
|
# ? Jun 17, 2017 04:41 |
|
Can we at least agree that Pico can go to hell
|
# ? Jun 17, 2017 04:52 |
|
Olive Garden tonight! posted:Can we at least agree that Pico can go to hell It’s better than Whitesmiths or GNU.
|
# ? Jun 17, 2017 05:45 |
|
Allman forever, K&R can suck it
|
# ? Jun 17, 2017 06:04 |
|
Xun posted:Allman forever, K&R can suck it R can't anymore.
|
# ? Jun 17, 2017 06:12 |
|
|
# ? May 13, 2024 10:30 |
|
Hey folks, the programming forum is over thattaway -> Content:
|
# ? Jun 17, 2017 08:08 |