Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Jabor posted:

Tabs to indent, spaces to align.

By which I mean only ever use tabs, because loving around vertically aligning things is piss garbage for autistic children.

I don't manually align stuff, my editor does that for me.

like serious question, don't you guys do stuff like this just by pressing enter:

code:
dumb_list_of_lists = [[1, 2], 
                      [3, 4], 
                      [5, 6]] 
do you mix tabs and spaces for that? ewww if so

Adbot
ADBOT LOVES YOU

GameCube
Nov 21, 2006

Bloody posted:

resharper reformats everything I see to match its style rules so it doesn't matter

p. sure one of the default resharper rules is "replace tabs with spaces." bitch

vodkat
Jun 30, 2012



cannot legally be sold as vodka

barcoded posted:

there is a huge difference between the two in python lol best programming language

Please explain this to me, an idiot python user

qntm
Jun 17, 2009

Symbolic Butt posted:

I don't manually align stuff, my editor does that for me.

like serious question, don't you guys do stuff like this just by pressing enter:

code:
dumb_list_of_lists = [[1, 2], 
                      [3, 4], 
                      [5, 6]] 
do you mix tabs and spaces for that? ewww if so

code:
dumb_list_of_lists = [
	[1, 2],
	[3, 4],
	[5, 6],
]

Shaggar
Apr 26, 2006

Symbolic Butt posted:

having a character for tab is a super dumb idea and you're bad if you use it

wrong. the tab character is the best character. spaces for indentation is absolutely retarded with litterrally no justification (lol).

if tabs look wrong in your editor your editor is trash and so are you.

Shaggar
Apr 26, 2006
like where would you even get an ide in 2016 that doesn't support hard tabs?

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

qntm posted:

code:
dumb_list_of_lists = [
	[1, 2],
	[3, 4],
	[5, 6],
]

disgusting

triple sulk
Sep 17, 2014



Shaggar posted:

like where would you even get an ide in 2016 that doesn't support hard tabs?

from the ide circus, with the rest of the clown ides

Shaggar
Apr 26, 2006
C# code:
int[,] dumbListOfLists =
{
	{ 1, 2 },
	{ 3, 4 },
	{ 5, 6 }
};
fixed

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Shaggar posted:

C# code:
int[,] dumbListOfLists =
{
	{ 1, 2 },
	{ 3, 4 },
	{ 5, 6 }
};
fixed

c-sharp doesn't allow trailing commas?

triple sulk
Sep 17, 2014



prefect posted:

c-sharp doesn't allow trailing commas?

it does, but why would you use them

Jabor
Jul 16, 2010

#1 Loser at SpaceChem

Symbolic Butt posted:

I don't manually align stuff, my editor does that for me.

like serious question, don't you guys do stuff like this just by pressing enter:

code:
dumb_list_of_lists = [[1, 2], 
                      [3, 4], 
                      [5, 6]] 
do you mix tabs and spaces for that? ewww if so

this is really really bad, because if you need to rename the variable then you suddenly have to reindent everything for absolutely no good reason

also there's a reason we don't do poo poo like
code:
if (foo) { //code
           //here
           }

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

triple sulk posted:

it does, but why would you use them

if you have to reorder lines or add new ones, you don't have to worry about whether or not there should be a comma there

GameCube
Nov 21, 2006

Shaggar posted:

like where would you even get an ide in 2016 that doesn't support hard tabs?

where in 2016 would you find someone who cares about their filesizes being bigger by a couple bytes because they used spaces, the good whitespace, instead of tabs, the bad whitespace.

Shaggar
Apr 26, 2006
its not about file size its about consistency

Shaggar
Apr 26, 2006
when you use tabs, everyone gets exactly what they want because they control the tabstop independent of the code.

when you use spaces you get a mess of poo poo because people use different space counts for each soft tab.

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Shaggar posted:

when you use tabs, everyone gets exactly what they want because they control the tabstop independent of the code.

when you use spaces you get a mess of poo poo because people use different space counts for each soft tab.

what about style-checking rules like "no lines longer than X characters"?

