|
Share Bear posted:whatever your team does as long as its sane, have your ide or a git thing reformat when you save, done if your editor/ide/whatever doesn't trim trailing whitespace, you are a monster
|
# ? Jun 1, 2016 17:05 |
|
|
# ? Jun 4, 2024 06:34 |
|
Jabor posted:also there's a reason we don't do poo poo like one of the reasons I like doing this is to segregate "real logic blocks" from "here's a list of things, arguments whatever". or something like that, in the end it's an arbitrary preference that makes code more readable to a lot of people. much like braces in K&R style being different for functions
|
# ? Jun 1, 2016 17:10 |
|
Share Bear posted:whatever your team does as long as its sane, have your ide or a git thing reformat when you save, done tbh I only kinda care about this poo poo in my personal stuff and for discussing in yospos
|
# ? Jun 1, 2016 17:12 |
|
prefect posted:if your editor/ide/whatever doesn't trim trailing whitespace, you are a monster if anyone cares about this they should set up a commit hook for this imo
|
# ? Jun 1, 2016 17:14 |
|
Symbolic Butt posted:if anyone cares about this they should set up a commit hook for this imo a commit hook that rejects commits and removes commit privs for the offending user
|
# ? Jun 1, 2016 17:15 |
|
lol why do you even indent poo poo, if you need to move stuff around you'd need to reindent it anyway never indent anything, it's more practical this way!!1
|
# ? Jun 1, 2016 17:16 |
|
i know one my coworkers uses a non-monospace serifed font for coding, THAT will annoy your coworkers more than this poo poo
|
# ? Jun 1, 2016 17:20 |
|
I'll start using unicode 0x2002 for indentation instead of spaces
|
# ? Jun 1, 2016 17:27 |
|
anyone who uses spaces over tabs is a disgusting excuse for a human being
|
# ? Jun 1, 2016 17:46 |
|
online friend posted:anyone who uses tabs over spaces is a disgusting excuse for a human being
|
# ? Jun 1, 2016 17:53 |
|
don't edit my posts bitch
|
# ? Jun 1, 2016 17:58 |
|
:retab
|
# ? Jun 1, 2016 18:32 |
|
use both
|
# ? Jun 1, 2016 18:38 |
|
use go fmt on save
|
# ? Jun 1, 2016 18:45 |
|
online friend posted:don't edit my posts bitch
|
# ? Jun 1, 2016 18:46 |
|
prefect posted:if your editor/ide/whatever doesn't trim trailing whitespace, you are a monster at new job, probably half of my commit lines in the first month are vim trimming trailing whitespace incidentally because everyone else is a monster
|
# ? Jun 1, 2016 18:47 |
|
we need some gang tags, spaces crew vs tabs crew
|
# ? Jun 1, 2016 18:51 |
|
I alternate between the two. every other line. hail satan.
|
# ? Jun 1, 2016 18:53 |
|
faxlore posted:I alternate between the two. every other line. hail satan. you should use four spaces for one indent level, then a tab, then a tab plus four spaces, et cetera
|
# ? Jun 1, 2016 18:58 |
|
prefect posted:you should use four spaces for one indent level, then a tab, then a tab plus four spaces, et cetera
|
# ? Jun 1, 2016 21:46 |
|
the space bar also makes an annoying sound
|
# ? Jun 2, 2016 00:54 |
|
this thread makes me want to punch a space indenter irl but i don't work with retards so
|
# ? Jun 2, 2016 01:24 |
|
triple sulk posted:it does, but why would you use them because if you add a new line your git diff will only show the new line, not command and the new line
|
# ? Jun 2, 2016 01:51 |
|
prefect posted:you should use four spaces for one indent level, then a tab, then a tab plus four spaces, et cetera this is completely legal in Python incidentally Python code:
|
# ? Jun 2, 2016 11:25 |
|
tabs are loving convenient, but sometimes spaces are necessary especially when being considerate of retards
|
# ? Jun 3, 2016 00:21 |
|
i strongly prefer that you use one or the other, but not both
|
# ? Jun 3, 2016 01:54 |
|
// -*- Tabs: 8; Indent: 4 -*-
|
# ? Jun 3, 2016 06:43 |
|
Shaggar posted:    all    man    style.
|
# ? Jun 3, 2016 07:14 |
|
just do whatever the project you're working on is doing, or whatever most people who write in the language you're using do i'd prefer to indent with 2 spaces, but when in rome
|
# ? Jun 3, 2016 13:27 |
|
.editorconfig posted:
|
# ? Jun 3, 2016 13:44 |
|
2 space indent plz. allman or k&r idgaf
|
# ? Jun 3, 2016 13:47 |
|
I seriously know of projects that use 8-char tab stops, 4-char indent, and collapse spaces to tabs so level 1 is 4 spaces, level 2 is 1 tab, level 3 is 1 tab and 4 spaces, etc. I call it "the worst of all worlds"
|
# ? Jun 3, 2016 16:36 |
|
eschaton posted:I seriously know of projects that use 8-char tab stops, 4-char indent, and collapse spaces to tabs *dramatically whips off glasses* my god
|
# ? Jun 3, 2016 16:45 |
|
maniacdevnull posted:*dramatically whips off glasses* my god
|
# ? Jun 3, 2016 16:58 |
|
incidentally my point with this post was not to advocate any specific indentation style but to highlight the fact that you should all be using .editorconfig
|
# ? Jun 3, 2016 17:01 |
|
eschaton posted:I seriously know of projects that use 8-char tab stops, 4-char indent, and collapse spaces to tabs i think the vim settings involve "smarttabs" and "softtabstop"
|
# ? Jun 3, 2016 17:04 |
|
anyone who uses more than 4 spaces per indent should just take a nice swim in a pit of acid
|
# ? Jun 3, 2016 17:11 |
|
every compiler for every language should just enforce tabs or spaces and fail to compile if you do it wrong. think about how much time was has been wasted since the 60's or w/e arguing about this poo poo. tabs spaces whatever who gives a gently caress, just don't mix the two in the same fil/project goddamn
|
# ? Jun 4, 2016 08:53 |
|
Feisty-Cadaver posted:every compiler for every language should just enforce tabs or spaces and fail to compile if you do it wrong. this is a correct post
|
# ? Jun 4, 2016 10:56 |
|
|
# ? Jun 4, 2024 06:34 |
|
Let's get to the real issue: there is a shocking proportion of the population that uses the caps lock key as a shift key. need to type your password? *press caps lock* *press the one character to be capitalized* *press caps lock*
|
# ? Jun 4, 2016 16:06 |