|
Jabor posted:Tabs to indent, spaces to align. 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:
|
# ? Jun 1, 2016 13:58 |
|
|
# ? May 15, 2024 02:04 |
|
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
|
# ? Jun 1, 2016 14:52 |
|
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
|
# ? Jun 1, 2016 14:56 |
|
Symbolic Butt posted:I don't manually align stuff, my editor does that for me. code:
|
# ? Jun 1, 2016 15:03 |
|
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.
|
# ? Jun 1, 2016 15:06 |
|
like where would you even get an ide in 2016 that doesn't support hard tabs?
|
# ? Jun 1, 2016 15:06 |
|
qntm posted:
disgusting
|
# ? Jun 1, 2016 15:07 |
|
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
|
# ? Jun 1, 2016 15:11 |
|
C# code:
|
# ? Jun 1, 2016 15:11 |
|
Shaggar posted:
c-sharp doesn't allow trailing commas?
|
# ? Jun 1, 2016 15:12 |
|
prefect posted:c-sharp doesn't allow trailing commas? it does, but why would you use them
|
# ? Jun 1, 2016 15:13 |
|
Symbolic Butt posted:I don't manually align stuff, my editor does that for me. 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:
|
# ? Jun 1, 2016 15:19 |
|
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
|
# ? Jun 1, 2016 15:20 |
|
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.
|
# ? Jun 1, 2016 15:33 |
|
its not about file size its about consistency
|
# ? Jun 1, 2016 15:35 |
|
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.
|
# ? Jun 1, 2016 15:37 |
|
Shaggar posted:when you use tabs, everyone gets exactly what they want because they control the tabstop independent of the code. what about style-checking rules like "no lines longer than X characters"?
|
# ? Jun 1, 2016 15:43 |
|
Shaggar posted:all man style.
|
# ? Jun 1, 2016 15:45 |
|
Shaggar posted:when you use tabs, everyone gets exactly what they want because they control the tabstop independent of the code. you put 4-space tab in ur .stylecop in git. problem solved
|
# ? Jun 1, 2016 15:45 |
|
prefect posted:what about style-checking rules like "no lines longer than X characters"? Maybe stop developing in a 240x120 vim terminal
|
# ? Jun 1, 2016 15:55 |
|
short lines make it easier to work on files side-by-side or read diffs or whatever. idiot. fucker
|
# ? Jun 1, 2016 16:00 |
|
GameCube posted:short lines make it easier to work on files side-by-side or read diffs or whatever. idiot. fucker , except for the insult parts
|
# ? Jun 1, 2016 16:01 |
|
prefect posted:what about style-checking rules like "no lines longer than X characters"? that's a stupid rule
|
# ? Jun 1, 2016 16:07 |
|
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.
|
# ? Jun 1, 2016 16:07 |
|
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.
|
# ? Jun 1, 2016 16:09 |
|
computers can go beyond 80 chars/line now
|
# ? Jun 1, 2016 16:14 |
|
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. what do you mean by "soft tab"?
|
# ? Jun 1, 2016 16:15 |
|
prefect posted:what do you mean by "soft tab"? pressing spacebar like 5 times
|
# ? Jun 1, 2016 16:18 |
|
4
|
# ? Jun 1, 2016 16:21 |
|
i press ctrl+shift+f and it makes the bad feelings go away
|
# ? Jun 1, 2016 16:22 |
|
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
|
# ? Jun 1, 2016 16:25 |
|
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.
|
# ? Jun 1, 2016 16:26 |
|
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
|
# ? Jun 1, 2016 16:42 |
|
let's put typesetting characters in code. literate programming.
|
# ? Jun 1, 2016 16:44 |
|
yes. because we are humans reading the type, we need type setting characters. once it hits the compiler you can remove them.
|
# ? Jun 1, 2016 16:45 |
|
also fonts and style tags EDIT: and external stylesheets!!!
|
# ? Jun 1, 2016 16:49 |
|
Convoolio posted:also fonts and style tags lol just lol if you dont monokai bithc
|
# ? Jun 1, 2016 17:02 |
|
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
|
# ? Jun 1, 2016 17:03 |
|
whatever your team does as long as its sane, have your ide or a git thing reformat when you save, done
|
# ? Jun 1, 2016 17:04 |
|
|
# ? May 15, 2024 02:04 |
|
Agile Vector posted:lol just lol if you dont monokai bithc the name makes me think of lepers
|
# ? Jun 1, 2016 17:04 |