taco_fox
Dec 14, 2005

Shaggar posted:

all man style.
hard tabs only.

GameCube
Nov 21, 2006

Shaggar posted:

when you use tabs, everyone gets exactly what they want because they control the tabstop independent of the code.

when you use spaces you get a mess of poo poo because people use different space counts for each soft tab.

you put 4-space tab in ur .stylecop in git. problem solved

30 TO 50 FERAL HOG
Mar 2, 2005



prefect posted:

what about style-checking rules like "no lines longer than X characters"?

Maybe stop developing in a 240x120 vim terminal

GameCube
Nov 21, 2006

short lines make it easier to work on files side-by-side or read diffs or whatever. idiot. fucker

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

GameCube posted:

short lines make it easier to work on files side-by-side or read diffs or whatever. idiot. fucker

:agreed:, except for the insult parts :shobon:

Shaggar
Apr 26, 2006

prefect posted:

what about style-checking rules like "no lines longer than X characters"?

that's a stupid rule

Shaggar
Apr 26, 2006

GameCube posted:

you put 4-space tab in ur .stylecop in git. problem solved

or just use hard tabs so its not a problem anymore.

Shaggar
Apr 26, 2006
soft tabs are absolutely fundamentally retarded when theres a tab character. there is litterrally a character designed for what you are doing and you are deciding not to use it.

soft tabs are a sign of poor judgement and poor technical understanding.

Triglav
Jun 2, 2007

IT IS HARAAM TO SEND SMILEY FACES THROUGH THE INTERNET
computers can go beyond 80 chars/line now

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Shaggar posted:

soft tabs are absolutely fundamentally retarded when theres a tab character. there is litterrally a character designed for what you are doing and you are deciding not to use it.

soft tabs are a sign of poor judgement and poor technical understanding.

what do you mean by "soft tab"?

30 TO 50 FERAL HOG
Mar 2, 2005



prefect posted:

what do you mean by "soft tab"?

pressing spacebar like 5 times

Triglav
Jun 2, 2007

IT IS HARAAM TO SEND SMILEY FACES THROUGH THE INTERNET
4

exe cummings
Jan 22, 2005

i press ctrl+shift+f and it makes the bad feelings go away

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
in framemaker, you could define the individual tab stops you wanted, so if you wanted the first tab to be halfway across the page, that's where it would go :allears:

Elder Postsman
Aug 30, 2000


i used hot bot to search for "teens"

in my ide when i push tab it inserts 4 spaces. idk. tabs are ok too. i don't really have strong opinions in this matter.

GameCube posted:

short lines make it easier to work on files side-by-side or read diffs or whatever. idiot. fucker

Jabor posted:

this is really really bad, because if you need to rename the variable then you suddenly have to reindent everything for absolutely no good reason

i do think these are good posts tho.

Shaggar
Apr 26, 2006

prefect posted:

what do you mean by "soft tab"?

a tab made of spaces instead of the tab character which would be a hard tab

Convoolio
Oct 31, 2005

let's put typesetting characters in code. literate programming.

Shaggar
Apr 26, 2006
yes. because we are humans reading the type, we need type setting characters. once it hits the compiler you can remove them.

Convoolio
Oct 31, 2005

also fonts and style tags

EDIT: and external stylesheets!!!

Agile Vector
May 21, 2007

scrum bored



Convoolio posted:

also fonts and style tags

EDIT: and external stylesheets!!!

lol just lol if you dont monokai bithc

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

Jabor posted:

this is really really bad, because if you need to rename the variable then you suddenly have to reindent everything for absolutely no good reason

I have to reindent poo poo all the time anyway when I'm changing code by pressing like 2 buttons. I don't even notice it anymore.

I could let the editor do it automatically in these cases I guess but I never really cared much to consider this before

Share Bear
Apr 27, 2004

whatever your team does as long as its sane, have your ide or a git thing reformat when you save, done

Adbot
ADBOT LOVES YOU

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Agile Vector posted:

lol just lol if you dont monokai bithc

the name makes me think of lepers

  • Locked thread